spec-code
Skill3 starsChanged 7 days agoMITView on GitHub
Implement a single task from spec documents autonomously.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-delegateSkill
- cmux-delegateSkill
- cmux-forkSkill
- cmux-second-opinionSkill
- handoverSkill
- harness-initSkill
- harness-loopSkill
- harness-planSkill
- ja-humanizerSkill
- magiSkill
- mcp-convertSkill
- skill-suggestSkill
- spec-evaluateSkill
- spec-generatorSkill
- spec-implementSkill
- spec-inspectSkill
- spec-orchestrateSkill
- spec-reviewSkill
- spec-rules-initSkill
- spec-testSkill
- spec-to-issueSkill
- spec-workflow-initSkill
- spec-writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Read Agent definition file if referenced (e.g., .claude/agents/workflow-implementer.md)
- Very specific: line 46
Run gh issue view {N} --json title,body to understand the feature overview
- Very specific: line 60
When called with --feedback, load only:
- Distinctive: line 66
Do NOT re-read the full spec set unless the feedback indicates a misunderstanding of requirements.
- Very specific: line 72
If task is already checked [x], warn and stop
- Distinctive: line 76
Read the design section referenced by the task (e.g., "design.md §4.2"):
- Distinctive: line 83
Follow the design to implement the task
- Distinctive: line 85
Create or modify only the files specified in the task
- Distinctive: line 102
Do NOT modify code unrelated to the findings
- Very specific: line 106
Check each completion criterion from tasks.md:
- Distinctive: line 107
If criterion is met, note it
- Distinctive: line 108
If not met, continue implementing until satisfied
- Very specific: line 109
Do NOT update the checkbox in tasks.md (this is spec-implement's responsibility)
- Distinctive: line 113
Commit the implementation following project conventions:
- Very specific: line 114
Read commit message format from coding-rules.md or CLAUDE.md
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
spec-code — Implement a Single Task from Specs
Autonomously implement one task from the spec documents, understanding the full project context before writing code.
Language Rules
- Auto-detect input language → output in the same language
- Japanese input → Japanese output, use
references/code-guide.ja.md - English input → English output, use
references/code-guide.md - Explicit override takes priority
Options
| Option | Description |
--issue {N} | GitHub Issue number for context |
--spec {path} | Path to .specs/ directory |
--task {task-id} | Task ID to implement (e.g., T-007) |
--feedback {file} | Feedback mode: read review or test result file and address findings |
Execution Flow
Step 0: Context Loading (Phase A / Phase B)
Phase A — First invocation (full context):
- Locate and read workflow (search order:
docs/development/issue-to-pr-workflow.md→docs/→ find):- Identify your role as implementer
- Read Agent definition file if referenced (e.g.,
.claude/agents/workflow-implementer.md)
- Read Issue (if
--issueprovided):- Run
gh issue view {N} --json title,bodyto understand the feature overview
- Run
- Read all spec files in
--specdirectory:requirement.md— what to build and whydesign.md— how to build it (architecture, data models, interfaces)tasks.md— all tasks and their relationships- Understand the full picture before focusing on your task
- Read project rules (if they exist):
coding-rules.md(search:docs/development/→docs/→ find)CLAUDE.md/AGENTS.mdat project root
Phase B — Feedback re-invocation (minimal context):
When called with --feedback, load only:
- The feedback file (review or test results)
- The target task description from
tasks.md - The relevant
design.mdsection - The changed files from the previous implementation
Do NOT re-read the full spec set unless the feedback indicates a misunderstanding of requirements.
Step 1: Locate Target Task
Parse tasks.md to find the task matching --task {task-id}:
- Extract: task name, requirements ID, design reference, target files, completion criteria
- If task is already checked
[x], warn and stop
Step 2: Reference Design
Read the design section referenced by the task (e.g., "design.md §4.2"):
- Extract: architecture decisions, interfaces, data models
- Identify target files to create or modify
Step 3: Implement
Normal mode (no --feedback):
- Follow the design to implement the task
- Apply coding rules and project conventions
- Create or modify only the files specified in the task
Feedback mode (--feedback {file}):
The feedback file is auto-detected by its type: header line:
- type: review → Read
## Findingssection. Fix only the findings taggedfix_before: implementation, at the specified file:line (Critical first, then Improvement). Findings taggedtrial/required_check/follow_upare deferred — the caller carries them; do not fix them here. If no finding carries afix_beforetag (a legacy review file), fix Critical findings first, then Improvements. - type: test → Read
## Test Casesfor failures and## Completion Criteria Coveragefor uncovered criteria. Fix the failing tests by modifying implementation code. - type: evaluate → Same
## Findingsprocessing astype: review(identical### Critical/### Improvementstructure). Fix Critical findings first, then Improvements. Ignore the## Blockedsection: blocked cases are setup gaps, not failures, and are not fix targets.
For both types:
- Focus on items marked as FAIL or
- [ ](unchecked) - Do NOT modify code unrelated to the findings
Step 4: Verify Completion Criteria
Check each completion criterion from tasks.md:
- If criterion is met, note it
- If not met, continue implementing until satisfied
- Do NOT update the checkbox in
tasks.md(this is spec-implement's responsibility)
Step 5: Commit
Commit the implementation following project conventions:
- Read commit message format from
coding-rules.mdorCLAUDE.md - Default format:
feat(scope): {task-id} — {brief description} - Stage only implementation files (not
tasks.md)
Error Handling
| Situation | Response |
--spec path not found | Error: spec directory not found |
--task ID not found in tasks.md | Error: task ID not found |
| Task already checked [x] | Warning: task already complete, skip |
| Design section not found | Warning: implement based on task description and requirements only |
--feedback file not found | Error: feedback file not found |
| Coding rules not found | Warning: proceed with project defaults |
Usage Examples
# Implement a specific task
/spec-code --issue 36 --task T-007 --spec .specs/did-deactivation/
# Address review feedback
/spec-code --task T-007 --spec .specs/did-deactivation/ --feedback .specs/did-deactivation/review-T-007.md
# Address test failure feedback
/spec-code --task T-007 --spec .specs/did-deactivation/ --feedback .specs/did-deactivation/test-T-007.md
# Standalone (no issue)
/spec-code --task T-003 --spec .specs/auth-feature/Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

