subagent-driven-development
Use when executing a defined implementation plan with multiple mostly-independent tasks in the current session. Orchestrate implementer and reviewer subagents, parallelize safe work, keep architecture and integration in the orchestrator.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- subagent-driven-development
- description
- Use when executing a defined implementation plan with multiple mostly-independent tasks in the current session. Orchestrate implementer and reviewer subagents, parallelize safe work, keep architecture and integration in the orchestrator.
02 资源文件 4
- 参考文档agents/openai.yaml225 B
- 参考文档references/example-workflow.md1.1 KB
- 参考文档references/guardrails.md1.3 KB
- 参考文档references/parallelization-examples.md881 B
03 SKILL.md 正文
Subagent-Driven Development
Role: orchestrator. Split, dispatch, review, integrate, verify.
Orchestrator Owns
- Plan split.
- Interfaces, contracts, acceptance criteria.
- Architecture + product decisions.
- Dependency order.
- Integration.
- Final verification.
Core Rules
- Use
tasquefor durable tracking. - Split by ownership. Parallel agents must not edit same files or interfaces.
- Define interfaces + acceptance before dispatch.
- Give each subagent fresh, curated context: full task text, local context, owned files, contracts, constraints, tests. Do not make them infer from chat history.
- Keep decisions in orchestrator. Subagents implement, test, review, research.
- Require tests for behavior changes. Skip only for clearly mechanical work or explicit approval.
- Review every implementation with separate
reviewerpasses: spec compliance first, code quality second. - Loop till pass. If task stays stuck after repeated review/fix cycles, stop + surface blocker.
- Pick smallest capable implementer. Upgrade when signals show it is needed.
- Lint, format, test, live test instead of assuming success.
Implementer Selection
Default to developer-lite for mechanical tasks:
- Clear spec and acceptance criteria.
- Touches 1-2 files.
- No shared interfaces, schema, auth, security, concurrency, perf, or cross-module state.
- Existing pattern is obvious.
- Verification command is local and cheap.
Use developer for judgment tasks:
- Multi-file or cross-module work.
- Public API, schema, migration, state model, auth, security, concurrency, perf, or new dependency.
- Debugging, unclear patterns, large/tangled files, or architectural tradeoffs.
Upgrade rule: if developer-lite returns BLOCKED, NEEDS_CONTEXT, or correctness-related DONE_WITH_CONCERNS, add context, narrow the task, or redispatch to developer. Never retry unchanged.
Implementer Status
DONE: proceed to spec-compliance review.DONE_WITH_CONCERNS: read concerns. Resolve correctness/scope concerns before review; note observations and continue.NEEDS_CONTEXT: provide missing context and redispatch.BLOCKED: assess blocker. Add context, split task, upgrade implementer, or ask user if plan is wrong.
Flow
- Analyze
- Identify goal, success criteria, constraints, deps, shared surfaces, test needs.
- Break work into small tasks with clear ownership.
- Define contracts
- Lock public interfaces, data shapes, integration order, non-goals.
- Add enough detail for independent execution.
- Track
- Create or update
tsqtasks. - Model blockers explicitly.
- Mark active work
in_progress; close only after review + verification.
- Dispatch implementer
- Assign one owned task.
- Include task, context, owned files, contracts, constraints, tests, deliverables.
- Tell agent ask questions early. Avoid autonomous architecture changes.
- Select
developer-liteordeveloperusing Implementer Selection.
- Review
- Dispatch
reviewerwithReview mode: spec-compliance, requirements, changed files, diff context, test results. Do not trust implementer report. - After spec passes, dispatch
reviewerwithReview mode: code-quality. - If review fails, send targeted fixes back through an implementer.
- Integrate
- Merge approved work in dependency order.
- Re-run impacted tests after integration.
- Finish
- Run final end-to-end checks for plan.
- Dispatch final
reviewerwithReview mode: final-integrationover the full integrated diff. - Close
tsqitems with outcome notes. - Report blockers, residual risk, follow-up work.
Prompt Contract
- Full task statement. Paste it.
- Why task exists.
- Exact acceptance criteria.
- Owned files or module boundary.
- Interfaces or contracts to honor.
- Constraints + non-goals.
- Test expectations.
- Required deliverable format: status (
DONE|DONE_WITH_CONCERNS|BLOCKED|NEEDS_CONTEXT), summary, files changed, tests run, self-review findings, open issues.
References
- Red flags:
./references/guardrails.md - Example loop:
./references/example-workflow.md - Parallel split patterns:
./references/parallelization-examples.md
04 同仓库更多 Skills
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
workflow-from-chats
Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.
winui3-csharp-app
WinUI 3 / Windows App SDK desktop apps in C#/XAML. MVVM, bindings, navigation, Mica/Acrylic, windowing, packaging, performance.
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
what-did-i-get-done
Summarize authored commits over a user-specified time period into a concise status update.
weekly-review
Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.