Skip to content
Back to skills

Agent Delegation

ASecurity

Rules for when and how to spawn sub-agents: Explore for 3+ file reads, parallel agents for independent tasks, summaries only — raw output never enters main context

  • 22 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 23, 2026
ai-agentsjavascriptjava

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add yeisonrestrepo/code-conductor --skill agent-delegation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Delegation?

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

Security grade badge for Agent Delegation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeisonrestrepo-agent-delegation/badge)](https://www.skillsdirectory.com/skills/yeisonrestrepo-agent-delegation)

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: agent-delegation
description: "Rules for when and how to spawn sub-agents: Explore for 3+ file reads, parallel agents for independent tasks, summaries only — raw output never enters main context"
type: skill
---

# Agent Delegation

Keep the main context clean. Raw file contents, grep output, and intermediate data never enter the main context. Sub-agents process data and return summaries only.

## When to Spawn

### Explore Sub-Agent
**Condition:** Task requires reading 3+ files to answer one question, or codebase exploration precedes implementation.

```javascript
// Use the Agent tool with these parameters:
Agent({
  subagent_type: "Explore",
  description: "<10-word description of the lookup>",
  prompt: "<question>. Search across relevant files. Return a summary of ≤200 words. Do not include raw file contents."
})
```

### Parallel Agents
**Condition:** 2+ implementation tasks with no shared state, each describable independently.

Send both Agent calls in a single message so they run in parallel:

```javascript
// Use the Agent tool twice in the same message — they run in parallel:
Agent({ description: "Task A", prompt: "... Return a summary of ≤200 words." })
Agent({ description: "Task B", prompt: "... Return a summary of ≤200 words." })
```

## Output Contract
- Every sub-agent returns ≤200 words to the main context.
- The main context acts only on summaries, not raw data.
- If a sub-agent needs user input, it surfaces one question to the main context and stops.

## When NOT to Spawn
- Single Grep or Glob can answer the question.
- Answer is already in `.claude/memory/project.md`.
- Task requires back-and-forth with the user (stay inline).

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.