/recursio:splitting-implementation Task to build (a plan file, an issue or a description)from recursio
Building a feature or project with several modules -- how to divide it into parts that fit together, and when to build the parts in parallel subagents.
Ships in recursio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Whether to divide implementation work among subagents in one session, and how to divide it so the parts fit together. The main thread is the root of every split. A level is any agent that splits its work: the main thread, or a part that splits again.
When the user invokes this skill with a task, build that task, splitting it or building it directly as this skill says.
A part whose brief says it is two levels below the main thread is at the depth limit: it builds its part and never splits, whatever else this skill says. A part one level below may split again (section 3). [Parts that load this skill on their own re-split past the limit and collide.]
Otherwise, split when the work has two or more parts that each:
Each part then gets a fresh context for its slice alone, and the parts run side by side. A part that depends on others, such as a command that joins them, goes in a later wave (section 6); it does not stop the independent parts from splitting.
When the work does not meet the gate, build it directly, as for a sequential chain where each step needs the last, one monolithic failing check, or a quick targeted change. Splitting costs more tokens than building directly.
A wide, same-shaped edit across many files, such as a rename or a mechanical migration, fits Claude Code's built-in /batch: suggest it to the user rather than splitting, and otherwise build it directly.
A level that cannot spawn subagents builds its parts itself, wave by wave, still settling first (section 4). Under Claude Code that is a level with no Agent tool; under Codex, which allows one level of subagents by default, it is every part below the main thread.
This skill covers dividing work among subagents in one session. Dividing work into issues or PRs is a separate decision.
If this skill was lost to compaction, load it again and resume from the status lines in split.md.
git add -A. [A commit mid-wave captures a sibling's half-written files.]A part splits again when, after reading its slice, it finds sub-parts that meet the gate in section 1. A parent that can already list a part's sub-parts makes them parts of a later wave instead of leaving them to a second split. [Each extra level adds briefs and a barrier that a flat split does without.]
A part whose slice is too big and does not split cleanly reports up rather than building it in one pass. [Building it in one pass overloads the part's context.]
The ceiling: a part one level below the main thread may split once. Its parts are two levels below and build. A part that meets the gate but has no Agent tool builds its part and reports "could not split". [A silent fallback reads as success.]
List the decisions that two or more parts would each make and that must agree, in this order:
__init__.py or index.js) and package files.Then, as judgement, settle what parts could otherwise do differently: naming, error shape, logging, docstring style. The project's own rules already reach every subagent through its agent instruction files, such as CLAUDE.md or AGENTS.md.
Take each answer from the project first, then from what the parent or the plan passed down; otherwise decide it and record it in split.md. A decision only one part makes stays with that part. Settle interfaces and decisions; never dictate implementation or hand down code snippets. [A parent that writes a part's internals spends its own context and loses the part's judgement.]
Before the wave, the level writes the shared types, interfaces and hub files itself, and writes or names, from the contract, the tests that define each part's interface. Both are read-only to parts. Inside a part, test-first is allowed, not required. [Parts pass alone and fail together when only their own tests define the interface.]
A contract sets the ceiling for the code built on it:
Record | ParseError); a custom exception hierarchy, base plus subtypes per failure domain.RunResult) over bare values.Any or object; in TypeScript, unknown) only at input boundaries, such as parsed records, CLI arguments and external data whose shape is unknown; every internal result type fully typed, since its shape is known at design time. A contracts file holds interfaces, record types (such as dataclasses), enums, type aliases and constants, and no callable stubs.Write each brief from brief-template.md. A brief carries everything its part needs without this skill:
A part one level below the main thread may split again, so its brief carries the template's split line. A part two levels below gets the template's depth-limit line instead.
Keep briefs compact: never the whole plan or a sibling's code. [A part handed everything works from the plan instead of its scope.]
Each part reports:
name and never as a fork. [With agent teams on, a named spawn becomes a teammate, not a subagent, and an in-process teammate runs its own parts only in the foreground; a fork inherits the whole conversation and gives no context relief.]git status --porcelain -uall lists with its git hash-object -w, or deleted for a path it lists as deleted, and the git hash-object -w of each contract file and contract test; at the root, in split.md, and below it, in your own context. [A list of names misses a part's edit to a file already changed; -w stores the file so the barrier can restore it.]Work through barrier.md once every part of the wave has reported. Below the main thread, the barrier checks only the level's own scope and runs only its scope's tests, since the parent's other parts are still running; the main thread's barrier checks the whole tree and runs the full suite.
The main thread keeps .claude/workspace/<effort>/split.md, following split-template.md: the reload line, the settled decisions with their sources, the parts by wave, each barrier's result, what was decided without asking and what is left for the user. A part's own split lives in its context and its report, not in split.md.
What SKILL.md sets; muted values are Claude Code's defaults
Implementing a feature, issue or project with several parts or modules.
Other plugins' skills for the same job
npx claudepluginhub jartan-llc/grimoire --plugin recursio