--- name:dev-workflow description:Completedevelopmentworkflowforhandlingissues. --- You help developers with three workflow tasks:
1. Issue to Code:Generatecodefromissuedescription. 2. Code to Tests:Generatetestsforthegeneratedcode. 3. Code to Review:Performcodereviewonthegeneratedcode.
1. Issue to Code:Usethe`code-developer`agenttogeneratecodefromtheissuedescription. 2. Code to Tests:Usethe`code-tester`agenttogeneratetestsforthegeneratedcode. 3. Code to Review:Usethe`code-reviewer`agenttoperformcodereviewonthegeneratedcode.
[System] You are Claude Code. [User] Complete issue.md [Tool Call] Read(.claude/skills/effective-dev-workflow/SKILL.md) [Tool Output] <the skill instructions> [Tool Call] Read(issue.md) [Tool Output] <issue description> [Tool Call] Task(code-developer, "Generate code and save it as code.py") [Tool Output] <final output fromcode-developer> [Tool Call] Task(code-tester, "Generate tests for the code in code.py and save them as tests.py") [Tool Output] <final output fromcode-tester> [Tool Call] Task(code-reviewer, "Perform code review on the code in code.py and save the report as review.md") [Tool Output] <final output fromcode-reviewer> [Assistant] <final conclusion>
开发Subagent的Context:
1 2 3 4 5 6
[System] You are Claude Code.\nYou are acode developer... [User] Generate code and save it as code.py [Assistant] <generated code> [Tool Call] Write(code.py) [Tool Output] <success> [Assistant] <final output>
测试Subagent的Context:
1 2 3 4 5 6 7 8 9 10
[System] You are Claude Code.\nYou are acode tester... [User] Generate tests for the codeincode.py and save them as tests.py [Tool Call]Read(code.py) [Tool Output] <codecontent> [Assistant] <generated tests> [Tool Call]Write(tests.py) [Tool Output] <success> [Tool Call]Bash(python tests.py) [Tool Output] <test results> [Assistant] <final output>
审查Subagent的Context:
1 2 3 4 5 6 7 8
[System] You are Claude Code.\nYou are acode reviewer... [User] Perform code review on the codeincode.py and save the report as review.md [Tool Call]Read(code.py) [Tool Output] <codecontent> [Assistant] <generated review report> [Tool Call]Write(review.md) [Tool Output] <success> [Assistant] <final output>
Thereisa {project_root}/NOTES.mdfile that records the progress of the task: -Pleasereviewthisfilebeforestartingthetask. -Aftercompletingthetask,recordthekeyprogressinthisfile.
Thereisa {project_root}/NOTES.mdfile that records the progress of the task: -Pleasereviewthisfilebeforestartingthetask. -Aftercompletingthetask,recordthekeyprogressinthisfile.
Thereisa {project_root}/NOTES.mdfile that records the progress of the task: -Pleasereviewthisfilebeforestartingthetask. -Aftercompletingthetask,recordthekeyprogressinthisfile.
# Task Progress ## Completed Tasks ### 2026-03-08: Generated code and created code.py
测试Skill的Context:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[System] You are Claude Code. [User] Generate tests for code.py [Tool Call]Read(.claude/skills/code-tester/SKILL.md) [Tool Output] <the skill instructions> [Tool Call]Read(code.py) [Tool Output] <codecontent> [Tool Call]Read(NOTES.md) [Tool Output] <notes content> [Assistant] <generated tests> [Tool Call]Write(tests.py) [Tool Output] <success> [Tool Call]Bash(python tests.py) [Tool Output] <test results> [Tool Call]Edit(NOTES.md, "\n### 2026-03-08: Generated tests and created tests.py") [Tool Output] <success> [Assistant] <final output>
此时,NOTES.md的内容如下:
1 2 3 4
# Task Progress ## Completed Tasks ### 2026-03-08: Generated code and created code.py ### 2026-03-08: Generated tests and created tests.py
审查Skill的Context:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[System] You are Claude Code. [User] Perform code review on code.py [Tool Call]Read(.claude/skills/code-reviewer/SKILL.md) [Tool Output] <the skill instructions> [Tool Call]Read(code.py) [Tool Output] <codecontent> [Tool Call]Read(NOTES.md) [Tool Output] <notes content> [Assistant] <generated review report> [Tool Call]Write(review.md) [Tool Output] <success> [Tool Call]Edit(NOTES.md, "\n### 2026-03-08: Performed code review and created review.md") [Tool Output] <success> [Assistant] <final output>
此时,NOTES.md的内容如下:
1 2 3 4 5
# Task Progress ## Completed Tasks ### 2026-03-08: Generated code and created code.py ### 2026-03-08: Generated tests and created tests.py ### 2026-03-08: Performed code review and created review.md