agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when delegating work to a separate agent with its own context. Covers when delegation pays off, designing a subagent's scope and prompt, parallel fan-out, and the cost of a cold start.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill subagents --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/subagentsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when delegating work to a separate agent with its own context. Covers when delegation pays off, designing a subagent's scope and prompt, parallel fan-out, and the cost of a cold start.
name: subagents description: Use when delegating work to a separate agent with its own context. Covers when delegation pays off, designing a subagent's scope and prompt, parallel fan-out, and the cost of a cold start. metadata: category: agent-tooling version: 1.0.0 tags: [subagents, delegation, context, parallelism]
Delegate work to a subagent when its own context is worth the cost of starting one. A subagent begins cold — it re-derives everything the main agent already knows — so the delegation must buy more than it costs.
1. **Justify the delegation** — The valid reasons are: context isolation (the search produces 50 files of noise and one answer), parallelism (five independent tasks), and specialization (a different instruction set). "The task is big" is not a reason — a big task in the same context is usually cheaper. 2. **Write the prompt as if to a stranger** — Because it is one. The subagent has none of your context: no conversation history, no prior findings, no shared understanding of the goal. Everything it needs must be in the prompt. 3. **State exactly what to return** — A subagent that returns a wall of text has moved the context problem rather than solved it. Specify the format and the length. 4. **Fan out only genuinely independent work** — Two subagents editing the same file will conflict. Parallelism requires disjoint scopes. 5. **Use a read-only agent for verification** — An agent that did not write the code is a better reviewer of it than the one that did.
**Delegation that pays for itself — exploration with a compact return:**
Task for the subagent: Find every place in this repository where an outbound HTTP call is made without a timeout. Search for: fetch(), axios, httpx, requests, http.Client, and any wrapper around them in src/. For each call site, determine whether a timeout is configured — either at the call, on the client, or by a default in a shared client factory. Do not fix anything. Do not read files that are not relevant. Return ONLY a markdown table with these columns, and nothing else: | File:line | Call | Timeout configured? | Where the timeout is set (or "none") | If there are more than 20, return the 20 with the widest blast radius (those in request paths rather than in scripts or tests) and state the total count.
The subagent reads sixty files. It returns a twenty-row table. The main context receives the table.
**A delegation that is not worth it:**
"Implement the refund feature." The subagent does not know: the domain conventions, the Result type, the fact that Money is an integer, the existing RefundService, or why the previous approach was rejected. It will re-derive some of this, get some of it wrong, and return code that must be reviewed line by line against context it never had. Doing this in the main context — where all of that is already established — is faster and produces better code.
**Parallel fan-out with disjoint scopes:**
Three subagents, in parallel, each with a scope that cannot collide: 1. "Audit skills/frontend/ for broken internal links. Report only." 2. "Audit skills/backend/ for broken internal links. Report only." 3. "Audit skills/devops/ for broken internal links. Report only." Read-only, disjoint, independently useful. This is the shape delegation is for.
A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…