xiaohongshu
xiaohongshu
claude-code-mechanism-selector
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.
Full skill instructions
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:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience