AgentSkillsCN

code

从规格说明检查清单中执行下一个单一任务。

SKILL.md
--- frontmatter
name: code
description: "Implement the single next task from the specs checklist"
disable-model-invocation: true
allowed-tools: Read, Write, Edit, Grep, Glob, Bash

Implement Next Task

Implement the single next task from the specs checklist.

Pre-parsed Data

!${CLAUDE_PLUGIN_ROOT}/scripts/specs-parse.sh next-task

Instructions

  1. If the data above shows NO_TASKS_REMAINING, report that all specs are complete and suggest creating a new spec with /sdd:spec.

  2. Read the spec file shown in spec_file above for full implementation context.

  3. Report what you're implementing:

    text
    🔨 Implementing Task
    
    Spec: v{N} - {Name}
    Phase: {Phase Name}
    Task: {Task description}
    
  4. Implement the task:

    • Follow existing code patterns in the codebase
    • Make the minimal changes needed to complete the task
    • Test the implementation when practical
  5. Update the checklist: Mark the task as complete in specs/README.md (- [x])

  6. Bump version if needed: If code was changed (not just docs), bump the patch version in app.py

  7. Report completion:

    text
    ✅ Task Complete
    
    {Brief summary of what was done}
    
    Next task: {Preview of the next unchecked task, or "Phase complete!" if phase is done}
    

Important

  • Implement only ONE task — stop after completing it
  • Update specs/README.md — keep the checklist in sync
  • Read the full spec file for additional context
  • Follow existing code patterns in the codebase