home / skills / shotaiuchi / dotclaude / ghwf3-plan
This skill generates a complete implementation plan from specifications, creating a 03_PLAN.md with steps, file changes, dependencies, and risk assessment.
npx playbooks add skill shotaiuchi/dotclaude --skill ghwf3-planReview the files below or copy the command above to add this skill to your agents.
---
name: ghwf3-plan
description: 実装計画ドキュメントを作成
argument-hint: "[update | revise]"
context: fork
agent: general-purpose
---
**Always respond in Japanese. Write all workflow documents (*.md) in Japanese.**
# /ghwf3-plan
仕様書から実装計画を作成する。
## Usage
```
/ghwf3-plan # 新規作成
/ghwf3-plan update # 対話形式で更新
/ghwf3-plan revise # フィードバックに基づいて更新
```
## Prerequisites
- `ghwf2-spec` 完了済み
- `02_SPEC.md` が存在
## Processing
### 1. Load Context
- Read `state.json` for active work
- Read `01_KICKOFF.md`, `02_SPEC.md`
- Fetch Issue with comments:
```bash
gh issue view <issue> --json body,comments
```
- Analyze codebase structure
### 2. Create 03_PLAN.md
- Template: `~/.claude/templates/03_PLAN.md`
- Sections:
- Implementation Steps (ordered)
- File Changes
- Dependencies
- Risk Assessment
### 3. Commit & Push
**Execute immediately without confirmation:**
```bash
git add docs/wf/<work-id>/03_PLAN.md
git commit -m "docs(wf): create plan <work-id>"
git push
```
### 4. Update PR & Labels
- PR チェックリスト更新
- `ghwf:step-3` ラベル追加
### 5. Update State
```json
{
"current": "ghwf3-plan",
"next": "ghwf4-review",
"last_execution": "<ISO8601>"
}
```
This skill generates an implementation plan document (03_PLAN.md) from an existing specification and project context. It automates reading the kickoff and spec files, analyzing the repository and issue discussion, and producing a structured plan ready for commit. The skill also updates repository state, PR checklist, and workflow labels to advance the work item.
The skill loads active work context from state.json and reads 01_KICKOFF.md and 02_SPEC.md, then fetches the related issue body and comments using the GitHub CLI. It analyzes the codebase structure to determine impacted files, dependencies, and risks, and fills the 03_PLAN.md template with ordered implementation steps, file change details, dependencies, and risk assessment. Finally it commits and pushes the new plan, updates PR checklist and labels, and writes the updated workflow state.
Will the skill make commits automatically?
Yes. The skill stages, commits, and pushes 03_PLAN.md immediately using a predefined commit message.
What files does it read to build the plan?
It reads state.json, 01_KICKOFF.md, 02_SPEC.md and fetches the related GitHub issue body and comments, then inspects the repository structure.
How does it update workflow state?
It writes the new current/next step and last_execution timestamp into state.json and adds the ghwf:step-3 label and PR checklist updates.