Skip to content
Back to skills

Delegate

ASecurity

Use for multi-file features, cross-component debugging, repo-wide changes, parallel workstreams, or when asked to use subagents. Root plans and integrates; bounded subagents explore, implement, test, research, review.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
ai-agentsgodebuggingapibackendsecurity

Works with

  • api

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add mmgordon82/agent-skills --skill delegate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Delegate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Delegate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mmgordon82-delegate/badge)](https://www.skillsdirectory.com/skills/mmgordon82-delegate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: delegate
description: Use for multi-file features, cross-component debugging, repo-wide changes, parallel workstreams, or when asked to use subagents. Root plans and integrates; bounded subagents explore, implement, test, research, review.
---

# Delegate

The root agent owns the goal, the architecture, the integration, and the final answer. Subagents return evidence and bounded execution. Never hand architectural ownership to a subagent.

## Gate

Do it yourself only when the task is small and local. Delegate when any of these hold:
- it spans several files, modules, or services, or has two or more independent workstreams;
- the repo needs exploring before you can implement;
- debugging crosses components;
- external or version-specific facts need checking;
- an independent review after the change would catch real risk;
- the user asks for subagents or parallelism.

Once delegating, actually spawn the subagents. If spawning fails, say so. Don't quietly do the delegated work in the root.

## Roles and models

| Role | Job | Writes? | Model |
|---|---|---|---|
| explorer | map code paths, symbols, tests, config | no | strong at high |
| worker | bounded implementation with named file ownership | yes | strong at high |
| tester | reproduce, run targeted tests, report exact evidence | tests only | strong at high |
| researcher | version-specific APIs and docs, from primary sources | no | strong at high |
| reviewer | correctness, security, regression, and missing-test review | no | strong |

Use the harness's role definitions when it has them (e.g. `~/.codex/agents/*.toml`). Otherwise pick models per the tiers in the **poteto-mode** skill's Subagents section. Only the root escalates a subagent to a stronger model, when it reports a real reasoning blocker.

## Contract for every subagent

Give each one: objective (one outcome), scope (exact files or question), only the context it needs, constraints (what must not change), deliverable, and acceptance check. Explorers and reviewers must not edit files. Each file has one writer.

> Bad: "Fix the backend." Good: "Trace where POST /invoices validates currency. Return the files, the validation path, and existing tests. Don't edit files."

Subagents report back instead of widening scope when they hit an architectural choice, a breaking API or schema change, a new dependency, a security-sensitive choice, unclear requirements, or another worker's files.

## Order

- Independent tasks: spawn all of them, then wait for all.
- Dependent work runs in sequence: explore → root decides → implement → test → review → fix material findings → verify.
- Use only the roles that help. Don't let workers attempt competing fixes unless the root asks for alternatives.
- Subagents return conclusions, paths, line refs, commands run, and results. They don't return raw logs or whole files.

## Done when

- Every subagent you spawned has completed or explicitly failed, and none is still running.
- Findings are integrated and conflicts resolved.
- You read the final diff yourself, not only the subagents' summaries.
- You never claim a subagent did work unless the spawn actually succeeded.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.