Skip to content

Practical lesson

How to write a SKILL.md file for Claude Code and other agents

A skill is a folder with a SKILL.md file: a short header that says when to use it, then the instructions. The agent reads the header up front and loads the rest when a task matches.

The two parts of the file

The file starts with YAML frontmatter between two lines of three dashes. Below it is ordinary Markdown with the steps the agent should follow.

The Agent Skills specification requires two fields. name is at most 64 characters, using lowercase letters, numbers and hyphens, and matches the folder name. description is at most 1024 characters and says what the skill does and when to use it.

Where Claude Code looks for it

Save a personal skill to ~/.claude/skills/<skill-name>/SKILL.md and it is available in all your projects on that machine. Save a project skill to .claude/skills/<skill-name>/SKILL.md and commit it so your team gets it too.

Claude can use a skill on its own when a request matches the description, and you can run it directly with /skill-name.

Write a description that gets picked

The description is what the agent sees before it opens the file. Name the task and the words a person would type. “Helps with PDFs” gives an agent little to match. “Extract text from PDF files, fill forms and merge files. Use when handling PDFs” gives it three actions and a trigger.

Keep actions that cannot be undone behind a question

Write down which steps change something outside the project, such as publishing, sending or paying, and tell the agent to ask first. Our toolfound-launch skill does this for submit, verify, claim and relaunch. You can read the whole file at https://toolfound.com/skills/toolfound-launch/SKILL.md and install it from https://toolfound.com/mcp/skill.

Limitations

  • A skill is instructions, not a permission system. Your client's permission settings still decide what the agent may run.
  • Read a skill from someone else before installing it. It can ask the agent to run commands.
  • Other agents may support a different set of frontmatter fields than Claude Code.

Primary sources

Browse the free toolkit for the next step.