mcpField
O
openspec-proposal

openspec-proposal

github.com/chyiiiiiiiiiiii開発1347 回インストール39 週間前に更新
リポジトリ

openspec-proposal について

openspec-proposalは、OpenSpecの仕様駆動開発ワークフローで変更提案を作成するスキルです。変更ID、提案・タスクファイル、差分仕様を生成し、レビューに提示します。

主な機能

  1. 01kebab-caseの変更ID生成
  2. 02変更ディレクトリの作成
  3. 03提案ファイルとタスクファイルの生成
  4. 04対象領域の差分仕様作成
  5. 05生成ファイルのレビュー提示

活用シーン

  1. 01新機能の変更提案の作成
  2. 02OpenSpecレビュー用ファイルの準備

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/chyiiiiiiiiiiii/openspec-skills --skill openspec-proposal

インストール後、Claude Code で/openspec-proposalを入力して読み込まれたか確認します。

詳細

OpenSpec:提案

OpenSpec の仕様駆動型開発ワークフローに沿って、新しい変更提案を作成します。

使い方

/openspec-proposal <feature description>

例:

/openspec-proposal add user search feature

このスキルでできること

  1. 説明から一意の変更 ID を生成します(ケバブケース)
  2. openspec/changes/ 配下に変更ディレクトリ構造を作成します
  3. proposal.md、tasks.md、差分仕様を生成します
  4. 提案を提示してレビューを受けます

実行手順

ステップ 1:変更 ID を生成する

説明をケバブケースに変換して、変更 ID を作成します。

例: 「add user search」→ add-user-search

ステップ 2:ディレクトリ構造を作成する
mkdir -p openspec/changes/{change-id}/specs
ステップ 3:proposal.md を生成する

openspec/changes/{change-id}/proposal.md を作成します。

# Proposal: {Feature Title}

**Change ID:** `{change-id}`
**Created:** {YYYY-MM-DD}
**Status:** Draft

---

## Problem Statement

{Analyze the request and describe:}
- What problem are we solving?
- Who is affected?
- What's the current pain point?

## Proposed Solution

{High-level approach:}
- Key components
- Technical approach
- Expected outcomes

## Scope

### In Scope
- {Core functionality}
- {Essential features}

### Out of Scope
- {Explicitly excluded items}
- {Future considerations}

## Impact Analysis

| Component | Change Required | Details |
|-----------|-----------------|---------|
| Database | Yes/No | {details} |
| API | Yes/No | {details} |
| State | Yes/No | {details} |
| UI | Yes/No | {details} |

## Architecture Considerations

{How does this fit with existing patterns?}
{Any new patterns introduced?}
{Dependencies on other components?}

## Success Criteria

- [ ] {Measurable outcome 1}
- [ ] {Measurable outcome 2}
- [ ] {Measurable outcome 3}

## Risks & Mitigations

| Risk | Probability | Impact | Mitigation |
|------|-------------|--------|------------|
| {risk} | Low/Med/High | Low/Med/High | {strategy} |
ステップ 4:tasks.md を生成する

openspec/changes/{change-id}/tasks.md を作成します。

# Implementation Tasks: {Feature Title}

**Change ID:** `{change-id}`

---

## Phase 1: Foundation (Data Layer)

- [ ] 1.1 {Data model task}
- [ ] 1.2 {Repository task}
- [ ] 1.3 {Data layer tests}

**Quality Gate:**
- [ ] Code analysis passes
- [ ] Unit tests pass

---

## Phase 2: Business Logic (Domain/State)

- [ ] 2.1 {Provider/state task}
- [ ] 2.2 {Business logic task}
- [ ] 2.3 {Provider tests}

**Quality Gate:**
- [ ] Code analysis passes
- [ ] State transitions tested

---

## Phase 3: User Interface

- [ ] 3.1 {Page/widget task}
- [ ] 3.2 {Component task}
- [ ] 3.3 {Widget tests}

**Quality Gate:**
- [ ] Code analysis passes
- [ ] Widget tests pass

---

## Phase 4: Integration & Polish

- [ ] 4.1 Add i18n strings (if applicable)
- [ ] 4.2 Integration testing
- [ ] 4.3 Performance verification
- [ ] 4.4 Documentation update

**Quality Gate:**
- [ ] All tests pass
- [ ] Code analysis clean
- [ ] Documentation synced

---

## Completion Checklist

- [ ] All phases complete
- [ ] All quality gates passed
- [ ] Documentation synced
- [ ] Ready for `/openspec-archive`
ステップ 5:差分仕様を生成する

openspec/changes/{change-id}/specs/{component}_delta.md を作成します。

# Delta: {Component Name}

**Change ID:** `{change-id}`
**Affects:** {list of affected areas}

---

## ADDED

### Requirement: {New Requirement Title}

{Description of new functionality}

#### Scenario: {Scenario Name}
- GIVEN {precondition}
- WHEN {action}
- THEN {expected result}

---

## MODIFIED

### Requirement: {Existing Requirement Title}

{Updated description}

#### Scenario: {Updated Scenario}
- GIVEN {new precondition}
- WHEN {new action}
- THEN {new result}

---

## REMOVED

{List any deprecated requirements, or "(None)" if nothing removed}
ステップ 6:レビュー用に提示する

すべてのファイルを生成した後、次の内容を要約します。

## Proposal Created: {change-id}

### Files Generated:
- `openspec/changes/{change-id}/proposal.md`
- `openspec/changes/{change-id}/tasks.md`
- `openspec/changes/{change-id}/specs/{component}_delta.md`

### Next Steps:
1. Review the proposal.md for accuracy
2. Adjust tasks.md if needed
3. Verify delta specs match requirements
4. When ready: `/openspec-apply {change-id}`

重要な注意事項

  • 現在の状態を把握するため、openspec/specs/ 内の既存の仕様を読みます
  • プロジェクトの規約については openspec/project.md を参照します
  • プロジェクトの CLAUDE.md にあるパターンに合わせます
  • スコープを最小限に保ち、機能の過剰な追加を避けます

コメント