Skip to content
Skill

Subagent brief

Forces agents to compress subagent prompts into short briefs before spawning

Subagent brief is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
233
Last commit
License
MIT
Listing updated

Similar skills

About Subagent brief

Subagent Brief is a pre-flight checklist for Claude Code agents that are about to call the Task or Agent tool. It argues that each subagent cold-starts and re-tokenizes its entire prompt, so passing long files or full repo dumps multiplies token cost across parallel fan-outs. The skill walks the agent through five rules: strip its own conversation context, replace file contents with paths the subagent can read, replace raw context with short summaries, keep the brief under about 200 words, and check whether parallel subagents really need the same shared context.

The skill also supplies a brief template with fields for role, goal, inputs, constraints and the expected return, plus a short list of red flags to catch oversized prompts. After a subagent returns, it suggests how to judge whether the brief was too vague or too thin and to adjust it. The guidance is plain instructions in a single SKILL.md file with no scripts.

When your agent uses it

Use BEFORE invoking the Task or Agent tool to spawn a subagent. Anthropic does NOT share prefix cache across subagents — every subagent cold-starts and re-tokenizes its full prompt (system prompt + tool definitions + the context you handed it). Spawning N subagents with full context = N× token cost; a single fan-out can burn an entire Max-plan day. This skill enforces a pre-flight discipline: compress every subagent prompt into a ≤200-word brief before spawning. Triggers when the agent is about to call Task / Agent tool, especially with long files, full repo dumps, or N parallel subagents on similar work.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the lich-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skills

Or copy only this skill to ~/.claude/skills/subagent-brief:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/subagent-brief &&
cp -R "$tmp/skills/subagent-brief" ~/.claude/skills/subagent-brief &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/subagent-brief inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/subagent-brief to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/subagent-brief &&
cp -R "$tmp/skills/subagent-brief" ~/.agents/skills/subagent-brief &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/subagent-brief inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/subagent-brief to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/subagent-brief &&
cp -R "$tmp/skills/subagent-brief" ~/.cursor/skills/subagent-brief &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/subagent-brief inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/subagent-brief

Or copy the folder to ~/.gemini/skills/subagent-brief yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/subagent-brief:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/subagent-brief &&
cp -R "$tmp/skills/subagent-brief" ~/.copilot/skills/subagent-brief &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/subagent-brief inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git

Then copy lich-skills/skills/subagent-brief into your agent's skills folder as subagent-brief. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Pre-spawn prompt check
Runs a checklist before any Task or Agent call to catch oversized subagent prompts.
File paths over pasted content
Directs the agent to hand subagents file paths they can read rather than embedded file text.
Brief template
Provides a fixed layout for role, goal, inputs, constraints and expected return.
Fan-out cost check
Asks whether parallel subagents share the same long context and suggests sequential handling or a shared brief.
Rationalization table
Lists common excuses for pasting full context and explains why each one is costly.

Good for

  • Plan a subagent prompt for reading a large module and reporting its public API
  • Decide whether a set of parallel review tasks should run as one subagent or several
  • Shrink a long repository-analysis prompt into a short brief before delegating
  • Check whether a multi-file refactor should be split across separate subagent calls

Subagent brief FAQ

When does Subagent brief trigger?

It is meant to be used before the agent calls the Task or Agent tool to spawn a subagent, especially with long files, full repo dumps or several parallel subagents on similar work.

What does the skill require to run?

It has no scripts and does not set allowed tools. It is a single SKILL.md file with written guidance.

Does Subagent brief change how subagents are billed or cached?

It does not change caching. It asks the orchestrating agent to write shorter prompts, based on the stated claim that Anthropic does not share prefix cache across subagents.

Is Subagent brief skipped for some tasks?

Yes. The skill says not to use it for a single one-line subagent task, when the subagent truly needs the full document, or when token cost does not matter.

How do I install Subagent brief in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/subagent-brief to use it in all your projects, or to .claude/skills/subagent-brief in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.

Does Subagent brief run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Subagent brief?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Subagent brief?

The closest alternatives to Subagent brief are Writing agents, Skill creator, Independent review, Principle guard the context window and Delegate.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from LichAmnesia/lich-skills

  1. Loops a failing build, typecheck, lint or test until the check exits 0

    • Open source
    • 233 GitHub stars
    • Developer tools
  2. Guides an agent through a hypothesis-driven loop for hard-to-find bugs

    • Open source
    • 233 GitHub stars
    • Developer tools
  3. Guides the agent to build distinctive, polished frontend interfaces instead of generic

    • Open source
    • 233 GitHub stars
    • Design and media
  4. Gates new project ideas with memory checks and kill criteria before any work starts

    • Open source
    • 233 GitHub stars
    • Productivity
  5. Lets your agent pull GA4 reports and turn them into prioritized SEO and traffic fixes

    • Open source
    • 233 GitHub stars
    • Marketing and SEO
  6. Generates and edits images from text prompts using Google's Nano Banana 2 model

    • Open source
    • 233 GitHub stars
    • Design and media