solidcodersolidcoder
AI TopicsExplore Courses
solidcodersolidcoder

Practical courses for software engineering interviews — no gatekeeping, no fluff.

AI Engineering

  • How AI Actually Thinks
  • Prompt Engineering
  • Connection Layer (MCP)
  • Skills

Explore

  • Courses
  • AI Engineering Topics
  • About
  • Privacy Policy
  • Terms

© 2026 solidcoder · Practical courses for software engineering interviews.

Built for the AI era — learn by doing.

Home/AI Engineering/Skills/The Anatomy of a Skill File
Chapters — Skills▾

The Anatomy of a Skill File

6 min read·Sep 6, 2026
Keywords:Claude Code Skills

What a Skill actually looks like on disk: a folder, a short frontmatter block, and a body of plain instructions.

It's simpler than it sounds

After the last two chapters, a Skill might sound like some special piece of engineering. It isn't. Strip away the concept and what's left is genuinely simple: a folder, containing one file, written in the same kind of plain document you'd write a set of instructions in for a new coworker.

my-skill/
  SKILL.md

That's the minimum. Everything else, extra reference files, scripts, examples, is optional, added only when a skill genuinely needs more than one page can hold.

Two parts inside that one file

SKILL.md has two pieces: a short frontmatter block at the very top, and the actual instructions below it.

---
name: pr-review-checklist
description: Use when reviewing a pull request, to apply this team's standard review checklist consistently.
---

## What to check, in order

1. Does the change include a test for the new behavior?
2. ...
Frontmatter (name + description)
The lightweight summary shown in a listing, used to decide relevance before anything else loads. This is the part covered in the previous chapter.
Body
The actual instructions, checklists, or reference material, read in full only once this skill has already been picked.

Why the split matters

Separating a short summary from the full body is what makes the matching from the last chapter cheap. Deciding relevance only requires reading name and description, a few lines, across every available skill. The potentially long body only gets read for the one skill that actually matched. Without that split, deciding what's relevant would require reading everything, every time, which defeats the purpose of having separate, focused skills in the first place.

A skill can be more than one file

Once a skill's instructions grow past what fits comfortably on one page, it's common to keep the main SKILL.md short and move deeper material into additional files alongside it, referenced from the main file by name. The next few chapters cover exactly when and how to do that.

Look at one for real

If you have access to any existing Claude Code skills, open one up and find its frontmatter. Read just the name and description, nothing else, and ask yourself: could I guess what this skill is for from those two lines alone? That's the exact test a real match has to pass.

Key concepts in this chapter

  • Agent Skills
Up next3/3
Part 1 · Basics
←
← Prev Chapter
How Claude Decides to Use One
6 min
Next Chapter →
Writing a Description That Actually Triggers
7 min · continue reading
→
Part of a free guide

Skills

A simple guide to Claude Code Skills: what they are, and how to build your own.

Browse All Guides →
On this page
  • It's simpler than it sounds
  • Two parts inside that one file
  • What to check, in order
  • Why the split matters