openspec-proposal-creation by forztf/open-skilled-sdd
npx skills add https://github.com/forztf/open-skilled-sdd --skill openspec-proposal-creation遵循规范驱动开发方法论创建全面的变更提案。
创建规范提案涉及三个主要输出:
基本工作流程:生成变更 ID → 搭建目录结构 → 起草提案 → 创建规范差异 → 验证结构
复制此清单并跟踪进度:
提案进度:
- [ ] 步骤 1:审查现有规范
- [ ] 步骤 2:生成唯一变更 ID
- [ ] 步骤 3:搭建目录结构
- [ ] 步骤 4:起草 proposal.md(原因/内容/影响)
- [ ] 步骤 5:创建 tasks.md 实施清单
- [ ] 步骤 6:使用 EARS 格式编写规范差异
- [ ] 步骤 7:验证提案结构
- [ ] 步骤 8:提交给用户审批
在创建提案之前,了解当前状态:
# 列出所有现有规范
find spec/specs -name "spec.md" -type f
# 列出活动变更以避免冲突
find spec/changes -maxdepth 1 -type d -not -path "*/archive"
# 搜索相关需求
grep -r "### Requirement:" spec/specs/
选择一个描述性的、URL 安全的标识符:
格式:add-<功能>、、、
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
fix-<问题>update-<组件>remove-<功能>示例:
add-user-authenticationfix-payment-validationupdate-api-rate-limitsremove-legacy-endpoints验证:检查冲突:
ls spec/changes/ | grep -i "<proposed-id>"
使用标准结构创建变更文件夹:
# 将 {change-id} 替换为实际 ID
mkdir -p spec/changes/{change-id}/specs/{capability-name}
示例:
mkdir -p spec/changes/add-user-auth/specs/authentication
使用 templates/proposal.md 处的模板作为起点。
必需部分:
语气:清晰、简洁、以决策为中心。避免不必要的背景信息。
将实施分解为具体的、可测试的任务。使用 templates/tasks.md 处的模板。
格式:
# 实施任务
1. [第一个具体任务]
2. [第二个具体任务]
3. [测试任务]
4. [文档任务]
最佳实践:
这是最关键的一步。规范差异使用 EARS 格式(需求语法简易方法)。
完整的 EARS 指南,请参阅 reference/EARS_FORMAT.md
差异操作:
## ADDED Requirements - 新增功能## MODIFIED Requirements - 更改的行为(包含完整的更新文本)## REMOVED Requirements - 废弃的功能基本需求结构:
## ADDED Requirements
### Requirement: User Login
WHEN a user submits valid credentials,
the system SHALL authenticate the user and create a session.
#### Scenario: Successful Login
GIVEN a user with email "user@example.com" and password "correct123"
WHEN the user submits the login form
THEN the system creates an authenticated session
AND redirects to the dashboard
验证模式,请参阅 reference/VALIDATION_PATTERNS.md
在提交给用户之前运行这些检查:
结构检查清单:
- [ ] 目录存在:`spec/changes/{change-id}/`
- [ ] proposal.md 包含原因/内容/影响部分
- [ ] tasks.md 包含编号的任务列表(5-15 项)
- [ ] 规范差异具有操作标题(新增/修改/移除)
- [ ] 需求遵循 `### Requirement: <名称>` 格式
- [ ] 场景使用 `#### Scenario:` 格式(4 个井号)
自动化检查:
# 统计差异操作数量(应大于 0)
grep -c "## ADDED\|MODIFIED\|REMOVED" spec/changes/{change-id}/specs/**/*.md
# 验证场景格式(应显示行号)
grep -n "#### Scenario:" spec/changes/{change-id}/specs/**/*.md
# 检查需求标题
grep -n "### Requirement:" spec/changes/{change-id}/specs/**/*.md
清晰地总结提案:
## 提案摘要
**变更 ID**:{change-id}
**范围**:{简要描述}
**创建的文件**:
- spec/changes/{change-id}/proposal.md
- spec/changes/{change-id}/tasks.md
- spec/changes/{change-id}/specs/{capability}/spec-delta.md
**后续步骤**:
审查提案。如果批准,请说 "openspec implement" 或 "apply the change" 以开始实施。
EARS 格式详情:请参阅 reference/EARS_FORMAT.md 验证模式:请参阅 reference/VALIDATION_PATTERNS.md 完整示例:请参阅 reference/EXAMPLES.md
添加全新功能时:
ADDED Requirements 差异更改现有行为时:
MODIFIED Requirements 差异移除功能时:
REMOVED Requirements 差异不要:
要:
所有模板都在 templates/ 目录中:
令牌预算:此 SKILL.md 大约 450 行,低于推荐的 500 行限制。参考文件仅在需要时加载,以实现渐进式披露。
每周安装次数
200
代码仓库
GitHub 星标数
6
首次出现时间
2026年1月20日
安全审计
安装于
opencode187
codex181
gemini-cli180
github-copilot172
cursor168
kimi-cli152
Creates comprehensive change proposals following spec-driven development methodology.
Creating a spec proposal involves three main outputs:
Basic workflow : Generate change ID → scaffold directories → draft proposal → create spec deltas → validate structure
Copy this checklist and track progress:
Proposal Progress:
- [ ] Step 1: Review existing specifications
- [ ] Step 2: Generate unique change ID
- [ ] Step 3: Scaffold directory structure
- [ ] Step 4: Draft proposal.md (Why/What/Impact)
- [ ] Step 5: Create tasks.md implementation checklist
- [ ] Step 6: Write spec deltas with EARS format
- [ ] Step 7: Validate proposal structure
- [ ] Step 8: Present for user approval
Before creating a proposal, understand the current state:
# List all existing specs
find spec/specs -name "spec.md" -type f
# List active changes to avoid conflicts
find spec/changes -maxdepth 1 -type d -not -path "*/archive"
# Search for related requirements
grep -r "### Requirement:" spec/specs/
Choose a descriptive, URL-safe identifier:
Format : add-<feature>, fix-<issue>, update-<component>, remove-<feature>
Examples :
add-user-authenticationfix-payment-validationupdate-api-rate-limitsremove-legacy-endpointsValidation : Check for conflicts:
ls spec/changes/ | grep -i "<proposed-id>"
Create the change folder with standard structure:
# Replace {change-id} with actual ID
mkdir -p spec/changes/{change-id}/specs/{capability-name}
Example :
mkdir -p spec/changes/add-user-auth/specs/authentication
Use the template at templates/proposal.md as starting point.
Required sections :
Tone : Clear, concise, decision-focused. Avoid unnecessary background.
Break implementation into concrete, testable tasks. Use the template at templates/tasks.md.
Format :
# Implementation Tasks
1. [First concrete task]
2. [Second concrete task]
3. [Test task]
4. [Documentation task]
Best practices :
This is the most critical step. Spec deltas use EARS format (Easy Approach to Requirements Syntax).
For complete EARS guidelines , see reference/EARS_FORMAT.md
Delta operations :
## ADDED Requirements - New capabilities## MODIFIED Requirements - Changed behavior (include full updated text)## REMOVED Requirements - Deprecated featuresBasic requirement structure :
## ADDED Requirements
### Requirement: User Login
WHEN a user submits valid credentials,
the system SHALL authenticate the user and create a session.
#### Scenario: Successful Login
GIVEN a user with email "user@example.com" and password "correct123"
WHEN the user submits the login form
THEN the system creates an authenticated session
AND redirects to the dashboard
For validation patterns , see reference/VALIDATION_PATTERNS.md
Run these checks before presenting to user:
Structure Checklist:
- [ ] Directory exists: `spec/changes/{change-id}/`
- [ ] proposal.md has Why/What/Impact sections
- [ ] tasks.md has numbered task list (5-15 items)
- [ ] Spec deltas have operation headers (ADDED/MODIFIED/REMOVED)
- [ ] Requirements follow `### Requirement: <name>` format
- [ ] Scenarios use `#### Scenario:` format (4 hashtags)
Automated checks :
# Count delta operations (should be > 0)
grep -c "## ADDED\|MODIFIED\|REMOVED" spec/changes/{change-id}/specs/**/*.md
# Verify scenario format (should show line numbers)
grep -n "#### Scenario:" spec/changes/{change-id}/specs/**/*.md
# Check requirement headers
grep -n "### Requirement:" spec/changes/{change-id}/specs/**/*.md
Summarize the proposal clearly:
## Proposal Summary
**Change ID**: {change-id}
**Scope**: {brief description}
**Files created**:
- spec/changes/{change-id}/proposal.md
- spec/changes/{change-id}/tasks.md
- spec/changes/{change-id}/specs/{capability}/spec-delta.md
**Next steps**:
Review the proposal. If approved, say "openspec implement" or "apply the change" to begin implementation.
EARS format details : See reference/EARS_FORMAT.md Validation patterns : See reference/VALIDATION_PATTERNS.md Complete examples : See reference/EXAMPLES.md
When adding net-new capability:
ADDED Requirements deltaWhen changing existing behavior:
MODIFIED Requirements deltaWhen removing features:
REMOVED Requirements deltaDon't :
Do :
All templates are in the templates/ directory:
Token budget : This SKILL.md is approximately 450 lines, under the 500-line recommended limit. Reference files load only when needed for progressive disclosure.
Weekly Installs
200
Repository
GitHub Stars
6
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode187
codex181
gemini-cli180
github-copilot172
cursor168
kimi-cli152
任务估算指南:敏捷开发故事点、计划扑克、T恤尺码法详解
10,500 周安装
just-scrape AI网页抓取CLI工具 - 智能数据提取与自动化爬虫
172 周安装
PR审查助手:基于哲学理念的代码审查工具,确保极致简洁与模块化架构
173 周安装
现代Web应用SEO最佳实践指南:Next.js与Nuxt.js技术SEO优化策略
176 周安装
Tambo generative-ui:用自然语言构建生成式React UI组件 | 前端开发工具
180 周安装
Gtars:高性能Rust基因组分析工具包 | 区间重叠检测、覆盖度分析、机器学习标记化
175 周安装
SEO蚕食检测工具 - 自动分析关键词重叠与内容冲突,优化网站排名
177 周安装