How Claude Code finds and reads skills
Where Claude Code looks for SKILL.md files, the frontmatter it reads, and how the indexed skills do on the rules built from its docs.
Where Claude Code looks for skills
From the Claude Code docs: Extend Claude with skills, as of 2026-11-26. See what changed in these docs.
| Folder | Loads in |
|---|---|
~/.claude/skills/<skill-name>/SKILL.md | Personal: all your projects on this machine |
.claude/skills/<skill-name>/SKILL.md | Project: sessions in this repository |
<subdir>/.claude/skills/<skill-name>/SKILL.md | Nested: sessions that work on files in that folder |
<plugin>/skills/<skill-name>/SKILL.md | Plugin: wherever the plugin is enabled |
Monorepos. Claude Code reads .claude/skills/ in the folder where you start it and in every parent up to the repository root. Skills in folders below load the first time Claude reads or edits a file there.
What Claude Code reads, and when
Skills load in three steps, so a skill costs little until it runs. From the Claude Code docs: Extend Claude with skills, as of 2026-11-26; token counts are medians across the index.
1 · listing
name and description
Claude Code keeps these in context for every installed skill, so it can tell which one fits the task.
~68 tokens per skill
2 · SKILL.md body
the instructions
Loaded only when the skill is picked, or called by name.
~1,651 tokens
3 · bundled files
references/, scripts/, assets/
Read only when the body points to them, so a skill can carry long references at little cost.
55% of skills have them
Frontmatter fields Claude Code reads
| Field | What it does |
|---|---|
name | The command name. Defaults to the folder name. |
description | Recommended. Claude uses it to decide when to apply the skill. |
when_to_use | Trigger phrases appended to the description. |
disable-model-invocation | Set to |
user-invocable | Set to |
allowed-tools | Tools Claude can use without asking while the skill runs. |
paths | Glob patterns for the files that activate the skill. |
context | Set to |
model | Model for the rest of the turn. |
hooks | Hooks registered when the skill is invoked. |
10 of the 20 fields in the frontmatter reference. All of them are optional.
- Call it by name. Type
/skill-nameat the prompt. - Keep it manual. Set
disable-model-invocation: trueand the skill runs only when you type its name. - Description length. The description and
when_to_usetogether are cut at 1,536 characters in the skill listing.
Lines from the Claude Code docs the validator checks against
13 lines, quoted word for word and re-checked every week.
"Claude Code reads the frontmatter only when the opening---is the file's first line. Otherwise it treats the whole file,---markers included, as skill content."
"If the frontmatter YAML is malformed, Claude Code loads the skill body with empty metadata, so/skill-namestill works but Claude can't match against yourdescription."
"Every skill needs aSKILL.mdfile with two parts: YAML frontmatter between---markers that tells Claude when to use the skill, and markdown content with the instructions Claude follows when the skill runs."
"Claude Code re-attaches the most recent invocation of each skill after the summary, keeping the first 5,000 tokens of each."
"The !<command> syntax runs shell commands before the skill content is sent to Claude. The command output replaces the placeholder, so Claude receives actual data, not the command itself.""A skill can grant itself broad tool access, so review the allowed-tools of skills checked into a repository before you run Claude Code there.""If you include any field the spec doesn't allow, packaging or upload fails with a hard error instead of ignoring the field"
"Put the key use case first: the combineddescriptionandwhen_to_usetext is truncated at 1,536 characters in the skill listing to reduce context usage."
"Skills support string substitution for dynamic values in the skill content:"
"Use this for workflows with side effects or that you want to control timing, like/commit,/deploy, or/send-slack-message. You don't want Claude deciding to deploy because your code looks ready."
"bypassPermissions mode disables permission prompts and safety checks so tool calls execute immediately … Isolated containers and VMs only""Hooks that Claude Code registers when the skill is invoked and keeps running for the rest of the session."
"Frontmatter hooks in a project skill follow the same … so they can run under -p in a folder you haven't trusted."
How the indexed skills do on Claude Code's rules
2,767 of 4,462 scored skills pass all 13 rules based on the Claude Code docs.
- TipFrontmatter sticks to the spec's fields1,125 skills fail
- WarningBody stays under about 5,000 tokens400 skills fail
- Warningallowed-tools stays narrow188 skills fail
- TipDescription says when to use it early181 skills fail
- TipPlaceholders work in every agent143 skills fail
- ErrorFrontmatter is valid YAML52 skills fail
- TipSkills with side effects wait to be asked44 skills fail
- TipCommands that run before loading are reviewed24 skills fail
- ErrorStarts with a frontmatter block20 skills fail
- WarningDoesn't turn off permission prompts17 skills fail
- TipHooks in the frontmatter are reviewed5 skills fail
No skill fails the other 2: Body has instructions, Description and when_to_use fit in 1,536 characters.
Most installed skills, with the Claude Code command
Browse all 4,462 skillsnpx skills add <owner/repo> --skill <name> -a claude-codeThe skills CLI copies a skill into .claude/skills/, or ~/.claude/skills/ with -g. Agent ids and paths come from the skills CLI docs.
find-skills
A·100vercel-labs/skills · official
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
npx skills add vercel-labs/skills --skill find-skills -a claude-code4.6M
agent-browser
A·96vercel-labs/agent-browser · official
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
npx skills add vercel-labs/agent-browser --skill agent-browser -a claude-code1.7M
hyperframes-cli
C·78heygen-com/hyperframes · official
HyperFrames CLI - scaffold, check frames, edit timelines, preview, render, share and project history; read JSON and recover from failures.
npx skills add heygen-com/hyperframes --skill hyperframes-cli -a claude-code1.7M
hyperframes
B·88heygen-com/hyperframes · official
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
npx skills add heygen-com/hyperframes --skill hyperframes -a claude-code1.7M
grill-me
B·82mattpocock/skills
A relentless interview to sharpen a plan or design.
npx skills add mattpocock/skills --skill grill-me -a claude-code1.6M
media-use
C·78heygen-com/hyperframes · official
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
npx skills add heygen-com/hyperframes --skill media-use -a claude-code1.6M
heygen-com/hyperframes · official
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
npx skills add heygen-com/hyperframes --skill hyperframes-registry -a claude-code1.5M
grill-with-docs
A·90mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
npx skills add mattpocock/skills --skill grill-with-docs -a claude-code1.4M
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
npx skills add mattpocock/skills --skill improve-codebase-architecture -a claude-code1.3M
tdd
A·96mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
npx skills add mattpocock/skills --skill tdd -a claude-code1.3M
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
npx skills add mattpocock/skills --skill setup-matt-pocock-skills -a claude-code1.2M
handoff
A·90mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
npx skills add mattpocock/skills --skill handoff -a claude-code1.2M