From devac
Drafts a conventional commit message from staged git changes: checks for staged files, analyzes diff for type/scope/purpose, suggests feat/fix/etc with body and git commit usage example.
How this command is triggered — by the user, by Claude, or both
Slash command
/devac:draft-commitThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /devac:draft-commit - Draft a Commit Message You are helping the user draft a commit message only, without checking for changesets or ADRs. This is a lightweight version of `/devac:commit` for quick commit message generation. ## Steps ### 1. Check for staged changes If nothing is staged, inform the user. ### 2. Analyze the changes Consider: - What type of change is this? - Which package(s) are affected? - What is the main purpose? ### 3. Draft the commit message Follow conventional commit format: **Types:** - `feat` - New feature - `fix` - Bug fix - `docs` - Documentation ...
You are helping the user draft a commit message only, without checking for changesets or ADRs.
This is a lightweight version of /devac:commit for quick commit message generation.
git diff --cached --stat
If nothing is staged, inform the user.
git diff --cached
Consider:
Follow conventional commit format:
type(scope): description
[optional body with more details]
Types:
feat - New featurefix - Bug fixdocs - Documentation onlyrefactor - Code restructuringperf - Performance improvementtest - Adding/updating testschore - Maintenance tasks## Suggested Commit Message
fix(core): handle empty package.json gracefully
---
To use this message:
```bash
git commit -m "fix(core): handle empty package.json gracefully"
Or copy and modify as needed.
## When to Use
Use `/devac:draft-commit` when:
- You just need a quick commit message
- You'll handle changesets/ADRs separately
- You're making a minor change that doesn't need the full workflow
npx claudepluginhub pietgk/vivief --plugin devac/commitCreates a conventional git commit by analyzing staged changes and auto-generating a message in 'type(scope): description' format. Optional scope or message hint.
/commit-msgDrafts a Conventional Commit message for staged git changes: analyzes diffs/status/log, classifies type (feat/fix/etc.) and scope, formats summary/body/footer, performs slop check, and writes to commit_msg.txt.
/commit-smartAnalyzes staged Git changes to generate a conventional commit message (type(scope): description), confirms with user, and commits if approved.
/commitAnalyzes currently staged git changes via git diff --cached, determines type and scope, and generates a conventional commit message for approval.
/commitStages unstaged changes if needed and creates a git commit with conventional commit format (feat, fix, docs, etc.). Uses arguments as optional message hint.
/commit-generatorGenerates a conventional commit message for staged changes, shows it for approval, commits, and optionally pushes to remote.