A Claude Code skill is a directory containing SKILL.md, with optional supporting files. Use it for a repeatable task with a clear trigger, useful steps and observable results. A short skill can be only instructions; scripts are optional.
Current skill documentation reviewed November 7, 2026. Triggering is behavior to evaluate, not a guaranteed activation percentage.
Start with a small folder
.claude/skills/check-settings/
SKILL.md
references/
expected-states.md
The official skills documentation describes current discovery, frontmatter and invocation controls. It also explains that legacy custom commands and skills now share invocation behavior. Do not choose between them based on an outdated claim that every skill must contain a script.
Write a focused skill
---
name: check-settings
description: Verify the account-settings screen after changes to its fields, save behavior, validation or dialogs.
disable-model-invocation: true
---
# Check account settings
1. Read the task and identify the states the change affects.
2. Use the existing local test commands and development URL.
3. Read references/expected-states.md.
4. Inspect desktop and narrow layouts, keyboard use and focus.
5. Exercise successful save, failed save and duplicate submission.
6. Check open menus and dialogs for repeated details or actions.
7. Report actual results, screenshots and any unavailable check.
Use disposable data. Do not deploy or modify production accounts.
This original example opts into manual invocation so a longer verification run starts deliberately. Remove that control only if automatic selection is appropriate and you have evaluated its behavior. Adapt the fields to your client; not every Claude-specific extension is portable.
Give supporting files a purpose
expected-states.md could describe the unchanged form, saving state, validation error and successful save. A script can run a deterministic check when that is useful. Keep scripts bounded and make their exit status meaningful.
Reference files by their actual path in the skill. Avoid copying large documents into the body merely so they are always present. Keep durable repository facts in project instructions, and use AGENTS.md for shared policy where the clients support it.
Evaluate trigger and outcome separately
Test a few realistic requests that should use the skill and a few that should not. If it is manual-only, invoke it explicitly and verify that the body and referenced files are found. Record what loaded rather than assuming that a good description guarantees activation.
Then inspect the output. Did it run the relevant command? Did it check the failed state? Did it preserve the account's data? A selected skill that produces an inaccurate success report has still failed its purpose.
The verification walkthrough gives a fuller evidence-oriented example. It is an adaptation pattern, not a universal app test suite.
Keep the procedure maintainable
Use clear preconditions, scope and completion evidence. When a script changes, update the reference in the same review. When a manual step becomes an automated check, remove the duplicate instruction. Do not put secrets or reusable production credentials in the folder.
A skill helps organize work. It does not grant access, guarantee a model follows every step or replace CI. Keep independent checks for requirements that must be enforced regardless of which assistant performs the task.