Scroll AI Now

How to write an agent skill (SKILL.md) that works

Write a SKILL.md an AI agent actually uses: the name and description rules, how long it should be, when to split files, and how to test it before you share it.

Short answerGive the skill a short lowercase name and a third person description that says what it does and when to use it. Keep the body under 500 lines, link extra detail one level deep, and test it on three real tasks before and after.

The two lines that decide everything

An agent reads only the name and description of every skill it has. It opens the rest when a request matches.

So the description is the trigger. If it is vague, the skill never runs.

A small example

A skill is a folder with a SKILL.md file inside. This one is complete:

Top of the filename: writing‑release‑notes
description: Writes release notes from a list of merged pull requests. Use when the user asks for release notes, a changelog or a summary of what shipped.
BodyGroup changes into New, Improved and Fixed. One line per change, in plain words. Leave out internal refactors. End with the version number and the date.

Anthropic suggests names in the form of an action, like writing‑release‑notes or analyzing‑spreadsheets. Avoid vague names such as helper or tools.

Write less than you think

Anthropic’s advice is to add only what the model does not already know.

Skip explanations of common tools and file types. Spend the words on your rules, your format and your edge cases.

Match how strict you are to how fragile the task is.

Offer one default way to do something, not a list of five tools to pick from.

Keep it short and split the rest

Anthropic recommends a SKILL.md body under 500 lines.

Move long detail into separate files in the same folder, such as REFERENCE.md or EXAMPLES.md, and link them from SKILL.md. The agent opens them only when it needs them.

Test it before you share it

  1. Pick three real tasks the skill should handle.
  2. Run them without the skill and note what goes wrong.
  3. Write the smallest skill that fixes those problems.
  4. Run the same three tasks again in a fresh chat with the skill installed.
  5. Watch which files the agent opens. A file it never reads is either badly linked or not needed.

If you use several models, test on each one. A small model may need more guidance than a large one.

Learn from skills that already work

Reading good skills is the fastest way to learn the format.

Every agent skill on Scroll AI Now shows its full text, its author and its license. Start with one close to your task and compare its description with yours.

To install a finished skill, follow how to use an AI agent skill in Claude and ChatGPT.

Try it in your browser

Today's AI news, one card per swipe.
Free to start.

Open the web app