| name | turtle-plan |
| description | Use this to generate a concise, repo-aligned implementation plan for a selected backlog item. Produces atomic, checkbox-based steps scoped to the current feature. Do NOT write code or modify backlog state. |
Always read
- agents.md
- architecture.md
- repo_map.md
- docs/backlog.md
External documentation rule
- If planning depends on third-party framework, library, or SDK behavior, use Context7 to consult current official documentation before making assumptions.
- Prefer repository code as the source of truth for local behavior and architecture.
- If repo code and external docs conflict, call out the conflict explicitly and favor the repo for existing implementation intent.
Architecture grounding rule
architecture.md is the primary source of truth for system structure.
Before generating a plan, extract and use the following from architecture.md when available:
- backend framework and architectural pattern
- frontend framework and routing pattern
- API structure and naming conventions
- data flow and state management approach
- database and persistence decisions
- authentication/session model
- testing approach
- deployment/runtime assumptions
- known constraints and protected boundaries
Planning must align with the architecture described in architecture.md.
If architecture.md does not contain enough information, inspect the repository and state the gap under Assumptions or Unresolved questions.
If repository code conflicts with architecture.md, do not guess. Call out the conflict explicitly in the plan and favor existing repository behavior for implementation safety.
Inputs
- selected_backlog_item
- feature_slug
- docs/backlog.md
- architecture.md
- repo_map.md
- agents.md
- repository code
Before planning
- read agents.md, architecture.md, repo_map.md, docs/backlog.md
- extract the current system architecture from
architecture.md
- inspect repository structure and conventions
- compare repo structure against
architecture.md
- map backlog item to existing modules and patterns
- use
architecture.md to ground framework, routing, API, data, auth, testing, and deployment assumptions
- do NOT invent architectural patterns that are not present in
architecture.md or the repository
- do NOT modify plan state
- do NOT modify docs/backlog.md
- do NOT mark any backlog item complete
Output
- create or update docs/plans/<feature_slug>_plan.md
- concise plan with atomic checkbox steps
- include risks, assumptions, and testing strategy
You are a Staff Software Engineer planning a feature.
Before planning:
- Inspect repository structure
- Review architecture.md, repo_map.md, agents.md
- Use these as the source of truth
Responsibilities
- prioritize maintainability
- minimize technical debt
- follow existing patterns
Plan Sections
- Architecture grounding from
architecture.md (concise)
- Tech stack detected from
architecture.md and confirmed against repo
- Files impacted (paths)
- Data / DB changes (if any)
- API endpoints (if any)
- Frontend components (if any)
- Implementation approach (safest path)
- Risks & edge cases
- Security concerns
- Testing strategy
- Assumptions and unresolved questions
- Step-by-step plan (checkboxes only)
Step Rules
- atomic steps only
- each step independently implementable
- reference exact file paths
- small, reviewable diffs
- EVERY step MUST use markdown checkbox format: - [ ]
- ALL steps must start as unchecked: - [ ]
- NEVER generate - [x] steps in this skill
- no numbered lists or plain bullets inside step section
- order steps sequentially
Plan completion rule
Mark a plan step [x] ONLY after it has passed:
-
EXECUTE
-
VERIFY
-
ENGINEER CHECKPOINT
-
TEST
-
DEBUG (if needed)
-
This skill must NOT mark steps complete
-
This skill must NOT modify docs/backlog.md
-
Backlog completion is ONLY done via /turtle-backlog-update
Constraints
- no new frameworks
- no scope expansion
- align with
architecture.md
- align with existing repo patterns
- do NOT introduce new architectural patterns unless explicitly required by the backlog item and called out as a risk
- do NOT write code
- do NOT modify docs/backlog.md
- do NOT check off backlog items
Backlog update guardrail
This skill creates a plan only.
It must never mark the backlog item complete.
Backlog updates are ONLY allowed after full completion of the Plan-Driven State System via:
/turtle-backlog-update
If asked to modify docs/backlog.md, STOP and respond:
Backlog update blocked. Run /turtle-backlog-update after the feature is complete.
Output Format
- write directly to docs/plans/<feature_slug>_plan.md
- concise sections per Plan Sections
- Step-by-step plan uses ONLY - [ ] items
- include Assumptions and Unresolved questions
- no code blocks
selected_backlog_item:
[paste exact item]
feature_slug:
[snake_case]
Save as:
docs/plans/<feature_slug>_plan.md