# When should I use a Claude Code slash command, Skill, or custom subagent?

Exam: CCDV-F — Claude Certified Developer - Foundations
Knowledge domain: Claude Code
Updated: 2026-11-25T08:30:01.491149+00:00
HTML: https://learningpathx.com/faq/CCDV-F/ccdvf-claude-code-skills-commands-agents.html

## Also asked as

- 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?

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.

* [Claude Code built-in commands](https://code.claude.com/docs/en/commands)
* [Extend Claude Code with Skills](https://code.claude.com/docs/en/skills)
* [Claude Code custom subagents](https://code.claude.com/docs/en/sub-agents)

Source: [Claude Code Operation, Configuration, and Extension Surfaces](https://learningpathx.com/news/claude-code-operation-configuration-and-extension-surfaces.html)
