Openspec Proposal Creation

forztf/open-skilled-sdd/skills/openspec-proposal-creation

作者 forztf792f48807c192d740968f56b474e79612c51a98a无许可证10 个星标收录于 2026年10月9日更新于 2026年10月9日仓库10个月前更新

Creates structured change proposals with specification deltas for new features, breaking changes, or architecture updates. Use when planning features, creating proposals, speccing changes, introducing new capabilities, or starting development workflows. Triggers include "openspec proposal", "create proposal", "plan change", "spec feature", "new capability", "add feature planning", "design spec".

AI 生成的概览

创建规范驱动的变更提案,包含提案文档、任务清单和 EARS 格式的规范增量。

功能
引导智能体为软件项目生成结构化变更提案:说明原因、变更内容和影响的 proposal.md,编号的 tasks.md 实施清单,以及记录 ADDED、MODIFIED 或 REMOVED 需求的 spec-delta.md 文件。它在 spec/changes 下搭建变更目录,采用 EARS 需求语法与 GIVEN/WHEN/THEN 场景,并提供结构与格式的校验检查。该技能附带模板和参考文档,但不含脚本。
适用场景
适用于规划新功能、破坏性变更或功能弃用,并需要在实施前产出书面提案与正式规范增量的场景。也适合要求在编码前对变更进行评审和批准的规范驱动开发流程。
运行要求
无脚本,仅包含说明与 Markdown 模板。工作流假定项目具有 spec/specs 与 spec/changes 目录结构,并可使用 find、grep、mkdir、ls 等 shell 命令。

Specification Proposal Creation

Creates comprehensive change proposals following spec-driven development methodology.

Quick Start

Creating a spec proposal involves three main outputs:

  1. proposal.md - Why, what, and impact summary
  2. tasks.md - Numbered implementation checklist
  3. spec-delta.md - Formal requirement changes (ADDED/MODIFIED/REMOVED)

Basic workflow: Generate change ID → scaffold directories → draft proposal → create spec deltas → validate structure

Workflow

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

Step 1: Review existing specifications

Before creating a proposal, understand the current state:

bash
# List all existing specsfind spec/specs -name "spec.md" -type f
# List active changes to avoid conflictsfind spec/changes -maxdepth 1 -type d -not -path "*/archive"
# Search for related requirementsgrep -r "### Requirement:" spec/specs/

Step 2: Generate unique change ID

Choose a descriptive, URL-safe identifier:

Format: add-<feature>, fix-<issue>, update-<component>, remove-<feature>

Examples:

  • add-user-authentication
  • fix-payment-validation
  • update-api-rate-limits
  • remove-legacy-endpoints

Validation: Check for conflicts:

bash
ls spec/changes/ | grep -i "<proposed-id>"

Step 3: Scaffold directory structure

Create the change folder with standard structure:

bash
# Replace {change-id} with actual IDmkdir -p spec/changes/{change-id}/specs/{capability-name}

Example:

bash
mkdir -p spec/changes/add-user-auth/specs/authentication

Step 4: Draft proposal.md

Use the template at templates/proposal.md [blocked] as starting point.

Required sections:

  • Why: Problem or opportunity driving this change
  • What Changes: Bullet list of modifications
  • Impact: Affected specs, code, APIs, users

Tone: Clear, concise, decision-focused. Avoid unnecessary background.

Step 5: Create tasks.md implementation checklist

Break implementation into concrete, testable tasks. Use the template at templates/tasks.md [blocked].

Format:

markdown
# Implementation Tasks
1. [First concrete task]2. [Second concrete task]3. [Test task]4. [Documentation task]

Best practices:

  • Each task is independently completable
  • Include testing and validation tasks
  • Order by dependencies (database before API, etc.)
  • 5-15 tasks is typical; split if more needed

Step 6: Write spec deltas with EARS format

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 [blocked]

Delta operations:

  • ## ADDED Requirements - New capabilities
  • ## MODIFIED Requirements - Changed behavior (include full updated text)
  • ## REMOVED Requirements - Deprecated features

Basic requirement structure:

markdown
## ADDED Requirements
### Requirement: User LoginWHEN a user submits valid credentials,the system SHALL authenticate the user and create a session.
#### Scenario: Successful LoginGIVEN a user with email "[email protected]" and password "correct123"WHEN the user submits the login formTHEN the system creates an authenticated sessionAND redirects to the dashboard

For validation patterns, see reference/VALIDATION_PATTERNS.md [blocked]

Step 7: Validate proposal structure

Run these checks before presenting to user:

markdown
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:

bash
# 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 headersgrep -n "### Requirement:" spec/changes/{change-id}/specs/**/*.md

Step 8: Present for user approval

Summarize the proposal clearly:

markdown
## 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.

Advanced Topics

EARS format details: See reference/EARS_FORMAT.md [blocked] Validation patterns: See reference/VALIDATION_PATTERNS.md [blocked] Complete examples: See reference/EXAMPLES.md [blocked]

Common Patterns

Pattern 1: New feature proposal

When adding net-new capability:

  • Use ADDED Requirements delta
  • Include positive scenarios AND error handling
  • Consider edge cases in scenarios

Pattern 2: Breaking change proposal

When changing existing behavior:

  • Use MODIFIED Requirements delta
  • Include complete updated requirement text
  • Document what changes and why in proposal.md
  • Consider migration tasks in tasks.md

Pattern 3: Deprecation proposal

When removing features:

  • Use REMOVED Requirements delta
  • Document removal rationale in proposal.md
  • Include cleanup tasks in tasks.md
  • Consider user migration in impact section

Anti-Patterns to Avoid

Don't:

  • Skip validation checks (always run grep patterns)
  • Create proposals without reviewing existing specs first
  • Use vague task descriptions ("Fix the thing")
  • Write requirements without scenarios
  • Forget error handling scenarios
  • Mix multiple unrelated changes in one proposal

Do:

  • Check for conflicts before creating change ID
  • Write concrete, testable tasks
  • Include positive AND negative scenarios
  • Keep one concern per proposal
  • Validate structure before presenting

File Templates

All templates are in the templates/ directory:

  • proposal.md [blocked] - Proposal structure
  • tasks.md [blocked] - Task checklist format
  • spec-delta.md [blocked] - Spec delta template

Reference Materials

  • EARS_FORMAT.md [blocked] - Complete EARS syntax guide
  • VALIDATION_PATTERNS.md [blocked] - Grep/bash validation
  • EXAMPLES.md [blocked] - Real-world proposal examples

Token budget: This SKILL.md is approximately 450 lines, under the 500-line recommended limit. Reference files load only when needed for progressive disclosure.

来源与署名

来源:forztf/open-skilled-sdd位于skills/openspec-proposal-creation提交792f488

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架