From d28daa8361f49ac4b2da55d917e61ab1d41b1495 Mon Sep 17 00:00:00 2001 From: Robert van Diest Date: Fri, 27 Mar 2026 16:01:44 +0100 Subject: [PATCH] chore(claude): add custom /commit slash command Co-Authored-By: Claude Sonnet 4.6 --- .claude/commands/commit.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .claude/commands/commit.md diff --git a/.claude/commands/commit.md b/.claude/commands/commit.md new file mode 100644 index 0000000..3439e4a --- /dev/null +++ b/.claude/commands/commit.md @@ -0,0 +1,31 @@ +# Git Commit + +Look at all staged changes using `git diff --cached` and create a descriptive git commit message that follows these rules: + +- Use conventional commit format: `type(scope): description` +- Types: feat, fix, docs, refactor, test, chore +- Keep the subject line under 72 characters +- Add a short body if the change is complex and needs explanation +- Be specific about what changed and why + +Then run the commit with that message. + +## Examples of good commit messages +- `feat(auth): add JWT token refresh endpoint` +- `fix(api): handle null response from payment gateway` +- `refactor(db): extract connection pooling into separate module` +- `docs(readme): add setup instructions for Windows` +``` + +--- + +**How to run it** + +In Claude Code: +``` +/commit +``` + +Or with a hint: +``` +/commit this fixes the login bug we discussed \ No newline at end of file