techlist.io

Progressive Disclosure

1 posts

Anthropic2025-10-164 min readCurated summary

Equipping agents with Agent Skills

# Agent Skills: Packaging Procedural Knowledge for Agents Anthropic introduces Agent Skills, organized folders of instructions, scripts, and resources that agents can discover and load on demand to perform specialized tasks. The core argument is that as general-purpose agents gain access to full computing environments, they need a composable, scalable, and portable way to acquire domain expertise, rather than relying on fragmented, custom-built agents for each use case. Skills are published as an open standard and are supported across Claude.ai, Claude Code, the Claude Agent SDK, and the Claude Developer Platform. ## Anatomy of a Skill - At its simplest, a skill is a directory containing a `SKILL.md` file. - The file begins with YAML frontmatter that includes two required fields, `name` and `description`. - At startup, the agent preloads the name and description of every installed skill into its system prompt, so it knows when each skill applies without loading the full content. - If a skill seems relevant, Claude reads the full `SKILL.md` into context. - Complex skills can bundle additional files (for example, `reference.md` or `forms.md`) that `SKILL.md` references by name. Claude loads these only when needed. - The PDF skill used as the example keeps form-filling instructions in a separate file, so the core skill stays lean. ## Progressive Disclosure - Skills load information in levels: metadata first, then the core instructions, then linked files as needed. This works like a manual with a table of contents, chapters, and an appendix. - Agents with filesystem and code execution access don't need to load an entire skill into context, so the amount of material a skill can contain is effectively unbounded. ## Skills and the Context Window - The context starts with the system prompt, the metadata for installed skills, and the user's message. - When a request matches a skill, Claude uses a Bash tool to read that skill's `SKILL.md`. - Claude then decides whether to read any bundled files, such as `forms.md`, before completing the task. ## Executable Code in Skills - Skills can include scripts that Claude runs as tools. - Code suits operations that LLMs handle poorly or expensively, such as sorting or deterministic processing. Running a script is also consistent and repeatable. - The PDF skill includes a Python script that extracts form fields from a PDF. Claude can run it without loading the script or the PDF into context. ## Developing and Evaluating Skills - **Start with evaluation:** Run agents on representative tasks, find where they struggle, and build skills to close those gaps incrementally. - **Structure for scale:** Split large `SKILL.md` files into referenced files, keep rarely combined paths separate to save tokens, and make clear whether scripts should be executed or read. - **Think from Claude's perspective:** Observe how Claude uses skills in practice. The `name` and `description` fields matter most, since Claude uses them to decide whether to trigger a skill. - **Iterate with Claude:** Have Claude capture successful approaches and common mistakes into the skill, and ask it to self-reflect when it goes off track. ## Security Considerations - Malicious skills can introduce vulnerabilities or direct Claude to exfiltrate data or take unintended actions. - Install skills only from trusted sources. For less-trusted skills, audit bundled files, especially dependencies, scripts, and instructions that connect to external networks. ## Looking Ahead - Anthropic plans to add features covering the full skill lifecycle: creating, editing, discovering, sharing, and using skills. - Skills may complement Model Context Protocol (MCP) servers by teaching agents multi-step workflows that involve external tools. - The longer-term goal is for agents to create, edit, and evaluate their own skills, codifying their behavior into reusable capabilities. Skills are intentionally simple in concept and format, which makes it easier for organizations, developers, and end users to build customized agents. Developers can start with the Skills docs and cookbook.