TipsLesser-known
Custom slash commands (.claude/commands)
A single markdown file becomes a /name command.
Usage
.claude/commands/deploy.md → /deploy
When to use it
When you want to save a prompt you repeat.
Source: https://code.claude.com/docs/en/skills
More Claude Code tips
Hooks (settings.json)Automatically runs commands on events such as before or after a tool runs.TipsHeadless mode (-p)Runs once without a UI and prints only the result.Tips--continue / -cContinues the most recent conversation in the current folder.Tips--resume / -rResumes a session by ID or name.Tips--fork-sessionResumes a session but branches it off under a new session ID.Tips--worktree / -wRuns Claude in an isolated git worktree.Tips
All Claude Code