subagent-delegation
Skill1 starsChanged 4 months agoMITView on GitHub
Delegates focused work to Kiro subagents that run in isolated context. Use when work can run in parallel, when a specialized agent fits (code review, testing, security, research), or when a long task would otherwise bloat the main conversation. Trigger with "run subagents to ...".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- shinpr/codex-workflowstheir own version, first seen Oct 2, 2026
- rmkr/skillstheir own version, first seen Sep 23, 2026
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- lfake2320-collab/agentdesktheir own version, first seen Jul 3, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- shinpr/codex-workflows★ 38same name
- PracticalSwan/agent-skills★ 18same name
- lfake2320-collab/agentdesk★ 0same name
- rmkr/skills★ 0same name
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 repository59 other files it gives its agents.
- add-buildpadSkill
- add-external-oauthSkill
- add-filesSkill
- add-i18nSkill
- add-microappSkill
- add-microfrontendSkill
- add-microfrontend-zonesSkill
- add-multitenancySkill
- add-usersSkill
- amplify-env-varsSkill
- authentication-proxySkill
- buildpad-debugSkill
- buildpad-discoverySkill
- buildpad-implSkill
- buildpad-referenceSkill
- buildpad-reviewSkill
- buildpad-spec-batchSkill
- buildpad-spec-designSkill
- buildpad-spec-initSkill
- buildpad-spec-quickSkill
- buildpad-spec-requirementsSkill
- buildpad-spec-statusSkill
- buildpad-spec-tasksSkill
- buildpad-steering-customSkill
- buildpad-steeringSkill
- buildpad-validate-designSkill
- buildpad-validate-gapSkill
- buildpad-validate-implSkill
- buildpad-verify-completionSkill
- code-simplificationSkill
- context-engineeringSkill
- create-api-routeSkill
- create-collectionSkill
- create-componentSkill
- create-cronSkill
- create-featureSkill
- create-form-builderSkill
- create-migrationSkill
- create-projectSkill
- create-rbacSkill
- create-serviceSkill
- create-testsSkill
- create-workflowSkill
- daas-platformSkill
- debugging-and-error-recoverySkill
- generate-docsSkill
- git-workflow-and-versioningSkill
- grant-module-accessSkill
- hooks-extensionsSkill
- idea-refineSkill
- incremental-implementationSkill
- manage-scopeSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- relational-permissionsSkill
- review-codeSkill
- security-and-hardeningSkill
- spec-driven-developmentSkill
- worker-messagingSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
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
- could be automatic: a setting could enforce it
- Distinctive: line 40
Integrate on the main thread: Treat subagent output as advisory.
“Common” is measured: kept by at least 6 in 10 of the 3 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 Delegation
Overview
A subagent is a focused task handed to an agent that runs in its own isolated context. Kiro launches subagents automatically when a request matches an agent's description, or on demand when you say "Run subagents to ...". Use them to keep the main conversation lean, run independent tracks in parallel, or chain specialists into a pipeline.
Subagents are Markdown files in .kiro/agents/ (workspace) or ~/.kiro/agents/ (user). This starter ships three, mirrored from .github/agents/:
| Subagent | Delegate when you need… |
code-reviewer | Five-axis review (correctness, readability, architecture, security, performance) + Buildpad/DaaS compliance, after writing or changing code |
test-engineer | Test-suite design, coverage-gap analysis, or writing Playwright/Vitest tests |
security-auditor | Security review of auth, CORS/RLS, input handling, secrets |
When to Delegate
- Parallel, independent work — several read-only research tracks, or reviewing multiple modules at once.
- Specialized review — hand a finished slice to
code-reviewer/security-auditorinstead of self-reviewing inline. - Context isolation — a large exploration (e.g., "map how auth flows through the app") would flood the main context; a subagent returns just the summary.
- Pipelines — implement →
code-reviewer→security-auditor, each stage building on the last.
When NOT to Delegate
- The task is trivial or you need tight, iterative back-and-forth.
- Steps share mutable state or must run in strict order (DB migrations, a single edit sequence).
- The subagent would need most of your current context to make progress — the hand-off cost outweighs the benefit.
Delegation adds coordination overhead. If a task is small and sequential, just do it on the main thread.
How to Delegate
- Write a self-contained brief. Subagents do NOT see your conversation. State the goal, the exact files/paths, constraints, and the output you want back.
- Launch. Let Kiro auto-match by description, or be explicit: "Run subagents to review
app/items/with code-reviewer and auditapp/api/auth/with security-auditor." - Parallelize only independent work. For work that shares an interface, define the contract first (see
planning-and-task-breakdown), then fan out. - Integrate on the main thread. Treat subagent output as advisory. Apply fixes, resolve conflicts, and run the build/tests yourself before declaring done.
Patterns
Fan-out (research): main ─┬─ subagent: "map data model in src/collections"
├─ subagent: "list all /api routes + auth guards"
└─ subagent: "inventory Buildpad components used"
main merges the three summaries.
Pipeline (quality): implement slice → code-reviewer → security-auditor → fix → verify
Map (review at scale): one code-reviewer subagent per changed module, in parallelDaaS / Buildpad Notes
- Route Buildpad-First and proxy-pattern compliance checks to
code-reviewer. - Route CORS/RLS/OAuth and secret-handling checks to
security-auditor. - Route Playwright coverage and RBAC test design to
test-engineer. - Give research subagents the MCP context they need (project detail, collection schemas) in the brief — they start with a clean context.
Common Rationalizations
| Rationalization | Reality |
| "Delegating is always faster" | Only for independent or isolatable work. Sequential, shared-state work is slower split up. |
| "The subagent knows what I know" | It starts fresh. An underspecified brief produces a useless result. |
| "I'll skip the main-thread verification" | Subagent output is advisory. Nothing is done until the build and tests pass on the main thread. |
Red Flags
- Delegating a task that needs your live context to make sense.
- Parallelizing work that shares an API contract without defining it first.
- Accepting subagent results without integrating and verifying them.
- Spawning subagents for a one-file change.
Verification
- Each delegated task had a self-contained brief (goal, files, constraints, expected output).
- Only independent work was parallelized; shared contracts were defined first.
- Subagent results were integrated on the main thread.
- Build and tests pass after integration.
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.

