Skills are commands with frontmatter and friends
A custom slash command is a single markdown file. A Skill is the same thing with structure — frontmatter for configuration, a folder for supporting files, and an opt-in to auto-invocation. Both produce a /skill-name; Skills add reach.
The frontmatter knobs that matter: invocation: explicit|auto|disabled controls when Claude can use the skill. arguments: declares named args you reference as {{name}}. paths: loads supporting files into the skill's context. model: overrides the model for that skill alone. subagent: true runs the skill in an isolated context window.
The bundled Skills are the best way to learn the pattern: /batch orchestrates parallel refactors across worktrees, /simplify reduces complexity without changing behavior, /loop runs prompts on a schedule inside the session, /debug turns up logging, /claude-api auto-loads the SDK reference when it sees an Anthropic SDK import.