LongCut logo

Creating your first skill

By Claude

Summary

## Key takeaways - **skill.md needs three parts**: A skill is a directory containing a skill.md file with a name, a description (the matching criteria), and instructions after the second dashes that Claude follows. [00:41], [00:58] - **only metadata loads at startup**: Claude Code scans four skill locations at startup but loads only the name and description of each skill, not the full file content, which keeps startup fast and matters later. [01:33], [01:46] - **description drives skill matching**: Claude compares your request to skill descriptions, so an ask like 'Explain what this function does' matches a skill described as 'explain code with visual diagrams' through overlapping intent. [01:40], [01:59] - **confirmation gates full skill load**: After matching a description, Claude asks you to confirm before loading the complete skill file, which keeps you aware of what context is being pulled in. [01:53], [02:06] - **enterprise beats personal beats project**: When skill names collide, priority is enterprise (managed settings) > personal (root directory) > project (repo's .claude folder) > installed plugins, letting organizations enforce standards while still allowing individual customization. [02:11], [02:42] - **descriptive names prevent conflicts**: Use specific names like 'front-end PR review' or 'security review' instead of generic ones like 'review', and always restart Claude Code after editing or deleting a skill.md for changes to take effect. [02:50], [03:11]

Topics Covered

  • The Description Is Your Skill's Matching Criteria
  • Skills Are Lazy-Loaded by Description Match
  • Enterprise Always Wins, Names Prevent Conflicts

Full Transcript

So, let's create a skill. This skill

will teach Claude how we would like it to explain code using visual diagrams and analogies. [music]

and analogies. [music] Then, we'll look at what happens under the hood when Claude uses it.

First, [music] let's create a directory for your skill. We're going to be making a personal skill, so it'll live in many projects, so it will go in your home directory. Take into consideration that

directory. Take into consideration that we're creating a directory with the skill name inside of the skills directory.

Now create the skill.

The name identifies your skill. The

description tells Claude when to use it.

This is the matching criteria. And then

everything after the second dashes is the instructions that Claude follows.

Cloud code loads skills at startup. So

restart your session. Then verify it's available.

You should see PR description in the list.

Now test it. Make some changes on a branch and say, "Write a PR description for my changes."

Claude will then show you that it's using the PR description skill.

After that, it'll check your diff and write a description following your template. Same format every single time.

template. Same format every single time.

When Cloud Code starts, it scans four locations for skills. Enterprise paths,

your personal Claude skills, the project's Claude skills, and installed plugins. It loads only the name and

plugins. It loads only the name and description of each skill, not the full content. This is important later. When

content. This is important later. When

you send a request, Claude compares it to the descriptions of your skills.

Explain what this function does matches a skill described as explain code with visual diagrams because the intent overlaps. It will then ask you to

overlaps. It will then ask you to confirm loading up the skill. This

confirmation step keeps you aware of what context Claude is using. After you

confirm, Claude reads the complete file and follows its instructions. Now, let's

say you clone a Git repository and have an overlapping skill name. Well, which

one wins? Here's the priority list. The

highest is enterprise, which lives in the manage settings. Two is the personal, which lives in your root directory configuration like we're doing right now. Three is the project which is

right now. Three is the project which is the claw directory inside of your repository. And the lowest is the

repository. And the lowest is the plugins where you store your plugins that you got online. This lets

organizations enforce standards while allowing individual customization through differently named skills. If

your company has an enterprise code review skill and you create a personal code review skill, the enterprise version of that takes precedence. To

avoid conflicts, use descriptive names.

Instead of review, use front-end PR review or security review. To update a skill, edit it skill.md file. Simple. To

remove one, delete its directory.

Restart clock code after changes for them to take effect.

Creating a skill means making a directory with a skill.md file

containing metadata and instructions.

Claude loads skill names and descriptions at startup. matches

incoming requests against those descriptions and asks for confirmation before loading the full content.

Priority rules handling name conflicts.

Enterprise overrides personal personal overrides project overrides plugins.

[music] Edit the skill.md file to update a skill and restart cloud code for changes to take effect.

Loading...

Loading video analysis...