Wink Pings

Anthropic divides hundreds of internal skills into nine categories; whatever doesn't fit usually has a problem

The Claude Code team organized hundreds of internal skills and summarized them into nine categories. The classification itself can diagnose problems, and several other practices are counterintuitive: repeat less of what the model already knows, gotchas are worth more than tutorials, and descriptions should be written for the model to read.

Anthropic's Claude Code team reviewed hundreds of internal skills in a blog post. The author is Thariq Shihipar, and the article is titled Lessons from building Claude Code: How we use skills. The person who promoted this tweet said that if you are building skills, it is worth rereading.

They first did something that looked dumb: spread out hundreds of skills and categorized them. In the end they grouped them into nine categories. If a skill cannot be cleanly placed into one category, it usually means it is trying to do too many things, or the problem it is meant to solve has not been clearly defined. This judgment is more useful than the nine-category list. The list can be used to find gaps in your own skill library.

Claude Code internal skills nine-category classification

The nine categories are:

  • Library and API reference: explains how to correctly use libraries, CLIs, and SDKs, with reference code and common pitfalls.
  • Product verification: verifies whether functionality actually works, often with tools such as Playwright and tmux. Internal experience is that verification skills have the greatest impact on Claude's output quality and are worth having an engineer spend a week polishing.
  • Data fetching and analysis: connects to data sources and monitoring stacks to help fetch data and interpret results.
  • Business process and team automation: turns repeated team processes into a single command.
  • Code scaffolding and templates: generates components, migrations, and application skeletons according to project conventions.
  • Code quality and review: enforces code standards and catches problems.
  • CI/CD and deployment: pulls, pushes, deploys, and monitors changes.
  • Runbooks: given an alert or error signature, investigates using known tools and steps and produces a structured report.
  • Infrastructure operations: performs routine maintenance with safeguards.

A user said in the tweet thread that if you don't know where to start, first pick one task that repeats every week and turn it into a skill. Run it for a week and you will immediately know whether it is useful. This starting point is more reliable than building a skill marketplace first.

The article also has several counterintuitive details.

Skills are often misunderstood as a single markdown file. In reality, a skill is a folder that can contain scripts, assets, and data, which Claude can discover, browse, and operate. In Claude Code you can also configure dynamic hooks.

Don't write things Claude already does by default. It can already write code and read your codebase. If a skill mainly restates default behavior, it only adds context and no value. The frontend design skill is an example. Anthropic engineers and customers iterated repeatedly to make it avoid default aesthetics such as the Inter font and purple gradients.

The highest-signal content is the Gotchas section. This section should grow out of the failure points Claude encounters when using the skill, and then be continuously updated. For example: the subscriptions table is append-only, and the row you want is the one with the highest version, not the one with the latest created_at; this field is called @request_id in the API gateway and trace_id in the billing service, and they are the same value; staging returns 200 even if the Stripe webhook was not processed, and you have to look at payment_events to know the real status.

The Gotchas in the Billing Lib skill grew from one line to four lines

Use the filesystem and progressive disclosure. SKILL.md can act as a hub, pointing to files such as stuck-jobs.md, dead-letters.md, and retry-storms.md. Tell Claude which files are in the skill directory, and it will read them at the right time. A simple approach is to put function signatures and usage in references/api.md and output templates in assets/.

SKILL.md points to scenario-specific files

Avoid tying Claude to steps. Give goals and constraints. For example, for cherry-pick, do not write six numbered git commands with every step hard-coded. Write clearly: cherry-pick the commit onto a clean branch, preserve intent when resolving conflicts, and if it does not land cleanly, explain why.

Write goals and constraints, not every step

Some skills need user configuration. For example, the standup skill needs to know which Slack channel to post to. Use config.json to store configuration, and if configuration is missing, have Claude ask the user. When a structured choice is needed, use the AskUserQuestion tool.

Have Claude ask when configuration is missing

Descriptions should be written for the model to read. When Claude Code starts a session, it lists all available skills and descriptions, and it uses this to decide whether a corresponding skill exists. Descriptions should include trigger conditions; summary-style writing is not very helpful. On the left, babysit-pr says comprehensive tool for monitoring pull request status across development lifecycle; on the right, it says Monitors a PR until it merges. Trigger on babysit, watch CI, make sure this lands. The right one is more likely to be triggered.

Skill descriptions should include trigger words

Help Claude remember. Append to standups.log each time you write something, and on the next run read the history to know what changed since yesterday. The environment variable ${CLAUDE_PLUGIN_DATA} provides a stable directory for storing data.

standups.log preserves history

Store scripts, and also let Claude generate code. Give it a small helper library and write data pitfalls into docstrings. Claude will write one-off scripts that combine these helpers to answer what happened on Tuesday.

The helper library writes data pitfalls into docstrings

Claude combines helpers to generate an investigation script

On-demand hooks are also worth using. careful intercepts rm -rf, DROP TABLE, force-push, and kubectl delete through PreToolUse, and only enables them when touching production. freeze prevents editing files outside specific directories, preventing accidental changes to unrelated code during debugging.

For distribution, small teams can just check skills into the repo under ./.claude/skills. At larger scale, build a plugin marketplace and let teams choose what to install. Every skill checked into the repo takes up a bit of context. Anthropic does not have a central team deciding which skills enter the marketplace. Someone uploads a skill to a GitHub sandbox and lets people try it in Slack. After it gains traction, the skill owner submits a PR to move it into the marketplace. Skills can reference each other by name, and the model will call them when installed. For measurement, use a PreToolUse hook to record skill usage and find popular skills and skills that are under-triggered.

The nine categories are not final. Under the tweet, a reader asked which category a phone-calling skill belongs to. Someone else asked why deterministic simulation testing did not make the list. Such questions precisely show that the classification is more like a diagnostic tool. It helps you see skill boundaries. When starting out, the original article's advice is very plain: most good skills start with only a few lines and one gotcha, and later when Claude hits new boundaries, people add to them.

Original article: https://claude.dev/blog/lessons-from-building-claude-code-how-we-use-skills/

Promoted tweet: https://x.com/dani_avila7/status/2127251195567726787

发布时间: 2026-12-01 02:35