Claude Code Cheat Sheet: Skills Edition
Quickly look up SKILL.md frontmatter keys, directory layouts, slash commands, environment variables, and trigger rules.
~6 min read
When you are actively building Claude skills, you do not want to re-read long tutorials just to check whether a frontmatter key uses a hyphen or an underscore, or whether personal skills override project skills.
Here is the definitive quick-reference cheat sheet for skill authors: frontmatter schemas, directory hierarchies, character budgets, slash commands, and essential environment variables.
SKILL.md frontmatter reference
There are two specifications to keep in mind: the universal open standard (portable across all agent tools) and the Claude Code extended fields.
Directory resolution hierarchy
When skills share the same name, Claude Code resolves them using strict precedence order:
- Enterprise managed: `/etc/claude-code/.claude/skills/` (overrides all user settings).
- Personal skills: `~/.claude/skills/<name>/SKILL.md` (available across all projects).
- Project skills: `.claude/skills/<name>/SKILL.md` (scoped to current repository).
- Plugin skills: `<plugin>/skills/<name>/SKILL.md` (namespaced as `plugin-name:skill-name`).
Essential session commands and shortcuts
- /skills: Lists all skills currently indexed and available in the active session.
- /permissions: Displays active permission mode and allow/deny rules.
- /compact [note]: Compresses transcript history while retaining key task context.
- /clear: Resets conversation history completely while keeping CLAUDE.md and skills active.
- /doctor: Runs system integrity checks on Node, Git, permissions, and skill manifests.
- Shift+Tab: Cycles permission modes between Normal, Auto, and Bypass.
Environment variables reference
Useful environment variables for configuring advanced agent behavior:
- ANTHROPIC_API_KEY: Authenticates non-interactively in CI/CD and headless runner pipelines.
- CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH: Controls subagent nesting limits (defaults to 3).
- CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS: Caps simultaneous background subagent workers (defaults to 20).
Get new guides in your inbox
One task, one guide, done fast. Practical Claude Code skills, zero noise.


