Claude Code slash commands
The actual command file, not a description of one — hand-verified, copy-paste into .claude/commands/.
Version control & git
/commit
MITCreate well-formatted git commits — conventional-commit type + emoji, split into atomic commits when a diff covers more than one concern.
Try it for: Make this your default way to commit, full stop — once it's in .claude/commands/, every commit on the project gets the same consistent style with zero extra thought from you.
/create-pr
Apache-2.0Branch, commit (split into logical units automatically), push, and open a pull request in one command.
Try it for: Pair it with /commit as your end-of-task ritual: /commit to wrap up, then /create-pr to hand it off for review — "done coding" to "PR open" in two commands instead of a dozen.
/update-branch-name
Apache-2.0Look at what actually changed on this branch and rename it to something descriptive — no more guessing a name before you've written the code.
Try it for: Stop overthinking branch names at the start of a task entirely — just branch as "wip" and run this at the end. It removes a tiny but constant naming-things tax from your day.
New to Claude Code slash commands? Read the official docs.