subagent-driven-development
Skill1 starsChanged 2 months 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.
153 other projects use a version of this.
Adopted by
Most recently taken up by
- LayneChai/superpowers-dshtheir own version, first seen Oct 3, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- lsy041015/orchestratheir own version, first seen Oct 2, 2026
- Wenaixi/dsh-superpowertheir own version, first seen Oct 1, 2026
Used with
Projects with it also use diagnosing-superpowers, workflow-runner 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.
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 6 projects that use this
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 5 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
AlexAI-MCPSkillnative-mcp
MCP server integration in Claude Code — add servers to .mcp.json, configure transports, and use their tools natively.
Also in 5 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
- +1 more from shibit-net
Other versions153 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 153
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- openai/plugins★ 7.3ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- coco-research/coco★ 437same name
- Ibrahim-3d/orchestrator-supaconductor★ 380same name
- graniet/kheish★ 221same name
- KbWen/agentic-os★ 206same name
- totvs/engpro-advpl-tlpp-skills★ 138same name
143 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 repository55 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-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 145 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 145 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.

