topic-splitting
Skill7 starsChanged 2 days agoMITView on GitHub
Splitting one topic across several agents and PRs: one vertical slice by default, or the contract first when the work spans two sides of an interface — an API and its client (web, CLI, mobile), two services, a CRD and its controller, a library and its consumers — then one agent per side and an integration agent, in worktrees of their own. TRIGGER when: the session carrying a topic is about to split it across several agents or PRs; a topic touches both sides of such an interface; user asks how to split work across agents. SKIP when: deciding which session carries a topic (`CLAUDE.md`, and `herdr-delegation` inside herdr); the work stays on one side; running as a sub-agent, which cannot launch agents of its own. Load `herdr-delegation` alongside when the pieces run as visible sessions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/skillsword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- config-conventionsSkill
- contributing-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-pr-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- herdr-tui-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- release-supply-chain-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Every launch follows CLAUDE.md's rules on delegation and sub-agent models.
- Distinctive: line 74
The user reviews the contract: before anything starts on top of it.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Splitting a topic
CLAUDE.md decides which session carries a topic — the one it started in,
or a session of its own (herdr-delegation) — and splits it across agents
only when the pieces ship as separate PRs. This skill says how the carrying
session does that, whichever it is, for the case that splits most often:
work that spans two sides of an interface, a provider that declares it
and a consumer that calls it.
| Interface | Provider | Consumer | Contract |
| HTTP API | backend | web, CLI or mobile client | DTOs and routes answering 501, OpenAPI generated from them |
| RPC or queue | service A | service B | the .proto or message schema |
| Kubernetes CRD | CRD and its schema | controller, or the charts that create it | the CRD's types and generated manifest |
| Library | the library | its consumers | the public types and signatures, bodies stubbed |
This skill is orchestration only: what each side's code looks like is the job of the convention skills that load from the files an agent touches. There is no provider or consumer agent definition either: a "backend agent" is a general agent briefed on the backend directory, and its conventions come with the files.
Every launch follows CLAUDE.md's rules on delegation and sub-agent models;
the model hints below are where this flow usually lands, not a substitute for
weighing them. The pieces of one topic are not topics of their own: they are
sub-agent calls (Agent in Claude Code, task in OpenCode), inside herdr
too, unless the user asks for visible sessions.
One vertical slice by default
Work that touches both sides is built in one go, provider and consumer,
end to end, in one worktree, on one branch, as one PR — by the carrying
session, or by one agent when delegating pays under CLAUDE.md. It builds
the provider's side, then the consumer against the real thing, and is the
one place where the whole feature is seen working.
Split only when the work is big on both sides at once — several endpoints and several screens, several messages and several handlers — or when the two sides live in separate repositories. A small change (one endpoint, one screen) never splits: it doubles the tokens and adds a coordination step for no gain, and no agent ever sees the feature end to end.
When it splits: the contract comes first
Nothing runs in parallel until the contract exists. Two agents guessing at the same interface meet at integration with two different ideas of it.
- The contract is its own change, on its own branch and worktree, cut
from the default branch: the interface declared in code, with nothing
behind it. For an HTTP API, the request and response DTOs and the routes
declared with handlers that answer
501 Not Implemented, perapi-conventionsandrest-conventions; the framework generates the OpenAPI document from that code, asapi-conventionsrequires, and nobody hand-writes a spec. The carrying session writes it, or an Opus agent: this is the judgement-heavy step, and every later agent builds on its mistakes. - The user reviews the contract before anything starts on top of it. Changing a field name now costs one edit; after the split it costs two agents and a rebase.
Provider and consumer then run in parallel, two agents, two worktrees, two branches, both cut from the contract branch:
- the provider agent implements what the contract declares;
- the consumer agent generates its types and fakes from the contract —
for an HTTP API,
openapi-typescriptand MSW handlers from the OpenAPI document, for instance — and builds against them.
Contract, provider and consumer are three changes, so three worktrees do not break "one worktree, one branch, one change", and "one agent per worktree" still holds: no checkout ever has two agents in it.
- The PRs stack as drafts, per
pr-conventions: the contract at the bottom, the provider on top of it, the consumer on top of the provider. Once the provider is done, the consumer rebases onto it and drops the fakes the real thing replaces. With separate repositories the consumer PR cannot stack on another repo's branch: it is based on its own default branch, links the provider PR in its description, and stays a draft until the provider ships. - Merge the stack bottom-up with no release in between: the contract on its own ships an interface with nothing behind it.
flowchart LR
main[default branch] --> contract
contract --> provider
contract -.->|fakes from the contract| consumer
provider -->|rebase once done| consumer
consumer --> integration[integration checks]When it splits, the carrying session integrates
Beyond the contract, the carrying session writes no code for the topic. It briefs each agent, relays the user's follow-ups, and checks that the pieces fit:
- Every brief names the contract branch and says the contract is fixed. An agent that needs it changed reports back instead of editing it.
- A contract change goes through the contract branch, then both sides rebase onto it: the carrying session makes the edit, or briefs the agent that owns the contract, and tells the other two.
- A branch that moves is announced, never polled for: the carrying
session relays it to the agents built on it (
herdr-delegationwhen they run as visible sessions). - Check the fit, not the code: the consumer calls only what the contract
declares, the way it declares it, and the provider still matches the
contract — for an HTTP API, its generated document still matches the
contract's. Review is the client's review command on each PR:
/code-reviewin Claude Code,/reviewin OpenCode.
Implementation models are a judgement call per side: Sonnet fits a side that is mostly applying the contract and known conventions, Opus a side with real design left in it. When in doubt, Opus.
The integration agent
One extra role is worth having when the work split: an agent that runs
both sides together and walks the real flows — user journeys with Playwright
for a web client, a CLI against a running server, a controller against a
kind cluster. It covers the blind spot of a horizontal split: each side
green against the contract, and the feature still broken end to end.
- It starts once both sides have reported, in the consumer worktree rebased onto the provider branch, so the checkout holds the whole feature. The consumer agent is done by then: still one agent per checkout.
- Tests it writes land on the consumer branch, since they test what that PR adds.
- It reports failures; it does not fix them across the stack. The carrying
session routes each one to the agent that owns that side:
SendMessagein Claude Code, ataskcall resuming itstask_idin OpenCode. - Sonnet to run the flows and report; Opus when the job becomes debugging a failure with no obvious cause.
A vertical slice runs those flows itself: it has the whole feature in one checkout.
Roles not to create
- Architect or product manager: that is the carrying session and the user.
- Documentation writer: docs ship with the change they describe, under
CLAUDE.md's documentation rules, so each agent updates its own. - DevOps: a chart, a Dockerfile or a CI change is a separate change with its own skills, not a role in this topic.
- Database administrator: migrations belong to the provider agent, which owns the schema its code reads.
- Reviewer: the client's review command on each PR covers it.
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.

