code-subagents skill
Manages implementation subagent dispatch patterns for parallel or sequential task execution and batch code reviews.
- GitHub stars
- 51
- Files
- 3
- Last commit
- Nov 7, 2026
- License
- MIT
- Allowed tools
- —
What does the code-subagents skill do?
code-subagents manages implementation subagent dispatch patterns for parallel or sequential task execution and batch code reviews.
Summary generated from the skill's SKILL.md.
About the code-subagents skill
Managing implementation subagents for parallel or sequential task execution is what this skill enables for developers working on settled designs. It is intended for use when a design document or plan already specifies types, signatures, or schemas, and the remaining work involves creating new files, scaffolding, or following existing patterns. An agent should load this skill when it needs to dispatch independent work items to specialized agents like Keymaker or a general agent to avoid context pollution.
The system supports two primary modes: sequential execution for dependent tasks and parallel execution for independent tasks that do not share files or state. For parallel work, the skill relies on capturing path-scoped patches, managing exclusive file lists, and monitoring git status to ensure isolation. Instead of reviewing every individual task, the process produces one combined review per completed batch using a specific batch-reviewer-prompt.md to verify requirements compliance and code quality across all changes.
What an agent can do with it
- 1Execute independent testing tasks in parallelDispatch multiple subagents simultaneously to run different test suites if they do not edit the same files.
- 2Implement dependent code components sequentiallyRun implementation tasks one after another when a later task relies on the output of a previous one.
- 3Perform batch code quality reviewsConduct a single comprehensive review of all completed work items in a batch to ensure they meet requirements.
- 4Automate boilerplate and scaffolding creationUse subagents to generate new files or boilerplate when the design and patterns are already established.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the code-subagents skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the code-subagents skill in Plugin
/plugin marketplace add martinffx/atelier /plugin install atelier@atelier
Install the code-subagents skill in Claude Code
~/.claude/skills/code-subagents/SKILL.md
$ npx degit martinffx/atelier/skills/code-subagents ~/.claude/skills/code-subagentsInstall the code-subagents skill in Claude Code (project)
.claude/skills/code-subagents/SKILL.md
$ npx degit martinffx/atelier/skills/code-subagents .claude/skills/code-subagentsInstall the code-subagents skill in Codex
~/.agents/skills/code-subagents/SKILL.md
$ npx degit martinffx/atelier/skills/code-subagents ~/.agents/skills/code-subagentsInstall the code-subagents skill in Gemini CLI
~/.gemini/skills/code-subagents/SKILL.md
$ npx degit martinffx/atelier/skills/code-subagents ~/.gemini/skills/code-subagentsInstall the code-subagents skill in Claude.ai
npx degit martinffx/atelier/skills/code-subagents code-subagents && zip -r code-subagents.zip code-subagents # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-subagents.zip
SKILL.md
View on GitHubImplementation Subagents
Fresh subagent per task. One combined review per completed batch. Parallel when independent, sequential when dependent.
When to Use Subagents
Use when (all must hold):
- The design is settled: the plan or
design.mdalready specifies what the file contains (types, signatures, schema, contract, or an existing pattern to copy) - The work item has explicit requirements, owned files, and a validation command
- It does not share files or state with other in-flight work
Prime candidates are new files, scaffolding, boilerplate, and pattern-following edits. Parallelism is a separate question: dispatch two or more eligible items concurrently only when the independence check below passes.
Don't use when:
- Tasks are tightly coupled (editing the same files)
- You need to understand full system state across tasks
- Failures are related (fixing one might fix others)
- Exploratory work where the problem isn't well-defined yet
Dispatch Modes
Sequential (dependent tasks)
Tasks with dependencies execute one at a time. Each gets a fresh subagent — no context pollution from previous tasks.
Task 1 (Entity) → review → complete
Task 2 (Repository, depends on T1) → review → complete
Task 3 (Service, depends on T2) → review → complete
Parallel (independent tasks)
Independent tasks dispatch simultaneously. One agent per problem domain.
Task A (auth tests) ──→ review → complete
Task B (billing tests) ──→ review → complete ← concurrent
Task C (notification tests) ──→ review → complete
Independence check: Would fixing Task A affect Task B? Would they edit the same files? If no to both, dispatch in parallel.
For shared-tree parallel work:
- Assign each task an exclusive file list before dispatch
- Do not let implementers stage or commit changes
- Capture full
git status, including untracked files, before and after each task - Capture the task's path-scoped patch and reject changes outside its assigned paths
- Run tasks sequentially if their file ownership overlaps or cannot be isolated
Agent Selection
Select the agent explicitly for every dispatch (see Delegation in atelier-orchestrator). Give
implementers the design excerpt so they make no design decisions. Implementers of settled
designs, mechanical or not, are Keymaker; design-sensitive implementation may use the harness's
general agent, the one permitted exception to selecting from Atelier's agents. The batch reviewer
is a read-only critical review.
Prompt Templates
Use these templates when dispatching subagents. Each template is battle-tested — don't improvise, use them as-is and fill in the variables.
- references/implementor-prompt.md — Dispatch an implementer. Includes self-review checklist.
- references/batch-reviewer-prompt.md — Combined plan and code-quality review for one completed batch.
Prompt quality rules
- Focused — one task, one problem domain
- Self-contained — all context needed is in the prompt. Provide the complete work-item requirements; do not make the subagent recover context
- Specific about files — exact paths, not "the relevant files"
- Specific about output — what should the subagent return?
- Constrained — what should they NOT touch?
Common mistakes
| Mistake | Fix |
|---|---|
| "Fix all the tests" | "Fix the 3 failures in user.test.ts" |
| No context about codebase | Paste the relevant patterns and conventions |
| No constraints | "Do NOT change production code" or scope to specific files |
| Vague output expectations | "Return: root cause, changes made, test results" |
Batch Review
Run one combined review after every completed batch, not separate reviews for each task.
Give one fresh reviewer:
- The complete requirements for work items in the batch
- The relevant constraints
- The path-scoped patch captured for each task
- The full changed-file inventory, including untracked files
- The implementers' reports and validation results
The reviewer checks both requirements compliance and code quality:
- Every requirement and acceptance criterion is implemented
- The batch follows the supplied constraints
- No unrequested work or out-of-scope files are included
- Tests are meaningful and cover the right boundaries
- The code follows existing patterns without unnecessary complexity
Use references/batch-reviewer-prompt.md as written.
If the reviewer finds Critical or Important issues, send each issue back to the relevant implementer, refresh its path-scoped patch, and review the batch again. Minor issues may be noted and moved past.
Handling Subagent Questions
Subagents may ask questions before or during implementation. This is good — it means they're thinking rather than guessing.
- Answer clearly and completely
- Provide additional context if needed
- Don't rush them into implementation
- If the question reveals a gap in the plan, that's valuable — note it
Integrating Results
After subagents complete (especially parallel dispatch):
- Read each summary — understand what changed
- Capture task patches — use each task's exclusive file list
- Review the batch — one combined requirements and quality review
- Run full test suite — verify all changes work together
- Commit — the coordinator commits the reviewed batch serially
- Update progress tracking — when the caller uses it
If there are conflicts between parallel results, resolve them manually. Don't dispatch another subagent to merge — that requires too much context.
When Subagents Fail
If a subagent fails a task:
- Don't fix it manually — that pollutes your context
- Dispatch a fix subagent with specific instructions about what went wrong
- If it fails twice, stop and escalate to the human. The requirements or constraints may need revision.
Files in this skill
3code-subagents skill questions
How do I install the code-subagents skill in Claude Code?
Run npx degit martinffx/atelier/skills/code-subagents ~/.claude/skills/code-subagents. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the code-subagents skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
When should I use subagents for implementation tasks?
Use subagents when the design is already settled, the work item has explicit requirements and a validation command, and it does not share files or state with other active work.
How can I determine if tasks can be dispatched in parallel?
Perform an independence check: ask if fixing one task would affect the other and if they would edit the same files. If the answer to both is no, they can be dispatched in parallel.