slash-commands
2 questions
- AI
How do I pass arguments to my custom slash command?
Use `$ARGUMENTS` for the whole input, `$0`/`$1`/`$ARGUMENTS[N]` for positional, or named placeholders via the `arguments` frontmatter list. Multi-word values need quotes. Inline `!`shell`` expands before Claude sees the prompt unless you have disabled skill shell execution.
- AI
How do I add my own /command to Claude Code?
Drop a SKILL.md file in .claude/skills/your-command/. Edits hot-reload in the current session, but creating the skills directory for the first time needs a restart. Slash commands and skills are now the same feature; the .claude/commands/ path still works but skills add the features you actually want.