用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gittower/git-flow-next --skill create-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | create-plan |
| description | Create a test-first implementation plan from a spec issue, analysis, or concept |
| allowed-tools | Read, Grep, Glob, Write, Bash, mcp__github__get_issue |
Generate a test-first implementation plan. The plan is built in two phases, in the spirit of TDD: the test plan comes first — detailed scenarios exercising code that does not yet exist or will change — and the implementation outline second, serving those tests. TDD is mostly about finding the right design and all edge cases upfront; the test plan is where that happens.
Detect Current Context
feature/42-something → look for .ai/issue-42-*/feature/my-feature → look for .ai/feature-my-feature/Find the Source of Truth
In order of preference:
spec label (or contains Test Scenarios / Expected Behavior
sections per ISSUE_GUIDELINES.md), it is the source of truthanalysis.md (from /analyze-issue) or concept.md (for features) in
the workflow folder/analyze-issue first or
provide contextRead Project Guidelines
Phase 1: Build the Test Plan
This phase comes first and gets the most effort:
Phase 2: Outline the Implementation
Derive the implementation tasks from the test plan — what has to change for those tests to pass:
Write the Plan
Write plan.md in the workflow folder using the template below.
Write to .ai/<folder>/plan.md:
# Implementation Plan: <branch-name>
## Source
- Spec: #<number> (<link>) — or Analysis: `.ai/<folder>/analysis.md`
## Overview
<Brief summary of what will be implemented>
## Test Plan
<This section is authoritative. Tests are written from it before the
implementation, and must not be changed to make the implementation pass —
see /implement.>
### Scenario 1: <name>
- **Test**: `Test<Name>` in `test/cmd/<file>_test.go`
- **Setup**: <repository/config state before the action>
- :
:
...
[ ] Happy path(s) covered
[ ] Error conditions covered
[ ] Edge cases from spec/analysis covered
[ ] Additional edge cases found while double-checking:
:
[ ] Implement all scenarios from the Test Plan as tests
[ ] Verify they fail for the right reason (missing behavior, not setup bugs)
:
[ ]
:
:
[ ]
: Task 2
[ ] -
[ ] -
[ ] Command help text updates
| Checkpoint | After Task | Verification |
|------------|------------|--------------|
| 1 | Task 1 | Tests compile and fail on missing behavior |
| 2 | Task 2 | |
| 3 | Task N | and fully pass |
Plan commits following COMMIT
Validate Plan
Report Completion
/validate-tests — the Codex gate on the test
plan. Implementation must not start before the gate has run.