How to Build Custom Claude Skills: A Step-by-Step Guide
In this article
Custom Claude Skills let you package reusable instructions, prompts, and even code into a single file that Claude can load and use on demand. This guide walks you through creating your first skill, from planning to testing, so you can stop re-typing the same context and start working faster.
What You'll Need
- A Claude account (Pro or API access) with the ability to use Skills.
- A text editor (VS Code, Notepad++, or even plain Notepad).
- Basic familiarity with Markdown and JSON (helpful, not strictly required).
- Optional: A folder on your computer to organize your skill files.
Step-by-Step
- Decide what your skill will do. Pick one specific task, like "summarize meeting notes" or "generate SQL queries from plain English." A narrow focus makes the skill easier to write and more reliable.
- Create a new folder for your skill. Name it something descriptive, like
meeting-summarizer. Inside, you'll create two files:SKILL.mdandinstructions.md(you can name the second file anything, butinstructions.mdis a common convention). - Write the SKILL.md manifest. This file tells Claude what the skill is and where to find its instructions. Use this template:
--- name: meeting-summarizer description: Summarizes meeting transcripts into action items and key decisions. Use when the user provides a meeting transcript or asks for a summary. ---
Thenamemust match your folder name (lowercase with hyphens). Thedescriptionshould be a clear, specific sentence that tells Claude when to use this skill. - Write the instructions.md file. This is the heart of your skill. Write step-by-step instructions for Claude to follow. Be explicit about the input, the output format, and any rules. For example:
# Meeting Summarizer You are given a meeting transcript. Perform these steps: 1. Identify the main topic of the meeting. 2. List all action items, with the person responsible if mentioned. 3. List key decisions made. 4. Format the output as:
The more precise your instructions, the more consistent Claude's output will be.Summary
(2-3 sentences)Action Items
- [ ] Task (Owner)Decisions
- Decision 1 - Decision 2 - Save both files in the skill folder. Make sure the folder name and the
namefield in SKILL.md match exactly. For example, if your folder ismeeting-summarizer, thenamemust bemeeting-summarizer. - Upload or link the skill to Claude. Depending on your interface, you can either upload the folder directly or provide a path to it. In the Claude desktop app or web, look for the "Skills" section in settings or the project configuration. Follow the prompts to add your folder.
- Test your skill. Start a new chat and try a sample input that matches your skill's purpose. For the meeting summarizer, paste a short transcript and see if Claude follows your instructions. Check the output format and the accuracy of the extracted items.
- Refine and iterate. If the output is off, edit the instructions.md file. Add more examples, clarify ambiguous steps, or tighten the output format. Re-upload and test again. Repeat until you're happy with the results.
Common Mistakes
- Folder name mismatch: The
namein SKILL.md must exactly match the folder name. Even a capital letter difference can cause the skill to not load. - Vague descriptions: If your
descriptionis too broad (e.g., "helps with writing"), Claude might not trigger the skill when it should. Be specific about the exact scenario. - Overloading the skill: Trying to make one skill do too many things. Keep it to a single, well-defined task.
- Ignoring the output format: If you don't specify a format, Claude will improvise, and you'll get inconsistent results. Always define the structure you want.
- Not testing with real examples: A skill might work in theory but fail on actual input. Always test with realistic data.
Tips
- Use examples in your instructions: Show one or two input-output pairs. This is the fastest way to teach Claude the expected behavior.
- Keep instructions short and direct: Claude follows instructions better when they're concise. Use bullet points and numbered steps.
- Version your skills: Keep a copy of each version of your instructions file. If a change makes things worse, you can revert.
- Combine skills: You can reference other skills in your instructions, but keep the dependency clear and documented.
- Test edge cases: Try inputs that are too short, too long, or missing expected fields. Adjust your instructions to handle these gracefully.
Troubleshooting
- Skill not loading: Check that the folder name and the
namefield match exactly, and that the SKILL.md file is valid YAML (no tabs, proper spacing). Also ensure the file is named exactlySKILL.md(uppercase). - Claude ignores the skill: Your
descriptionmight not match the user's request. Rewrite it to include keywords that the user would naturally use. For example, if your skill is for SQL, include "SQL", "query", "database" in the description. - Output is inconsistent: Add more structure to your instructions. Use a strict template and say "always output in this exact format." Consider adding a short list of "do not" rules.
- Skill works but is slow: If your instructions are very long, it may take longer to process. Try to trim unnecessary text.
- Cannot upload the folder: If your interface only allows single files, try zipping the folder and uploading the zip. Some platforms accept a compressed archive.
Frequently Asked Questions
- Can I use code in a skill? Yes, you can include small code snippets in the instructions, and Claude can execute them if you have the right tools enabled. But the skill itself is mainly for instructions.
- How many skills can I have? It depends on your plan and interface, but generally you can have many. Just keep them organized with clear names.
- Can I share my skill with others? Yes, you can share the folder. Make sure the instructions are self-contained and don't reference local files that others won't have.
- What if my skill needs external data? You can include a small dataset in the folder, but keep it small. For large data, consider having the skill instruct Claude to ask the user to paste the data.
- Can I update a skill after uploading? Yes, simply edit the files and re-upload. The new version will replace the old one.
- Do skills work on the mobile app? Skills are primarily designed for desktop and web. Mobile support may vary, so check the latest documentation.