sprint
Autonomously implements, reviews, and ships all issues in issues.md, with dynamic issue management.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Autonomously implements, reviews, and ships all issues in issues.md, with dynamic issue management.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Pre-meeting B2B account research. Produces a structured account brief (company overview, recent news, tech stack, decision structure hypothesis, hypothesized pain points, approach strategy). Use before /discovery-prep.
Generates a Discovery meeting plan from an account brief — SPIN questions, MEDDIC checklist, hypothesized pain points with verification questions, objection prep, time-boxed agenda. Run after /account-brief, before the meeting.
Generates post-meeting follow-up assets — customer-facing email draft, internal action list, CRM update fields, account_brief updates, champion status tracking. Run after any sales meeting.
Converts sales-written meeting notes (discovery type) into a PRD draft for PoC building, and updates account_brief.md with newly learned facts. The bridge between sales discovery and engineering PoC. Run after a discovery meeting, before /kickoff.
Generates a closing proposal from demo meeting notes + the actual PoC + account brief. Business-value first; technical specs in appendix. Run after a demo meeting, before contract negotiation.
Analyzes and critiques business viability. Use after /brainstorm and before /prd.
استنادا إلى تصنيف SOC المهني
| name | sprint |
| description | Autonomously implements, reviews, and ships all issues in issues.md, with dynamic issue management. |
| argument-hint | [--parallel N] [--max-iterations N] |
| allowed-tools | Task, Read, Glob, Grep, Write, Edit, Bash(bash scripts/checkpoint.sh *), Bash(bash scripts/wt_setup.sh *), Bash(bash scripts/wt_cleanup.sh *), Bash(bash scripts/registry_edit.sh *), Bash(bash scripts/flock_edit.sh *), Bash(bash scripts/worktree.sh *), Bash(python3 scripts/*), Bash(git *), Bash(gh *), Bash(pytest *), Bash(npm *), Bash(bash ${CLAUDE_PLUGIN_ROOT}/scripts/*), Bash(python3 ${CLAUDE_PLUGIN_ROOT}/scripts/*) |
Kit root: ${CLAUDE_PLUGIN_ROOT}
scripts/ dir): prefix every kit script command with it, e.g.
bash <kit-root>/scripts/checkpoint.sh …. Absolute paths also work from worktrees.${…} placeholder above → standalone layout: run commands as written.Run these checks silently at the start. Use results to adapt behavior:
[ -f issues.md ] — if true, this project uses the sprint system. Respect issue numbering and STATUS.md.[ -f docs/sprint_state.md ] — if true and Status shows running, a sprint is active. Be aware of parallel work in worktrees.[ -f docs/prd_digest.md ] — if true, read it for quick project context before starting.gh auth status before any GitHub operation.Every phase has a checkpoint. Run the verification command and check the exit code.
ADVISORY: line (advisory gate): report the gap, self-correct, continue.
Standard prefix:bash scripts/checkpoint.sh
Append --skill <name> --phase <phase> --issue <ID> for the specific check.
checkpoint.sh resolves the main repo root internally, so the command stays
a single prefix-matchable form (safe to allowlist as Bash(bash scripts/checkpoint.sh *)).
Pipeline skills operate in git worktrees to isolate changes from main.
WT="$(bash scripts/wt_setup.sh <branch>)" — creates the
worktree via scripts/worktree.sh create and writes .claude-kit/freeze-dir.txt
inside it in a single step.bash scripts/worktree.sh rootbash scripts/wt_cleanup.sh <branch> — cd's to main root
inside a subshell, then removes the worktree (never leaves CWD dangling).
All file operations happen inside $WT/. Shared files live on main only.Shared files (issues.md, STATUS.md, CHANGELOG.md) are managed on main only.
Always use registry_edit.sh for concurrent-safe writes — it resolves the
main repo root internally and delegates to flock_edit.sh:
bash scripts/registry_edit.sh issues.md -- bash -c '<update command>'
Never commit these files to feature branches.
--parallel N limit for concurrent subagent tasks.docs/sprint_state.md.registry_edit.sh for any shared file writes (issues.md, STATUS.md).Status: waiting, Reason: <failure-type> in sprint_state.md.issues.md must exist with at least one issue in backlog status.gh auth status must succeed.--parallel N: Max parallel issues (default: 3)--max-iterations N: Max loop iterations (default: 20)$ARGUMENTS for --parallel N and --max-iterations N:
--parallel is present, validate N is an integer between 1 and 10. If invalid, stop with: "Invalid --parallel value: must be an integer between 1 and 10."--max-iterations is present, validate N is an integer between 1 and 100. If invalid, stop with: "Invalid --max-iterations value: must be an integer between 1 and 100."Every issue MUST pass through all three phases in order. No exceptions.
implemented or reviewed) are retried via standalone REVIEW or SHIP actions.implemented or reviewed status. Clear the pipeline first.Pipeline priority order (enforced by scripts/sprint_queue.py — do NOT override):
reviewed status (highest priority)implemented statusbacklog issuesViolation = sprint failure: If at sprint end, ANY issue has Status=implemented or Status=reviewed (not shipped), the sprint is considered incomplete. Report these as unfinished pipeline items.
Validate pre-conditions:
issues.md — if no backlog issues, report "nothing to sprint" and stop.gh auth status — if fails, stop and instruct user to authenticate.Check for existing sprint state:
docs/sprint_state.md exists with Status=running, ask user: resume or start fresh?templates/sprint_state.md.Gather context (read once, reuse across iterations): Read all context files via parallel Read tool calls in a single message. Do NOT read them sequentially.
issues.md — full contentdocs/sprint_state.md — current statedocs/architecture.md — if existsdocs/data_model.md — if existsdocs/prd_digest.md — if exists (use as quick PRD context instead of full PRD)Sprint loop (iteration = 0; repeat while iteration < max-iterations):
a) Read fresh state: Re-read docs/sprint_state.md and issues.md every iteration.
b-c) Compute next action (deterministic — do NOT override):
Run the pipeline queue script:
python3 scripts/sprint_queue.py next-action --sprint-state docs/sprint_state.md --issues issues.md --max-parallel {MAX_PARALLEL}
If the script exits with non-zero and no JSON output: STOP the sprint and report the error. This indicates a parsing failure or circular dependency — do NOT proceed.
Parse the JSON output. The result contains action, targets, and reason fields.
reason. Increment attempt counts for stuck issues in sprint_state.md. If attempts ≥ 3, escalate. Otherwise continue to next iteration.IMPORTANT: Do NOT manually compute queues or override the script's action choice. The script enforces strict priority ordering (SHIP > REVIEW > PIPELINE) to prevent phase skipping.
For reference, the script computes these queues internally:
ship_ready= issues where Phase =reviewedreview_ready= issues where Phase =implementedpipeline_ready= issues inbacklogwhere Manual ≠ true AND all Depends-On are resolvedin_flight= issues where Phase ∈ {implementing,reviewing,shipping}
d) Invoke team-lead agent via Task tool with this exact prompt structure:
You are the team-lead agent. Execute the {action} phase for these issues.
## Phase: {PIPELINE | SHIP | REVIEW}
## Target Issues
{For each target: full issue spec from issues.md — ID, title, AC, all fields}
## Current Sprint State
{Full content of docs/sprint_state.md}
## Max Parallel: {N}
## Project Context
{Content of architecture.md, data_model.md, review lessons (native memory), prd_digest.md}
Execute this phase, update docs/sprint_state.md with results, then STOP.
Do NOT loop.
Phase meanings:
implemented status (recovery only).reviewed status (recovery only).e) After team-lead returns:
docs/sprint_state.md to confirm phase transitions happened=== Iteration {N} complete: {action} phase for {count} issues ===f) Validate phase transition (deterministic — do NOT skip):
Run the validation script:
python3 scripts/sprint_queue.py validate --sprint-state docs/sprint_state.md --action {ACTION} --targets {COMMA_SEPARATED_TARGETS}
Parse the JSON output:
valid = true: all targets transitioned successfully (or stopped at a phase with logged error). Continue loop.valid = false: log the errors array in sprint_state.md. The stuck list shows which issues failed to transition — they will be retried in the next iteration via REVIEW or SHIP action.Continue loop from step 4a.
Pipeline completion gate (before exiting):
docs/sprint_state.mdimplemented or reviewed (not shipped)Report sprint results to user:
Team-lead uses this table to determine which agent(s) to dispatch per issue:
| Issue characteristic | Agent(s) | Skill reference |
|---|---|---|
| General backend/logic | developer | skills/implement/SKILL.md |
| UI/frontend (web) | uiux-developer | skills/implement/SKILL.md + UI context |
| UI/frontend (mobile) | mobile-uiux-developer | skills/implement/SKILL.md + mobile context |
| Infrastructure/CI/CD | devops | skills/devops/SKILL.md |
| Bug fix | (run the diagnose skill) | skills/diagnose/SKILL.md |
| Refactoring | (run the refactor skill) | skills/refactor/SKILL.md |
| DB migration | (run the migrate skill) | skills/migrate/SKILL.md |
| Architecture change needed | architect → data-modeler → developer | sequential |
| Any completed implementation | reviewer | skills/review/SKILL.md |
| UI implementation completed | reviewer + ui-reviewer | skills/review/SKILL.md |
| Reviewed and approved | (ship steps) | skills/ship/SKILL.md |
How to determine: Read the issue's title, Track field, and Implementation Notes. Keywords like "UI", "screen", "component" → UI agent. "Dockerfile", "CI", "deploy" → devops. "migrate", "schema change" → migrator.
Each issue progresses through these phases in docs/sprint_state.md:
backlog → implementing → implemented → reviewing → reviewed → shipping → shipped
Phase meanings:
implementing: implement in progressimplemented: implement done, checkpoint passed — MUST review nextreviewing: review in progressreviewed: review approved — MUST ship nextshipping: ship in progressshipped: PR merged, smoke test passed — doneThe team-lead reads these phases to enforce pipeline ordering:
implemented → team-lead MUST review before implementing new issuesreviewed → team-lead MUST ship before reviewing or implementing/sprint to resume.waiting with escalation reason and skip it. Report at sprint end.docs/sprint_state.md to reset sprint state.