一键导入
plan
Entry point for feature planning workflow. Guides users through PRD creation, spec generation, and swarm design with automatic context management.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Entry point for feature planning workflow. Guides users through PRD creation, spec generation, and swarm design with automatic context management.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstrap new projects or add the agents-workflow system to existing projects. Use for new project scaffolding (Next.js, Python, Rust) or adding workflow capabilities to any git repository.
Generate an actionable retro from Pi session logs + orchestration artifacts, and propose concrete doc/template improvements.
Execute implementation plans with parallel worker agents in git worktrees. Spawns agents, monitors progress, coordinates merges. Use after /skill:plan completes.
Implement features using worktree-based development with TDD. Use after spec approval to build features in isolated git worktrees with quality gates.
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Analyze codebase for optimization and refactoring opportunities. Use for periodic quality checks, identifying tech debt, and planning improvements.
| name | plan |
| description | Entry point for feature planning workflow. Guides users through PRD creation, spec generation, and swarm design with automatic context management. |
Unified entry point for the complete feature planning workflow. Progressively guides through product requirements, technical specification, and implementation task design. First step in the three-prong development workflow: Plan → Implement → Validate.
/skill:plan [feature-name]
↓
Phase 1: PRD (requirements gathering via interview)
↓
Phase 2: Spec (technical architecture with research validation)
↓
Phase 3: Tasks (implementation plan generation)
↓
HANDOFF → /skill:swarm for execution
/skill:plan [feature-name] # Interactive — auto-detects phase
/skill:plan [feature-name] --prd # Force PRD creation
/skill:plan [feature-name] --spec # Force spec creation (requires PRD)
/skill:plan [feature-name] --resume # Resume interrupted workflow
/skill:plan [feature-name] --quick # Quick mode PRD (5 questions)
/skill:init)docs/prds/{feature-name}.mddocs/specs/{feature-name}-spec.mdAnalyze existing files to determine the starting phase:
| Files Found | Action |
|---|---|
| No PRD, no spec | Start at Phase 1 (PRD) |
| PRD exists, no spec | Start at Phase 2 (Spec) |
| Both PRD and spec | Start at Phase 3 (Tasks via design-swarm) |
| Spec but no PRD | Warn — offer to create PRD retroactively or proceed |
Display what was found and the recommendation. Wait for user confirmation before proceeding.
Before starting this phase, read the PRD Interview Guide and PRD Template.
Goal: Capture "what" and "why" — never "how".
docs/prds/{feature-name}.md exists.--quick): 5-7 questions covering problem, users, capabilities, success, risksdocs/prds/_template.md, populate from interview, write to docs/prds/{feature-name}.mdBefore proceeding, verify the PRD has:
✅ PRD created: docs/prds/{feature-name}.md
Continue with technical specification? [Y/n]
Yes → Save context summary to .plan-{feature}.json, proceed to Phase 2
No → End here (resume later with /skill:plan {feature-name})
Before starting this phase, read the Spec Template and ADR Template.
Goal: Create implementation blueprint with research-validated technical decisions.
docs/prds/{feature-name}.md. Check docs/reviews/ for related reviews.context7_resolve-library-id + context7_query-docs: Library resolution, API docs, version compatibilityexa_web_search_exa: Implementation patterns, benchmarks, competitive analysisexa_get_code_context_exa: Code examples (fallback when Context7 insufficient).pi/AGENTS.md is a stub (has unfilled placeholders), populate it from the codebase analysis:
package.json, pyproject.toml, Cargo.toml, etc.)docs/specs/_template.md, populate all sections including:
--skip-review): Validate against quality criteria.docs/decisions/ADR-XXXX-*.md using docs/decisions/_adr-template.md.docs/specs/{feature-name}-spec.md.| Input Source | Spec Type | Key Difference |
|---|---|---|
| PRD only | Feature spec | User stories drive design |
Review findings (--from-review) | Improvement spec | Before/after state, migration strategy, rollback plan |
| PRD + review | Enhanced feature spec | Feature + known issues addressed |
Every spec must include:
## Implementation Details
**Feature Branch**: `feat/{feature-name}`
**Base Branch**: `dev`
**Testing**: Unit 80% min coverage, integration for all non-UI components
Before proceeding, verify the spec has:
✅ Spec created: docs/specs/{feature-name}-spec.md
Continue with implementation planning? [Y/n]
Yes → Proceed to Phase 3
No → End here
Before starting this phase, read the Task Design Guide.
Goal: Break spec phases into executable tasks with dependency tracking.
docs/specs/{feature-name}-spec.md Implementation Plan sectiondocs/plans/{feature-name}.mddocs/tasks/{feature-name}-phase-{n}.md (one per phase)✅ PLANNING COMPLETE
Generated artifacts:
- docs/prds/{feature-name}.md
- docs/specs/{feature-name}-spec.md
- docs/plans/{feature-name}.md
- docs/tasks/{feature-name}-phase-*.md
- docs/decisions/ADR-*.md (if any)
HANDOFF → /skill:swarm {feature-name}
Do not implement directly — use /skill:swarm for proper orchestration.
.plan-{feature}.json)Saved between phases for resume capability:
{
"feature": "user-dashboard",
"phase": "spec",
"prdFile": "docs/prds/user-dashboard.md",
"prdSummary": "Key requirements summary...",
"timestamp": "2024-01-30T22:00:00.000Z"
}
Each phase gets a clean context branch:
main
├── prd-{feature} (PRD interview conversation)
└── spec-{feature} (Clean spec creation context)
/skill:plan {feature} --resume loads .plan-{feature}.json and continues from the saved phase.
| Error | Resolution |
|---|---|
| No project setup | Prompt /skill:init or /skill:init --setup |
| Missing PRD for spec | Prompt to start with Phase 1 |
| Corrupted state file | Prompt user to choose phase manually |
| Spec has no phases | Prompt to add Implementation Plan section |
/skill:plan feature-name # Plan: PRD → Spec → Tasks
/skill:swarm feature-name # Implement: Parallel agents
/skill:validate-plan feature-name # Validate: Tests + spec compliance
/skill:swarm — Parallel execution with agents (next step)/skill:validate-plan — Spec compliance verification (final step)/skill:review-codebase — Generate review findings (alternative input for Phase 2)