Skip to content

Knowledge base

Authoring skills and subagents

Our position on writing skills and subagents for Claude Code: selection first, evals before instructions, few maintained skills, and both guides.

Written by

Updated:

Tools 4

Our position. We build skills from where the agent struggles and codify actual patterns, not anticipated ones (opens in a new tab). Sub-agents exist to fork context, not to specialize (opens in a new tab): one does the searching and reading in its own window, returns a succinct summary, and keeps the parent lean.

Selection comes first. Only a skill’s name and description preload at startup, SKILL.md loads when the skill becomes relevant, and bundled files load or run only when needed (Anthropic - Skill authoring best practices (opens in a new tab)). The listing budget truncates long descriptions and drops the least-used ones first, so the key use case has to lead (Anthropic - Extend Claude with skills (opens in a new tab)).

Anthropic puts evaluation before instructions: run the task without the skill, write three test scenarios, and add only enough guidance to pass them (Anthropic - Skill authoring best practices (opens in a new tab)). The gain is real but uneven: curated skills lifted the average pass rate from 33.9% to 50.5% in SkillsBench, while self-generated skills fell below the no-skills baseline (arXiv - SkillsBench (opens in a new tab)).

Every model-invoked skill adds context load on each request, and skills drift as models improve. Claude Code’s creator keeps about seven and puts the sustainable number at 5 to 10 actively maintained skills (How Claude Code’s Creator ACTUALLY Automates his work (opens in a new tab)). Deletion tests find the lines that change nothing (Building Great Agent Skills: The Missing Manual (opens in a new tab)).

A subagent attacks the same budget from the other side (Elite Context Engineering with Claude Code (opens in a new tab)). The price is that the work behind its answer is discarded: the main agent sees the summary, not the search that produced it, so check a subagent’s result like any other claim before building on it (Anthropic - Create custom subagents (opens in a new tab)).

Start here

  • Authoring skills: How to scope, evaluate, trigger, maintain, and secure skills without wasting the shared context window.

Resources

Documentation

Papers and reports

Posts

Talks and videos

In this section

  • Authoring skills

    How to write a skill that fires and works, evaluate it before shipping, and whether an agent can tune one unattended, for teams extending Claude Code.