plan-sprint
Creates sprint plans using a two-phase model — roadmap (batch, lightweight) and detail (full artifacts, pre-execution)
- License 许可
- MIT
- 最近更新
- 2026-09-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- plan-sprint
- description
- Creates sprint plans using a two-phase model — roadmap (batch, lightweight) and detail (full artifacts, pre-execution)
03 SKILL.md 正文
Plan Sprint Skill
This skill creates sprint plans using a two-phase model:
-
Phase 1 — Roadmap: Batch planning. Multiple sprints can be planned in one session. Produces a lightweight
sprint.mdonly (goals, scope, TODO references). No branches created. -
Phase 2 — Detail: One sprint at a time. Produces full planning artifacts via the sprint-planner agent: a single
sprint.mdwith right-sized Architecture and Use Cases sections (or, when the project has opted into the persistent design-doc set, adesign/overlay instead of the Architecture section — see "Design overlay opt-in check" below), plus tickets. Sizing is a three-tier decision (trivial / compact / substantial) — see the sprint-planneragent.mdfor the full criteria and how each tier handles diagrams and the architecture review gate (skippedfor trivial, a scoped review for compact, the full review for substantial).
Branches are created later via acquire_execution_lock, not during
planning. All planning happens on main.
Inputs
- Stakeholder conversation describing the work to be done
docs/clasi/design/overview.md(must exist)
Critical Rules
DO NOT create tickets during roadmap mode or before the sprint has
advanced to the ticketing phase. The create_ticket MCP tool will
reject attempts before that phase.
DO NOT create a git branch during planning. Branches are created
at execution time by acquire_execution_lock.
Issue Linkage
During the planning-docs phase (Phase 1, after create_sprint), call
link_sprint_issues(sprint_id, issue_filenames) to associate issues with
the sprint. This writes the issues: list in the sprint's frontmatter and
updates each issue file's sprint: field. Do not write the issues: field
manually via write_artifact_frontmatter.
The correct tool signature is: link_sprint_issues(sprint_id, issue_filenames)
Phase 1: Roadmap Mode
For batch roadmap planning of multiple sprints.
Process
-
Determine sprint number: Check
docs/clasi/sprints/anddocs/clasi/sprints/done/for existing sprints. Next sequential number. -
Mine the TODO directory: Scan
docs/clasi/todo/for relevant ideas. Discuss with the stakeholder. -
Create sprint directory: Use the
create_sprintMCP tool. -
Write sprint.md: Lightweight plan with:
- Frontmatter:
status: roadmap - Goals and feature scope
- Issue references
- No tickets, no architecture, no use cases
- Frontmatter:
-
Link issues: Call
link_sprint_issues(sprint_id, issue_filenames)for each issue claimed by this sprint. Do not setissues:frontmatter manually. -
Repeat for additional sprints as needed.
Phase 2: Detail Mode
When a roadmap sprint is ready for execution. Invoke the sprint-planner agent via the Agent tool to fill in full planning artifacts.
Process
-
Verify sprint exists: Sprint directory and roadmap
sprint.mdshould already exist from Phase 1. -
Invoke sprint-planner agent: Use the Agent tool to dispatch the sprint-planner agent with:
- Sprint ID and directory path
- Sprint goals and TODO references
- Path to
docs/clasi/design/overview.md - Path to current architecture
The sprint-planner handles architecture, architecture review, and ticket creation inline — no sub-dispatches needed.
2a. Split partial-scope issues: If any issue in scope covers work that cannot all fit in this sprint, call
split_issuefirst to carve out the in-scope piece as a separate issue file. The split issue will be a sibling of the original in the same directory. Then callcreate_ticket(issue=<split-filename>)to bring the in-scope piece into the sprint. The remainder stays in the pool or sprint for a future sprint.2b. Design overlay opt-in check: Read
Project.design_docs_opt_in. - Unset orFalse: skip design-overlay steps entirely; the sprint-planner writes the Architecture section ofsprint.mdas it always has (Mode 2 ofarchitecture-authoring). Nodesign/directory is created for this sprint. -True: after the sprint-planner makes its sizing decision (trivial / compact / substantial) and identifies which canonicaldocs/design/doc(s) the sprint's changes affect (Mode 2a, Step 1 ofarchitecture-authoring), it callsseed_sprint_design_overlay(sprint_id, doc_names)with those filenames. This is the sequencing resolution for where the seed-and-commit step fires: it happens here, during Phase 2 detail planning, once the affected docs are known — not atcreate_sprint(Phase 1), which runs before any sprint-planner analysis exists to name the affected docs.create_sprintitself never calls into the design-overlay machinery. The seed commit still lands onmain, beforeacquire_execution_lockbranches off it (sprint 021 Open Question 3's resolution), because Phase 2 entirely precedesacquire_execution_lock(step 4 below) — so the sprint branch, once created, already contains the seed commit. For a trivial-tier sprint, skip this call: nodoc_namesmeans no overlay, matching the "N/A — trivial" skip on the not-opted-in path. - The sprint-planner then edits the seeded copies, generates diffs, and validates, perarchitecture-authoringMode 2a Steps 2-5, before architecture review runs. -
Stakeholder review: Present the completed plan to the stakeholder. Call
review_sprint_pre_execution, which runs the sprint's precondition checks and, when opted in and the sprint carries adesign/overlay, additionally generates diffs (generate_diffs) and commits the edited overlay copies (commit_edits) as its final step — only after every other precondition has already passed. This is the commit that closes the git-dirty window Mode 2a's Step 3 opened: from here on, the sprint'sdesign/directory is clean until execution ends. Record stakeholder approval gate (record_gate_result). -
Acquire execution lock: Call
acquire_execution_lockto claim the lock and create the sprint branch. Advance toexecuting. Because the edited-copy commit (step 3) already landed onmain, the branch created here already contains it — no cross-branch reconciliation is needed. -
Set sprint status: Update sprint doc status to
active.
Output
- Sprint directory with full planning documents
- Sprint branch created (via acquire_execution_lock)
- Tickets in
tickets/ready for execution