Files
claude-code-best-practice/best-practice/claude-skills.md
T
Shayan Rais 914c1b5e2f workflow changelog runs for settings, commands, skills, subagents, and concepts — v2.1.79
Settings: added 3 ANTHROPIC_CUSTOM_MODEL_OPTION env vars, fixed sandbox path
prefix convention (/ = absolute, ./ = project-relative, // = legacy), updated
CLAUDE_CODE_PLUGIN_SEED_DIR for multi-directory support, expanded
CLAUDE_CODE_AUTO_COMPACT_WINDOW description. Commands, skills, subagents,
concepts: no drift detected. All badges updated to v2.1.79.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-19 12:50:01 +05:00

2.6 KiB

Skills Best Practice

Last Updated
Implemented

Claude Code skills — frontmatter fields and official bundled skills.

← Back to Claude Code Best Practice Claude

Frontmatter Fields (10)

Field Type Required Description
name string No Display name and /slash-command identifier. Defaults to the directory name if omitted
description string Recommended What the skill does. Shown in autocomplete and used by Claude for auto-discovery
argument-hint string No Hint shown during autocomplete (e.g., [issue-number], [filename])
disable-model-invocation boolean No Set true to prevent Claude from automatically invoking this skill
user-invocable boolean No Set false to hide from the / menu — skill becomes background knowledge only, intended for agent preloading
allowed-tools string No Tools allowed without permission prompts when this skill is active
model string No Model to use when this skill runs (e.g., haiku, sonnet, opus)
context string No Set to fork to run the skill in an isolated subagent context
agent string No Subagent type when context: fork is set (default: general-purpose)
hooks object No Lifecycle hooks scoped to this skill

Official (5)

# Skill Description
1 simplify Review changed code for reuse, quality, and efficiency — refactors to eliminate duplication
2 batch Run commands across multiple files in bulk
3 debug Debug failing commands or code issues
4 loop Run a prompt or slash command on a recurring interval (up to 3 days)
5 claude-api Build apps with the Claude API or Anthropic SDK — triggers on anthropic / @anthropic-ai/sdk imports

See also: Official Skills Repository for community-maintained installable skills.


Sources