delegated-development
Skill1 starsChanged 4 months agoApache-2.0View on GitHub
Standard development process for agent-driven repos: main agent decomposes and orchestrates only; implementer/reviewer subagent pairs do the work in isolated worktrees with maximal safe parallelism, one validated local handoff per unit without publication authorization, or one PR per independent unit when authorized. Use for ALL dev tasks: features, refactors, bug fixes, cleanups.
- Commits and pushes
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-aeoSkill
- agent-memorySkill
- beanquerySkill
- ci-repairbaySkill
- ghSkill
- issue-blueprintSkill
- issue-workbenchSkill
- minifluxSkill
- og-imageSkill
- opSkill
- pencil-to-figma-migrationSkill
- pr-comment-sweepSkill
- pr-launchpadSkill
- repo-surveyorSkill
- review-checkpointSkill
- review-repairbaySkill
- shipyardSkill
- skill-optimizerSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Validation: run the smallest checks applicable to the unit's diff (scoped typecheck/lint, scoped tests) before shipping.
- Very specific: line 45
Version bump: if the repo publishes artifacts: follow the repo's own release policy (e.g.
- Very specific: line 47
Cleanup: only after successful publication and main-agent revalidation of the published exact head: git worktree remove <absolute_path> …
- Distinctive: line 53
After any rebase or conflict resolution, require fresh scoped validation and reviewer approval on the exact new head before publication or …
- Distinctive: line 61
Model references: use whatever model/thinking-level selection syntax the active harness provides — check the harness's model …
- Distinctive: line 63
Subagents may fail silently or leave broken trees: Always re-run scoped validation on every worktree afterward.
- Distinctive: line 64
Shared lockfiles conflict: every PR touching dependencies modifies them.
- Very specific: line 65
Commit messages with backticks: write them to a temp file and use git commit -F <file> — inline -m "..." breaks on backticks/command …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Delegated development: main orchestrates, subagent pairs do the work
The standard development process for repos developed by coding agents, for all dev tasks — features, refactors, fixes, cleanups. The main agent never implements; it decomposes work and orchestrates subagents. Subagents do the work in parallel wherever the units are independent. Harness-agnostic: bind the roles below to whatever delegation primitives your harness provides (parallel batches of subagents, implementer/reviewer roles).
task ──► main agent: decompose into bounded, independent units
│
▼
per unit: implementer ⇄ reviewer pair (parallel across units, chained within a unit)
│ agree → validate → hand off locally, or ship one PR per independent unit when authorized
│ disagree/defects → rebuttal back to main agent
▼
main agent: judge rebuttals & reviews, re-validate, delegate all remaining work back outRoles
- Main agent = orchestrator + final judge. Decomposes tasks, writes task packets, judges rebuttals and reviews, re-runs validation, inspects diffs. It does not edit code. Anything actionable left broken or unfinished goes back out as a new bounded delegation.
- Implementer = one bounded change. Reads the task packet, implements minimally, validates scoped checks/tests, reports changed files and risks.
- Reviewer = reviews a plan or diff for correctness, simplicity, safety, regressions. Pairs with implementers on substantive changes; skip reviewers for trivial changes (a few doc lines, mechanical renames).
Decomposition rules
- Break the task into the smallest units that are independently shippable as one PR each (typically one package/module or one cohesive cross-package change).
- Independent units run concurrently; dependent units form a chain (implementer → reviewer → next implementer) rather than waiting on the main agent to sequence them manually.
- Parallelism: run as many units as your delegation tool accepts per call; if unbounded, keep batches small enough (roughly ≤8–10) that each result still gets careful judgment. Overflow waits for the next batch.
- Each task packet is self-contained: exact scope paths, the findings/spec, prior deliberate non-decisions, judgment-call caveats ("if the repo's CONTEXT/design docs say X is a product requirement, rebut"), validation commands, and shipping steps.
Per-unit workflow
For every unit:
- Isolated worktree: one git worktree and branch per unit so concurrent subagents never share a working tree. Resolve the integration/base branch from explicit task input or the repository default branch, then base new unit worktrees on its remote-tracking ref:
git fetch origin <integration-branch> git worktree add -b <prefix>/<unit> /tmp/agent-dev/<unit> origin/<integration-branch> - Pair: implementer implements; for substantive changes a reviewer then checks the diff (correctness, simplicity, safety, regressions). Reviewer findings go back to the implementer or, if contested, to the main agent as a rebuttal.
- Validation: run the smallest checks applicable to the unit's diff (scoped typecheck/lint, scoped tests) before shipping. Do not run every category universally; when a category does not apply or is unavailable, record the reason.
- Version bump if the repo publishes artifacts: follow the repo's own release policy (e.g. npm workspaces:
npm version patch --workspace packages/<pkg> --no-git-tag-version, committingpackage.jsonand lockfile together). Docs-only changes usually don't warrant a release. - Ship: Conventional Commit. Publish remotely only when the user has actually authorized push/PR; hand that authorized publication to the workflow-managed PR skill (
pr-launchpadwhere repo routing allows it) so base resolution, HEAD-bound validation reuse, and duplicate-PR handling stay in one place — never construct a rawgh pr createhere. Without authorization, keep the validated local branch and worktree intact and report a local handoff. - Cleanup only after successful publication and main-agent revalidation of the published exact head:
git worktree remove <absolute_path>without--force, thengit branch -d <branch>only once the remote ref provably preserves that exact head. Retain and report anything that cannot be removed safely; never clean the main agent's own worktree.
Main-agent judgment
- Judge rebuttals and review disagreements against the code reasoning provided. Accepted ones stay unimplemented; wrong ones are overridden via a new delegation.
- Re-run scoped validation on every worktree afterward; inspect diffs against the exact head. Delegate repair of anything broken/incomplete to a fresh subagent with a bounded packet (what was applied, what fails, what's missing such as a version bump).
- After any rebase or conflict resolution, require fresh scoped validation and reviewer approval on the exact new head before publication or PR update.
Finding scopes
Task classes that feed this workflow have thin scope docs defining what counts as a finding — e.g. over-engineering cleanup (delete/stdlib/native/yagni/shrink tags), correctness bugs, security holes, performance. Keep each scope doc to its finding taxonomy, hunt list, output format, and known judgment calls; do not duplicate workflow mechanics. Scope docs typically live in the target repo (docs/agents/) or alongside this skill.
Operational notes (lessons from running this)
- Model references use whatever model/thinking-level selection syntax the active harness provides — check the harness's model registry/config; do not assume a fixed provider string format.
- State only real permissions in the task packet. Restate the permissions the user actually granted (e.g. commit/push/PR allowed) because some subagents refuse network/git-write steps even when asked; never fabricate authorization the user did not give.
- Subagents may fail silently or leave broken trees. Always re-run scoped validation on every worktree afterward; delegate repair of any broken/incomplete work to a fresh subagent with a bounded task packet (what was applied, what fails, what's missing such as a version bump).
- Shared lockfiles conflict: every PR touching dependencies modifies them. Expect trivial merge-order conflicts between sibling PRs; rebase whichever merges second.
- Commit messages with backticks: write them to a temp file and use
git commit -F <file>— inline-m "..."breaks on backticks/command substitution. - Repo-mandated hardening patterns (config-safety rules, security checks) are not cleanup targets, even when they look duplicated.
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.

