Study FAQ
When should I use a Claude Code slash command, Skill, or custom subagent?
Also asked as 2
- Which Claude Code extension should I choose for reusable instructions or delegated work?
- How do I choose between a built-in command, a reusable Skill, and an isolated subagent in Claude Code?
Answer
Use a built-in slash command for an explicit session action such as inspecting context. Use a Skill when you want a reusable workflow with instructions and reference files. Use a custom subagent when a bounded task needs its own working context, role-specific instructions, or narrower tool access.
A Skill can be invoked by a user or discovered by Claude, subject to its configuration. Put the core procedure and validation checks in SKILL.md, keep larger references separate, and review any commands and supporting scripts the Skill can lead Claude to use. Current Claude Code loads custom commands in .claude/commands/ as Skills. New reusable workflows can use the Skill directory layout for supporting files and invocation controls.
Configure a subagent’s role and permitted tools explicitly and give it a checkable result contract. An ordinary linear workflow often fits a Skill in the main session. Use supported settings, permissions, or event hooks when you need an enforced policy or an action at a specific lifecycle boundary.
Full explanation
Claude Code Operation, Configuration, and Extension Surfaces
Study guide · CCDV-F
Read the full explanation