Three Slash-Command Types
- Entity ID:
ent-20260420-threecmdtypes1 - Type:
concept - Scope:
shared - Status:
active - Aliases: PromptCommand, LocalCommand, LocalJSXCommand, command type taxonomy
Description
Claude Code slash commands are one of three types. PromptCommand formats a prompt and hands it to the LLM with injected tools (e.g. /review, /commit). LocalCommand runs in-process and returns plain text (e.g. /cost, /version). LocalJSXCommand runs in-process and returns React JSX (e.g. /doctor, /install). All three share the satisfies Command registration pattern in src/commands.ts.
Key claims
- Slash commands come in three distinct runtime types
Relations
- Command System --[contains]--> Three Slash-Command Types