用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bdarbaz/claude-stack-plugin --skill s-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Autonomous workflow loop - runs the full skill chain automatically with circuit breaker and stuck detection
Freeform router - accepts natural language and routes to the appropriate skill(s)
Show all available skills, agents, and workflow guides - quick reference card for claude-stack
基于 SOC 职业分类
正在显示 SKILL.md
| name | s-plan |
| description | Create implementation roadmap with phases, tasks, and dependencies from requirements |
You are creating a detailed implementation roadmap from the gathered requirements. This skill transforms REQUIREMENTS.md into a phased ROADMAP.md with actionable tasks.
Before starting, read and verify:
.planning/REQUIREMENTS.md exists and has content. If not: "No requirements found. Run /s:discuss first.".planning/PROJECT.md for project vision and constraints..planning/STATE.md for current state.${CLAUDE_PLUGIN_ROOT}/lib/tdd-protocol.md for task structure guidance.If any docs/brainstorms/ files exist, read the most recent ones for additional context.
Before creating the roadmap, brainstorm 2-3 architecture approaches. For each approach:
Present all approaches to the user and recommend one with a clear rationale. Wait for user confirmation before proceeding.
If the tech stack is already decided (from PROJECT.md or REQUIREMENTS.md), focus the brainstorm on architectural patterns within that stack rather than stack selection.
Group requirements into implementation phases following these principles:
For each phase, define:
Each task should follow TDD-compatible structure:
Task {N}: {title}
- What: {what to implement}
- Test: {what test to write first}
- Files: {which files will be created/modified}
- Acceptance: {how to verify it works}
- Estimate: S/M/L (Small: <1hr, Medium: 1-4hr, Large: 4hr+)
Write .planning/ROADMAP.md with this structure:
# Roadmap
## Architecture
**Approach:** {chosen approach name}
**Rationale:** {why this approach was chosen}
**Key decisions:**
- {decision 1}
- {decision 2}
## Phase Overview
| Phase | Name | Goal | Tasks | Dependencies | Status |
|-------|------|------|-------|--------------|--------|
| 1 | {name} | {goal} | {count} | - | pending |
| 2 | {name} | {goal} | {count} | Phase 1 | pending |
| ... | ... | ... | ... | ... | ... |
---
## Phase 1: {Name}
**Goal:** {one sentence}
**Success Criteria:**
- [ ] {criterion 1}
- [ ] {criterion 2}
**Requirements:** R1, R2, NF1
### Tasks
#### Task 1.1: {Title}
- **What:** {description}
- **Test first:** {what test to write}
- **Files:** {file list}
- **Acceptance:** {verification method}
- **Estimate:** {S/M/L}
#### Task 1.2: {Title}
...
---
## Phase 2: {Name}
...
Create the directory and detailed plan for the first phase:
.planning/phases/1/ directory.planning/phases/1/PLAN.md:# Phase 1: {Name}
**Status:** pending
**Started:** -
**Completed:** -
## Goal
{expanded goal description}
## Tasks
### Task 1.1: {Title}
**Status:** pending
**Description:**
{detailed description of what to implement}
**TDD Approach:**
1. Write test: {describe the test}
2. Run test (should FAIL - RED)
3. Implement: {describe minimal implementation}
4. Run test (should PASS - GREEN)
5. Refactor: {what to clean up}
**Files to create/modify:**
- {file 1}: {what goes here}
- {file 2}: {what goes here}
**Acceptance Criteria:**
- [ ] {criterion}
- [ ] {criterion}
---
### Task 1.2: {Title}
...
.planning/phases/1/CONTEXT.md:# Phase 1 Context
## What this phase is about
{2-3 sentences}
## Key decisions made
- {decision from brainstorm}
## Dependencies
- {what must exist before this phase starts}
## Reference
- Architecture approach: {name} (see ROADMAP.md)
- Requirements: {list of R/NF IDs}
Update .planning/STATE.md:
planned1{DATE} | Architecture: {approach} | {rationale summary}{DATE} | Roadmap created | {N} phases, {M} total tasksOutput to the user:
Roadmap created with {N} phases and {M} total tasks.
Architecture: {approach name}
Phase 1: {phase name} ({task count} tasks)
Saved to:
.planning/ROADMAP.md - Full roadmap
.planning/phases/1/PLAN.md - Phase 1 detailed plan
.planning/phases/1/CONTEXT.md - Phase 1 context
Next step: Run `/s:build` to start implementing Phase 1 with TDD.
Optional:
- Run `/s:ceo-review` for product perspective review of the plan
- Run `/s:eng-review` for technical review of the architecture
- Run `/s:brainstorm` to explore a specific aspect deeper before building