Module 25

Claude Code Skills

Last updated 2026-06-02

Key points

Lesson 1: What is Claude Code Skills and why it matters

Claude Code Skills are reusable instruction sets that make your AI behave like a specialist. A skill is a markdown file (a simple text file with formatting) that teaches Claude how to handle a specific task. It contains a description and instructions. The critical thing is you don't type a command to trigger it. Claude reads your request, compares it to all available skill descriptions, and activates the right one automatically. So your AI loads exactly the right expertise at exactly the right moment without you typing a single command.

This matters because most beginners try to write skills manually and immediately hit a wall. They don't know the structure or what makes a skill reliable versus flaky. So they either give up or cobble something together that breaks. A skill creator removes all that headache. For example, a skill called "superpowers" forces Claude to work like a senior developer: instead of jumping into code, it steps back and plans the whole thing first, writes tests, and works in an isolated environment so nothing breaks your main project.

The bottom line is that each skill makes Claude noticeably better at its job. The harness—what Anthropic calls the system controlling how Claude performs—matters more than the AI model alone. Skills are what let you load precise expertise without typing commands, turning Claude into a tool that thinks first and writes code second.

Sources

Lesson 2: How to use Claude Code Skills: step-by-step

A skill in Claude Code is a markdown file (a plain-text file using simple formatting symbols) that teaches the AI how to do a specific job. Instead of typing a special command, you just describe what you want. Claude automatically reads your request, compares it to all available skill descriptions, and activates the right skill for the task.

To create a skill, navigate to your project folder and open a `.claude` folder. Inside, create a `skills` folder, then add a markdown file. The file includes a name, a description telling Claude when to use the skill, and step-by-step rules (the instructions). For example, you might name a skill "Excalraw-Diagram" with a description like "creates a diagram using Excalraw" and instructions detailing how to produce the diagram step by step.

A practical way to build a skill is to work through a process with Claude first. For instance, if you walk Claude through a daily task from start to finish, you can then say, "Let's turn this into a skill. Ask me more questions so you have all the information you need." Claude will then help you formalize the steps into a reusable skill.

When you use a skill, Claude tells you it is invoking it. This process improves Claude’s consistency and speed because it loads only relevant instructions. Skills can also be bundled into larger packages called plugins, which may include hooks (scripts that run on events) or MCP servers—allowing deeper changes to how Claude behaves.

Sources

Lesson 3: Best practices and pitfalls

When writing Claude Code skills, beginners often hit two common pitfalls. First, they try to write skills (reusable instruction sets that Claude follows) manually without knowing the proper structure. This leads to flaky skills that break easily. One transcript notes that most beginners "don't know the structure" or "what makes a skill reliable versus flaky," so they "cobble something together that breaks the second a client touches it." Second, users frequently fail to confirm that Claude actually invokes the skill during a session. As one creator explains, "every time Claude code invokes a skill, it will tell you that it does," so you must watch for that confirmation and stop the generation if it doesn't call the skill.

Another major mistake is not cleaning up failed attempts. When Claude produces broken code, many users simply say "That didn't work. Try this instead." The transcript warns that "that failed attempt, that broken code... is still sitting in your context," bloating future responses with bad history.

Best practices solve these issues. Instead of hand-writing skills, use a skill creator tool to remove the headache of structure. The "superpowers" skill forces Claude "to work the way that a senior developer works," stepping back to plan first, working in a sandbox (isolated environment) so nothing breaks your main project, and writing tests before code. This approach mirrors how 90% of Claude Code was written by Claude Code itself, with the project lead not hand-editing a single line since November. Always write a clear name and description for each skill, plus step-by-step rules that tell Claude exactly what to do when it selects that skill.

Sources