Delegate the owner's work to subagents with house defaults — split tasks, pick a model per job, run independent ones in parallel, review once at the end. Use when the owner asks in any language to run or hand work to subagents ("chạy subagent", "gọi agent", "dùng subagent sonnet", "chạy 5 agents review", "build song song"). Not for a plain review with no ask for agents (/code-review), agents as the topic, or a Workflow script.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Run Agents?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mxrsv-run-agents)
---
name: run-agents
description: Delegate the owner's work to subagents with house defaults — split tasks, pick a model per job, run independent ones in parallel, review once at the end. Use when the owner asks in any language to run or hand work to subagents ("chạy subagent", "gọi agent", "dùng subagent sonnet", "chạy 5 agents review", "build song song"). Not for a plain review with no ask for agents (/code-review), agents as the topic, or a Workflow script.
argument-hint: "[plan path | task] [model] [number of agents]"
---
# run-agents
The owner says "run các subagent"; this skill supplies what they would otherwise type after it.
Their words win: a named model, agent count or order overrides every default below.
## 1. Find the work
Take the tasks from the spec they named (and any legacy plan), else the approach just
agreed in plan mode or chat, else the conversation. Do not redo a settled brainstorm or spec. If one is still
required, the spec threshold in `rules/core/workflow.md` decides; otherwise start. No work to split → ask one question.
## 2. Pick the model
Always pass `model`: leaving it out inherits the main session's model.
| Job | `model` |
| ------------------------------------------ | -------- |
| Write code, fix, mock, docs, research scan | `sonnet` |
| Plan, spec, root-cause debug, a decision | `opus` |
| Review of a mock, video, copy | `opus` |
## 3. Split into waves
Record `git rev-parse HEAD` as the baseline before the first wave; section 5 needs it.
- **Same wave, same message:** tasks with no dependency and no shared file. At most 5 per wave
unless the owner gives a number; the rest go in the next wave.
- **Later wave:** a task that needs another's result or edits the same file. No worktree unless the
owner asks or a PR needs one.
- **Brief:** goal, files it owns, files it must not touch, the check to run. A mock of a data-bearing
screen also carries the element sheet from skill `metric-display-plan`, one form per element. A subagent knows nothing
else. It does not commit: parallel commits collide on the shared git index.
## 4. Build through
After each wave, in the same turn: run the repo's checks yourself (the done check), read each task's diff, commit
only verified work with `git commit -- <paths>` (it takes the whole file, so nothing unverified may
sit in those paths), update the spec's `## Status`, start the next wave. Waiting for agents is not a stop.
Stop only for:
- an irreversible or outward-facing action not already authorized, such as push, merge, release,
publish or deleting the owner's data. A dev-switch track they approved counts; temp files you made do not;
- a dev-switch cut-over: removing a switch or an old surface needs their eye approval first;
- something only the owner can do, such as a login;
- a UI direction with no chosen mock: render the mocks, stop once, then build through;
- a material change to the approved scope or approach;
- nothing left can proceed.
Anything else: take the recommended option, record it in the spec, report it at the end. Eye
approval during the build comes once, after the last wave (eye approval in skill `kyant-ui-rules`). If an older
spec or plan lists it between tasks, move those tasks to the end and keep building.
A task that fails: first check what it left behind. Retry once, with the error in the brief, only if
running it again is safe. Otherwise, or if it fails again, mark it blocked. Tasks that depend on it
or touch the files it left dirty wait; the rest finish.
## 5. Review once, at the end
After the last wave, never per task, skipped only if no file changed: run the `code-reviewer` agent on
`<baseline>..HEAD`. Without that range it reads only the last commit. Fix its confirmed blocker, high
and medium findings in the work just built, re-run the checks, commit. Report the rest. A blocker you
cannot resolve means the work is not done: say so.
A plain review ask goes to the `code-reviewer` agent (severity-ranked); built-in `/code-review` only for PR comments or `--fix`. Spawn reviewers directly only for what it
skips (a mock, a video) or when the owner names the agents or criteria.
## 6. Report
Use the output style's reply format. In `Result`, one row per task: task, model, status. Then the decisions taken,
then what still waits for the owner, only what applies: eye approval (open the main artifact yourself),
push, blocked tasks.