
Code subagents
Dispatches implementation subagents in sequence or parallel with batch review
Code subagents is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 53
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Code subagents
This skill sets out how an agent should hand off well-specified implementation work to fresh subagents. It covers when a task qualifies, namely a settled design with explicit requirements, owned files and a validation command, and how to decide between running items one after another or concurrently based on whether they touch the same files.
For parallel batches on a shared working tree, the skill asks the coordinator to assign each task an exclusive file list, stop implementers from staging or committing, and capture the git status and a path-scoped patch before and after each task. Work is rejected if it strays outside its assigned paths, and overlapping file ownership forces sequential runs.
Before each dispatch, the skill points to a convention-source walk that maps the files a task touches to the rules and skills an implementer must read, and it requires implementers to report which files they read and which rules they checked. One combined reviewer then checks requirements and code quality for the whole batch, and failed tasks go to a fresh fix subagent, with escalation to a human after two failures.
When your agent uses it
Implementation subagent dispatch patterns. Use when a task's design is settled and the file just needs to be made, or when independent implementation work can run in parallel. Covers eligibility, dispatch, shared-tree patch snapshots, one combined review per completed batch, and serial integration.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 4 files (15 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the atelier plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelierOr copy only this skill to ~/.claude/skills/code-subagents:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.claude/skills/code-subagents &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/code-subagents inside it instead.
Copy the skill folder to ~/.agents/skills/code-subagents to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.agents/skills/code-subagents &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/code-subagents inside it instead.
Copy the skill folder to ~/.cursor/skills/code-subagents to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.cursor/skills/code-subagents &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/code-subagents inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/martinffx/atelier.git --path skills/code-subagentsOr copy the folder to ~/.gemini/skills/code-subagents yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/code-subagents:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-subagents &&
cp -R "$tmp/skills/code-subagents" ~/.copilot/skills/code-subagents &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/code-subagents inside it instead.
Get the folder:
git clone --depth 1 https://github.com/martinffx/atelier.gitThen copy atelier/skills/code-subagents into your agent's skills folder as code-subagents. Agents that support SKILL.md read one folder per skill.
What it does
- Eligibility checks
- Criteria for deciding whether a task suits a fresh subagent based on design status and clear requirements.
- Sequential and parallel dispatch
- Guidance for running dependent tasks one at a time and independent tasks concurrently.
- Shared-tree patch capture
- Steps for assigning file ownership and capturing path-scoped patches so parallel edits stay isolated.
- Convention source walk
- A procedure that maps a task's files to the rules and skills the implementer must read before writing.
- Combined batch review
- One reviewer checks requirements compliance and code quality across all tasks in a completed batch.
- Failure escalation
- A fix-and-retry pattern for failed subagent tasks, escalating to a human after repeated failure.
Good for
- Generate new boilerplate files from a settled design spec
- Implement several independent modules in parallel on a shared repository
- Dispatch a sequence of dependent entity, repository and service files one after another
- Review a completed batch of subagent changes against requirements and project rules
- Resend a failed implementation task to a fresh subagent with the gap named
Code subagents FAQ
When should Code subagents be used?
When a task's design is settled and the file just needs to be made, or when independent implementation work can run in parallel.
How are parallel tasks kept from conflicting?
Each task gets an exclusive file list before dispatch, implementers do not stage or commit, and each task's path-scoped patch is checked for changes outside its assigned paths. Tasks with overlapping files run sequentially.
How many reviews happen per batch?
One combined review covers the whole completed batch rather than a separate review for each task.
What happens when a subagent fails a task?
The main agent dispatches a fix subagent with specific instructions. If it fails twice, the skill says to stop and escalate to the human.
How do I install Code subagents in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/code-subagents to use it in all your projects, or to .claude/skills/code-subagents in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.
Does Code subagents run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Code subagents?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Code subagents?
The closest alternatives to Code subagents are Dispatching parallel agents, Multi agent handoff, Cmux dispatch, Control tower and Agent Collaboration & Parallelism.
Where this comes from
- Description: from the skill's own SKILL.md.
More from martinffx/atelier

Routes an agent to the right planning mode and workflow skill for each task
- Open source
- 53 GitHub stars
- Developer tools

Guides a repo's setup for Atelier's workflow, previewing edits before writing
- Open source
- 53 GitHub stars
- Developer tools

Writes and checks conventional commit messages and guides safe staging before committing
- Open source
- 53 GitHub stars
- Developer tools

Condenses the current conversation into a handoff document for a fresh agent
- Open source
- 53 GitHub stars
- Developer tools

Lets your agent open, read, comment on and merge GitHub PRs or GitLab MRs
- Open source
- 53 GitHub stars
- Developer tools

Reviews a branch or PR for human corrections and proposes repo fixes to prevent them
- Open source
- 53 GitHub stars
- Developer tools





