Helps choose the right Claude Code extension mechanism (slash commands, skills, subagents, or hooks) for a given use case. Use when discussing how to extend Claude Code, automate workflows, or implement custom functionality.
This skill helps you choose the right extension mechanism for Claude Code based on your requirements.
Ask these questions to determine the best mechanism:
/command)| Criteria | Slash Commands | Skills | Subagents | Hooks |
|----------|---------------|--------|-----------|-------|
| Invocation | User (/cmd) | Automatic | Automatic or explicit | System events |
| Complexity | Single file | Multi-file | Separate context | Shell commands |
| Control | Explicit | Context-based | Task-based | Deterministic |
| Files | .md only | SKILL.md + resources | .md with frontmatter | JSON config |
| Scope | Project or user | Project or user | Project or user | Project or user |
Best for quick, repeatable prompts you want explicit control over.
Examples:
/review - Review code for bugs/explain - Explain code in simple terms/commit - Generate commit messageSee commands.md for details.
Best for complex capabilities that should activate automatically.
Examples:
See skills.md for details.
Best for specialized tasks requiring isolated context or custom AI behavior.
Examples:
See subagents.md for details.
Best for deterministic actions that must always happen.
Examples:
PostToolUse)PreToolUse)PreToolUse)Notification)See hooks.md for details.
| Use Case | Best Mechanism | Why | |----------|---------------|-----| | "Format code after every edit" | Hooks | Deterministic, must always run | | "Quick prompt for code review" | Slash Command | Simple, explicit invocation | | "Comprehensive code review system" | Skill or Subagent | Complex, needs structure | | "Isolate research from main context" | Subagent | Needs separate context window | | "Auto-detect when to apply style guide" | Skill | Should activate automatically | | "Log all commands for compliance" | Hooks | Must run every time, deterministic | | "Block production file edits" | Hooks | Security rule, must be enforced |
These mechanisms complement each other:
npx skills add jaeyeom/claude-code-mechanism-selector下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer