Skip to content

Claude Code

Claude Code skills: teach it your way of working once

What a skill is in Claude Code, how to write a SKILL.md with a good description, where to put it, and when to choose a skill over a command or a subagent.

Talqeen wrote this article and no editor has reviewed it yet. Search engines do not see this page until it is reviewed.

Do you explain the same thing to Claude Code in every session? "Write the commit message like this", "check the migration with these steps". A skill is how you write that explanation once, so Claude Code uses it when it needs it.

What a skill is

A skill is a folder with a file named SKILL.md, and possibly other files that help it: templates, examples, references. The file starts with YAML frontmatter between two lines of dashes, with two key fields:

  • name: lowercase Latin letters and hyphens, such as commit-messages.
  • description: what the skill does and when to use it.

Then comes the skill itself in Markdown: steps, rules and examples.

Why the description matters most

Claude Code does not read every skill's body at the start of a session. It reads the names and descriptions, then opens a skill in full when your task matches its description. The description decides whether the skill is used at all.

  • Weak: "Commit helper."
  • Good: "Writes commit messages in Conventional Commits format with the requirement code. Use it when the user asks for a commit or a commit message."

Where to put it

  • In the project: .claude/skills/<name>/SKILL.md, committed and shared with the team.
  • For you only: ~/.claude/skills/<name>/SKILL.md, available in all your projects.

A full example

---
name: commit-messages
description: Writes Conventional Commits messages with the requirement code. Use it when a commit is requested.
---

# Commit messages

1. Read the staged changes with `git diff --staged`.
2. Pick the type: feat, fix, docs, refactor or test.
3. Write a first line of at most 72 characters, in the imperative.
4. End the line with the requirement code in brackets, such as [REQ-3].

Skill, command or subagent?

  • A slash command (such as /review) is one you call by name.
  • A skill is chosen by Claude Code when your task matches its description.
  • A subagent works in a separate context, which suits a long task you do not want filling your main conversation.

Mind what you install

A skill can contain scripts that Claude Code runs. Do not install a skill from a source you do not know before reading all its files. In Talqeen's library, every item with scripts or hooks carries a clear warning before the download button, and Talqeen itself never runs any of them.