Agent Skills: how to write a SKILL.md file and use your own skill in Claude Code
Build a Claude Code skill that checks a CSV estimate. Download the instructions, checker and sample files, test the numbers locally, and compare skills with prompts, MCP and plugins.

If you have explained the same estimate review to an AI assistant three times, you have a good candidate for an Agent Skill. A skill is a directory containing a SKILL.md file. It tells the assistant when to use a procedure, which inputs to request and what a complete answer should contain. You can keep a script, examples and reference material beside it. In Claude Code you can call a project skill by name instead of pasting the entire procedure into every conversation.
We made a skill called estimate-check for a familiar problem. A quote lists two captioning jobs at 490 each. The line says 940. The skill gives a small program the arithmetic and gives the assistant a clear reporting job: identify the row, show the difference and explain what needs checking. We verified that Claude Code discovered the installed skill and that the checker found the missing 40. You can repeat the calculation before paying for a model call. Download the skill, checker and three sample estimates.
What is an Agent Skill, and when is one worth writing?
Imagine that two members of a production team review quotes. One types “Does this look okay?” The other asks the assistant to recalculate every line and list discrepancies. They want the same outcome, but they have supplied different procedures. A skill can record the team's agreement: the input is a particular kind of CSV, each line has a unique ID, and any discrepancy must include the stated and expected amounts. A colleague can then trace the answer back to the original row.
The format lets a client advertise a skill's name and short description first and load the full instructions when the task calls for them. That makes description an important part of the interface. “Helps with documents” could describe dozens of tasks. “Recalculates quantities, unit prices and line totals in a CSV estimate before a quote is sent” tells the agent what evidence to look for. It also tells a human deciding whether to install the skill what the package is supposed to do. How Agent Skills work.
What goes in SKILL.md?
The file starts with YAML metadata between two --- lines. For a portable skill, provide name and description. The specification requires the name to match its directory, fit within 64 characters and use lowercase letters, numbers and single hyphens, with no leading or trailing hyphen. The description can be up to 1,024 characters. The rest is Markdown containing the procedure. A skill that supplies only editorial guidance can consist entirely of this one file. Agent Skills specification.
Here is an abbreviated version. The download contains the complete instructions for our example.
---
name: estimate-check
description: Check quantities, unit prices and line totals in a CSV estimate.
---
Ask for the estimate file. Run scripts/check.py on that file.
For each discrepancy, give its ID and the stated and calculated amounts.
If the input is incomplete, identify the problem and request a fresh export.
Our scripts directory contains check.py. The examples directory has three small CSVs. That is enough to repeat the exercise on a clean machine. When designing your own skill, include the cases in which processing should stop. A quote might apply a negotiated discount to its final line amounts while exporting only quantities and undiscounted unit prices. Multiplying those columns would flag perfectly legitimate differences. The assistant needs either a different export or a different rule before it can give the user a meaningful result.
Install the skill in Claude Code
- Create a separate practice project and open it in Claude Code. If you still need to set up the application itself, start with our Claude Code guide.
- Unzip the download and copy the entire
estimate-checkfolder into.claude/skills/inside the project. The resulting path should be.claude/skills/estimate-check/SKILL.md. Keepscriptsbeside the Markdown file. Copying only the instructions can leave the agent with a procedure that refers to a missing program. - For a clean first check, start a new session in that project. Type
/estimate-checkfollowed by the path to a file such as.claude/skills/estimate-check/examples/mismatch.csv. Ask it to show the result for every mismatched row. If the client asks to run Python, inspect the proposed command and the input filename. - Claude Code also supports a personal
~/.claude/skills/directory for procedures you need across projects. A project copy is convenient for a team because the instructions and helper can travel with the project at the same revision. Keep actual customer estimates out of the examples you distribute. Claude Code skill locations and invocation.
In our editorial test, we started Claude Code 2.1.128 in an isolated project three times and requested its list of supported commands. Before installation, estimate-check was absent. After copying the directory into place, it appeared. Removing the test copy and starting another session made it disappear. Networking was denied during this check, and no prompt was sent to a model. This lets us answer the discovery question independently of how a particular model might respond when asked to perform the review.
Check the estimate without a model
You will need Python 3.8 or later. Open a terminal in the extracted estimate-check directory, where you can see both scripts and examples. Run these commands one at a time. On Windows with the Python launcher installed, use py -3 in place of python3. The checker uses the standard library and requires no provider account or API key.
python3 scripts/check.py examples/clean.csv
python3 scripts/check.py examples/mismatch.csv
python3 scripts/check.py examples/duplicate.csv
The CSV has five fields: a unique ID, a description of the work, the quantity, the unit price and the stated line total. The header is id,item,qty,unit_price,line_total. The checker accepts positive whole quantities and nonnegative prices with up to two decimal places, using a decimal point. The estimate must use one currency. The program converts monetary amounts into integer minor units before multiplying, so two units at 0.10 yield exactly 0.20. Sales tax, exchange rates, spreadsheet formulas and contract rules are outside this example.
| Sample file | Observed result | What to do with it |
|---|---|---|
clean.csv |
MATCH, three items, total 5,481.50 |
The arithmetic agrees for the supplied columns |
mismatch.csv |
MISMATCH, ID L02, stated 940.00, expected 980.00 |
Review the difference of 40.00 before sharing the quote |
duplicate.csv |
INVALID, duplicate ID L01, no total |
Clarify the IDs and run the check on a corrected export |
In the second file, the first and third lines are 3,751.50 and 750.00. Add the stated 940.00 and the quoted lines sum to 5,441.50. Recalculate the second line and the expected total is 5,481.50. The skill defines the sign as expected minus stated. A positive 40.00 therefore means the export shows less than the line calculation. It does not establish which price was agreed with the customer. It gives the person who owns the quote a precise row and a question to resolve.
Test the format, the client and the result separately
We ran the checker from a fresh extraction of the same archive available for download. Across ten inputs, we tested the three sample estimates plus a fractional quantity, a quoted price with a decimal comma, a missing column, an extra column, a header-only file and a negative price. Each malformed case returned INVALID without a total. A valid file with a UTF-8 BOM and a comma inside a quoted item name passed. The input files were byte-for-byte identical before and after the check.
For the skill directory itself, we ran the reference tool skills-ref validate. It accepted the complete package and rejected a separate test copy missing the required description field. That gives us three distinct observations: the directory passed the format check, the client recognized the installed command, and the local checker produced the expected numbers. We did not test a paid model's answer on a real customer document. To evaluate yours, ask to see the checker output and compare it with a manual run of the same command. Reference Agent Skills validator.
Choose between a prompt, a skill, MCP and a plugin
A prompt is usually enough for a one-off document. It can specify today's exception, such as checking only editing work in a vendor's quote. When the procedure repeats every week, keeping it in SKILL.md makes the rule easier to review and share. If the project already has a general instruction file, keep everyday conventions there and put a long, task-specific procedure in the skill. That way the client can bring the longer material into context when somebody actually needs it.
A script earns its place when two runs on the same inputs must produce the same figures. MCP becomes relevant if you need the current values from an accounting system through a tool supplied by that system. A skill can explain when to use the tool. Access to the service and its credentials is configured separately. A plugin is a better match for extending the client itself, for example by adding a new tool or interface. Our MCP server guide explains the connection, and the DeepSeek Harness plugin tutorial shows a working extension.
Pricing and use in other clients
There is no separate charge for this example. You can download, read and test it locally. Asking a cloud model to run the procedure uses the terms of the client, subscription or API you connect. On November 30, 2026, Anthropic's public price page lists individual Claude Pro at $20 when billed monthly or $200 billed up front for a year. Those are subscription prices. The local Python command needs neither plan, which is useful if all you need is an arithmetic check on a batch of files. Claude pricing.
Clients can differ in where they search for skills and how the user invokes them. OpenCode, for example, documents .opencode/skills as a project directory and also recognizes project skills under .claude/skills. When moving a package, use a known sample and check that the script path resolves. If your assistant runs on another computer, the skill files and the input estimate need to be accessible in that environment. A path that opens your laptop's Downloads folder has no reason to work in a remote project. OpenCode skills documentation.
FAQ
Why can't Claude Code find my SKILL.md?
Check the current project and the extracted folder structure. An accidental estimate-check/estimate-check layer changes the path. The filename must be SKILL.md and the YAML needs its opening and closing delimiters. Open a new session after correcting the layout and try invoking the skill explicitly.
Can I download Claude Code skills from GitHub?
Yes. Find the skill directory, read the instructions and inspect any supporting files they call. Copy the dependencies along with the Markdown. Start with a practice document before using the skill on real work. Our guide to downloading from GitHub explains the difference between repository files, source archives and published packages.
Do I need to write code to create an Agent Skill?
No. A review checklist, interview questionnaire or house style procedure can be written entirely as metadata and Markdown. Our example includes code because its result can be checked by exact arithmetic. For your first skill, choose one task and two examples: one that should pass, and one that should produce a specific, useful objection.
Tools
Tools
Tools