create-plan
Create detailed implementation plans through interactive research. Use when the user asks to plan a feature/epic/refactor before implementing, or invokes /create-plan with a ticket/spec.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- create-plan
- model
- opus
- description
- Create detailed implementation plans through interactive research. Use when the user asks to plan a feature/epic/refactor before implementing, or invokes /create-plan with a ticket/spec.
- argument-hint
- [optional: ticket #1234 or spec path]
02 资源文件 1
- 参考文档reference/plan-template.md1.1 KB
03 SKILL.md 正文
Create Plan
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work collaboratively with the user to produce high-quality technical specifications.
Initial Response
When this command is invoked:
-
Check if parameters were provided:
- If a file path or ticket reference was provided as a parameter, skip the default message
- Immediately read any provided files FULLY
- Begin the research process
-
If no parameters provided, respond with:
I'll help you create a detailed implementation plan. Let me start by understanding what we're building.
Please provide:
1. The task/ticket description (or reference to a ticket file)
2. Any relevant context, constraints, or specific requirements
3. Links to related research or previous implementations
Tip: You can also invoke this command with a GitHub issue or spec directly: `/create-plan #1234` or `/create-plan v2/docs/specs/backend/imports.spec.md`
For deeper analysis, try: `/create-plan think deeply about #1234`
Then wait for the user's input.
Process Steps
Step 0: Discuss Phase
Before any research or planning, identify gray areas that need user decisions.
-
Scan for ambiguity — Read the task/ticket and identify:
- Decisions that affect architecture (which approach? which library?)
- UX choices (behavior on edge cases, error states)
- Scope boundaries (what's in, what's deliberately out)
-
Present gray areas — Show max 5 items:
Before I research, I need your input on these decisions:
1. [Decision A] — Option X vs Option Y
2. [Decision B] — Include or exclude?
3. [Decision C] — Approach 1 vs Approach 2
Which would you like to discuss? (or "skip" to let me decide)
-
Capture decisions — Record each decision in the plan under a
## Decisionssection. Mark user choices explicitly and "Claude's discretion" for delegated items. -
Scope guardrail — If the user suggests additions beyond the original scope, flag it:
"[Feature X] would be a new capability — that's its own phase/ticket.
Let's keep this focused on [original scope]."
Step 1: Context Gathering & Initial Analysis
-
Read all mentioned files immediately and FULLY:
- Primary context source: living specs in
v2/docs/specs/(SDD model, ADR-017) — start atv2/docs/specs/INDEX_SDD.md, then read the relevant spec (specs/domain/,specs/backend/,specs/frontend/,specs/infra/) - Ticket files, research documents, related plans
- CONTEXT.md files in relevant directories (services/, dev_tools/), if present
- IMPORTANT: Use the Read tool WITHOUT limit/offset parameters
- CRITICAL: DO NOT spawn sub-tasks before reading these files yourself
- Primary context source: living specs in
-
Spawn initial research tasks to gather context: Before asking the user any questions, use specialized agents to research in parallel:
- Use
Exploreagents to find related code, patterns, and potential conflicts - Use Context7 MCP to fetch current docs for libraries involved
- Check existing tests that cover the area being modified
- Use
-
Present findings to the user before proceeding to planning
Step 2: Write the Plan
Write the plan to thoughts/shared/plans/PLAN-{name}.md.
Use the structure and context-rot rules in reference/plan-template.md.
Step 3: Review & Iteration
Present the plan to the user. Iterate until approved.
On approval, the plan is ready for /implement-plan.
AS-Specific Rules
- Always check
aprender-domainskill for RF/RD/PA/CP compliance - Always check
django-patternsskill for Django/DRF conventions - Plans touching availability must reference RD-01~08
- Plans touching approval must reference PA-01~07
- Plans must specify which tests to run for verification
- Plans for epics should use wave-based execution (Wave 1, 2, 3...)
04 同仓库更多 Skills
writing-standards
Apply AS v2 technical-writing standards (clarity, brevity, active voice, Python/Django conventions). Use when writing a README, a docstring (PEP 257), a commit message, a PR description, an error message, or any technical doc.
verification-gate
Verify before claiming success. Use when about to say something works/is done, after implementing a feature, after a bugfix, or before pushing — run the proof command and confirm output first.
test-driven-development
Write the failing test before the implementation in AS v2 (pytest + Django/DRF). Use when implementing a feature or fixing a bug, before any production code is written.
subagent-development
Orquestra subagents no AS v2 — decompõe a tarefa em domínios independentes, paraleliza e revisa em 2 estágios. Use ao delegar exploração, implementação ou validação cross-arquivo para acelerar o trabalho e poupar o contexto principal.
security-scan
Automated security scanning for AS v2. Use before commits or when reviewing changes for vulnerabilities. Runs dependency audit (pip-audit, npm audit), secret detection (grep patterns), and code pattern scanning (SQL injection, XSS, eval, pickle, hardcoded secrets). Integrates with project hooks system.
resume-handoff
Resume work from a saved handoff document, validating its state against the current codebase before continuing. Use when resuming work from a saved handoff after a context clear or in a new session (path, session name, or GitHub issue).