subagent-driven-development
Skill2 starsChanged 42 days agoMITView on GitHub
Use when building a C#/.NET feature by driving subagents to do the work — especially lots of repetitive, mechanical, or templated files. You orchestrate; agents implement. Pass the exact changes in each agent's prompt; never stage instructions through temporary files in the repo.
189 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
- DJtx001/ai-coding-playbooktheir own version, first seen Nov 8, 2026
- namlxuit056/social-forextheir own version, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 19 projects that use this
Tommy-ywSkillwebhook-subscriptions
Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.
Also in 5 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 5 projects that use this
math-incSkillpokemon-player
Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.
Also in 5 projects that use this
- +3 more from Leodorareluctant259
- +2 more from math-inc
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 189
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- openai/plugins★ 7.8ksame name
- farm-fe/farm★ 5.6ksame name
- lingyired/status-trio★ 1.8ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- pcvelz/superpowers★ 1.3ksame name
- math-inc/OpenGauss★ 1.3ksame name
- DemonDamon/AgenticX★ 1ksame name
- coco-research/coco★ 797same name
179 more not listed
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 repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- benchmarkingSkill
- commit-messagesSkill
- csharp-15-syntaxSkill
- csharp-aot-trimmingSkill
- csharp-api-designSkill
- csharp-assembly-inspectionSkill
- csharp-asyncSkill
- csharp-collections-modernSkill
- csharp-concurrency-primitivesSkill
- csharp-data-layoutSkill
- csharp-debuggingSkill
- csharp-discardsSkill
- csharp-disposable-patternsSkill
- csharp-docsSkill
- csharp-error-handlingSkill
- csharp-extension-membersSkill
- csharp-generics-modernSkill
- csharp-guard-clausesSkill
- csharp-json-source-generationSkill
- csharp-language-versionsSkill
- csharp-logging-diagnosticsSkill
- csharp-lspSkill
- csharp-modern-typesSkill
- csharp-nullabilitySkill
- csharp-nullable-migrationSkill
- csharp-nunitSkill
- csharp-pattern-matchingSkill
- csharp-performanceSkill
- csharp-polyfillsSkill
- csharp-source-generatorsSkill
- csharp-static-lambdasSkill
- csharp-string-handlingSkill
- csharp-tunitSkill
- csharp-verificationSkill
- dispatching-subagentsSkill
- dotnet-11-librariesSkill
- dotnet-analyzersSkill
- dotnet-central-package-managementSkill
- dotnet-file-based-appsSkill
- dotnet-msbuild-usingsSkill
- dotnet-multi-targetingSkill
- dotnet-project-hygieneSkill
- dotnet-runSkill
- dotnet-runtime-asyncSkill
- dotnet-slnxSkill
- dotnet-test-platformsSkill
- executing-plansSkill
- performance-bounded-deduplicationSkill
- roslyn-analyzer-performanceSkill
- roslyn-discoverySkill
- roslyn-duplicate-detectionSkill
- roslyn-guard-rewritersSkill
- roslyn-rewritersSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 179 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
If the shared context is large (a base template, an interface, a conventions block), paste it into each agent's prompt verbatim.
- Distinctive: line 85
One contract, then the rest: If files share an interface or base type, create/confirm that first and paste it into every downstream agent …
“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Subagent-driven development (C#)
You are the orchestrator. You hold the design and the standards; subagents do the per-file implementation. This shines when the work is repetitive or templated — many similar handlers, DTOs, interface implementations, test fixtures, mappers, migrations, or the same refactor applied across dozens of files. One context can't comfortably hold 40 near-identical edits; 40 focused agents can.
This is the development counterpart to dispatching-subagents (which is for diagnosing independent failures). Here you're constructing, often in bulk.
Core rule: instructions go in the prompt, not in a temp file
Do not write a scratch/plan/spec file into the repo for agents to read. That litters the working tree, risks getting committed, and adds a file-IO round-trip. Instead, put the exact changes the agent must make directly in its prompt — the target path, the template/pattern, the concrete values, the constraints. The agent receives everything it needs inline and has no reason to invent or to hunt.
If the shared context is large (a base template, an interface, a conventions block), paste it into each agent's prompt verbatim. Repetition in prompts is cheap; a stray TASKS.md in the repo is not.
The loop
- Design once, in your head / the conversation. Decide the pattern: the shape of each file, the naming, the conventions, what varies per item and what's constant. Don't write it to disk.
- Enumerate the work-list. Scan the repo to find exactly which files to create or change (e.g. "one mapper per entity in
Domain/Entities/"). This is your job — discover the list, then drive it. - Dispatch one agent per file (or small batch). Each prompt is fully self-contained (see structure below). For independent files, fan out in parallel (one message, multiple Agent calls). For files that must agree on a shared contract, do the contract first, then fan out the rest.
- Integrate and verify yourself. Collect the diffs, then run the real gate — build, analyzers, tests (see
csharp-verification). Agents can drift from the pattern; you are the consistency check.
Agent prompt structure
Each agent gets, inline:
- Exact target — the full path(s) to create or edit. One file, or a named small set.
- The concrete change — the template/pattern with the per-item values already filled in, or the precise edit to apply. Spell it out; don't make the agent guess the shape.
- Shared context pasted in — the base class/interface, the namespace, the conventions, an example of an existing file that already follows the pattern ("match
OrderMapper.csexactly, but forCustomer"). - Constraints — "Only touch this file. Follow the repo's analyzer/.editorconfig rules. Use file-scoped namespaces and the existing using style. Do NOT add packages."
- Verification the agent must do — "Make sure it compiles in context."
- Return contract — "Return the final file content (or the diff) and confirm it builds. Nothing else."
Example:
Create src/Mapping/CustomerMapper.cs.
Match the existing pattern in src/Mapping/OrderMapper.cs EXACTLY (pasted below),
but map the Customer entity → CustomerDto.
Fields to map: Id→Id, FullName→Name, Email→Email, CreatedUtc→CreatedAt.
[paste OrderMapper.cs here]
[paste Customer.cs and CustomerDto.cs here]
Rules:
- Only create CustomerMapper.cs. Touch nothing else.
- File-scoped namespace `Acme.Mapping`, nullable enabled, follow the repo .editorconfig.
- No new packages, no reflection.
Return: the full file content and confirm it compiles against the pasted types.When the work is templated, template the prompts
For 30 near-identical files, build the 30 prompts programmatically from your work-list (same skeleton, swap the per-item values) and dispatch them. Each agent still gets a complete, standalone instruction. If you have an orchestration harness available, a fan-out over the work-list is ideal — otherwise dispatch in parallel batches.
Whether agents may skip the build depends on the kind of change
Letting each agent build is the safe default but serializes the slow step. Skipping it is much
faster and is safe only for local, mechanical substitution — one call shape becoming another, a
Substring becoming a span slice. Those land clean at high parallelism.
A structural change must build per batch. Moving control flow — extracting a helper, removing a registration, restructuring a callback — trips the repo's own analyzers in ways the agent cannot predict, and blind batches accumulate errors that nobody owns.
- Serialize the builds with a lock (
flock <lockfile> dotnet build ...) so several agents can edit concurrently without their builds colliding onobj/. - Tell each agent to fix only errors naming its own files and ignore the rest, or it fights the other agents' in-progress edits. Know that this leaves aggregate breakage nobody owns, so still run a repair pass at the end.
- Under heavy lock contention an agent may only get one or two build iterations inside its window, so the end-of-run repair is not optional.
- Give the repair pass every constraint, not just the obvious one. A pass told "fix the build, don't undo the optimisation" will happily satisfy a style rule in a way that reintroduces the cost somewhere else. Name the specific wrong fixes.
You own consistency and correctness
- Spot-check for drift. Agents working in isolation can each make a slightly different choice. Diff a sample against the pattern; if they diverged, tighten the prompt and re-run, don't hand-patch 30 files.
- One contract, then the rest. If files share an interface or base type, create/confirm that first and paste it into every downstream agent so they all bind to the same thing.
- Verify the whole, not the parts. Each agent confirms its file; you confirm the suite builds clean, analyzers pass, and tests are green before calling it done.
- TDD still applies (see
tdd) — for behavioral code, have agents write the failing test first or drive a test-per-file.
Anti-patterns
- Writing a
TASKS.md/plan.txt/ scratch file into the repo for agents to read — put it in the prompt. - Vague prompts ("make a mapper for Customer") that force the agent to reverse-engineer the pattern — paste the pattern.
- Letting each agent pick its own conventions — pin them in every prompt.
- Trusting agent self-reports as final verification — run the build/analyzers/tests yourself.
- Hand-fixing widespread drift instead of fixing the prompt and re-dispatching.
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.

