AgentSkillsCN

orchestrating-sprints

以工作流为基础进行开发冲刺的编译与新鲜上下文执行。支持分层阶段(准备 → 开发 → QA → 部署),并可按需扩展每一步骤。当启动冲刺、管理工作流,或追踪冲刺进展时,应使用此技能。可通过“启动冲刺”、“创建冲刺”、“运行冲刺”、“冲刺状态”、“添加步骤”、“编译冲刺”等短语进行触发。

SKILL.md
--- frontmatter
name: orchestrating-sprints
description: Manages development sprints with workflow-based compilation and fresh-context execution. Supports hierarchical phases (prepare → development → QA → deploy) with for-each step expansion. This skill should be used when starting sprints, managing workflows, or tracking sprint progress. Triggers on "start sprint", "create sprint", "run sprint", "sprint status", "add step", "compile sprint".

Sprint Orchestration

Manages development sprints through workflow-based compilation with hierarchical phase execution and fresh-context task processing.

Core Concepts

ConceptDefinition
WorkflowReusable phase template in .claude/workflows/
SPRINT.yamlSprint input: workflow reference + collections
PROGRESS.yamlCompiled execution tree (generated)
Execution LoopFresh context per task via claude -p

Sprint Structure

text
.claude/
  workflows/          # Reusable workflow templates
    sprint-default.yaml
    feature-standard.yaml
  sprints/
    YYYY-MM-DD_name/
      SPRINT.yaml     # Input (workflow reference + collections)
      PROGRESS.yaml   # Compiled (generated by compiler)
      context/
      artifacts/

Workflow Architecture

text
┌─────────────────┐     ┌──────────────┐     ┌─────────────────┐
│  SPRINT.yaml    │     │   Compiler   │     │  PROGRESS.yaml  │
│                 │────▶│              │────▶│                 │
│  - workflow-ref │     │  - Resolves  │     │  - Phases       │
│  - collections  │     │    workflow  │     │    └─ Tasks[]   │
│                 │     │  - Expands   │     │  - Status tree  │
│                 │     │    for-each  │     │                 │
└─────────────────┘     └──────────────┘     └─────────────────┘

Commands

CommandAction
init-sprint <name>Initialize sprint directory
add-step <prompt>Add step to SPRINT.yaml
import-stepsBulk import steps
run-sprintCompile and execute sprint
sprint-statusShow hierarchical progress
pause-sprintPause after current phase
resume-sprintResume paused sprint
stop-sprintForce stop
helpShow plugin help

Compilation Process

Compilation occurs automatically on /run-sprint:

  1. Read SPRINT.yaml (workflow reference + collections)
  2. Resolve workflow template from .claude/workflows/
  3. Expand for-each phases into task hierarchy
  4. Generate PROGRESS.yaml with full execution tree
yaml
# SPRINT.yaml (input)
workflow: sprint-default
collections:
  step:
    - prompt: implement auth module
    - prompt: add unit tests for auth
    - prompt: update API documentation

# PROGRESS.yaml (compiled output)
status: pending
phases:
  - name: prepare
    status: pending
    tasks: [...]
  - name: development
    status: pending
    tasks:
      - id: task-001
        prompt: implement auth module
        status: pending
      - id: task-002
        prompt: add unit tests for auth
        status: pending
  - name: qa
    status: pending
    tasks: [...]

References

  • references/workflow-definitions.md - Workflow template syntax and structure
  • references/progress-schema.md - PROGRESS.yaml schema specification
  • references/compiler-usage.md - Compiler invocation and options
  • references/sprint-setup.md - Directory structure and initialization

Assets

  • assets/sprint-template.yaml - SPRINT.yaml template
  • assets/progress-template.yaml - PROGRESS.yaml template
  • assets/workflow-template.yaml - Workflow definition template

Troubleshooting

IssueCauseResolution
Compilation failsInvalid workflowCheck references/workflow-definitions.md
Workflow not foundMissing .claude/workflows/Create directory with workflows
Step not expandingMissing for-eachVerify phase has for-each: step
Loop exits earlyPROGRESS.yaml statusCheck status field
Sprint paused unexpectedlyBreakpoint reachedPhase has break: true, use /resume-sprint
Sprint blockedGate check failedMax retries exceeded, fix issues manually
Gate keeps failingScript returns non-zeroCheck gate script, review gate-tracking.last-output