Generate a /commit command that runs checks, then commits with AI-generated messages
Creates a `/commit` command that runs project-specific checks, generates AI commit messages, and pushes. Use it to enforce code quality before every commit.
/plugin marketplace add KenKaiii/minimal-claude/plugin install minimal-claude@minimal-claude-marketplaceGenerate a minimal /commit command that enforces quality checks before committing.
Check for config files:
package.json → Extract lint, typecheck scriptspyproject.toml → Use mypy, pylintgo.mod → Use go vet ./..., gofmt -l .Cargo.toml → Use cargo clippy, cargo fmt --checkCreate .claude/commands/commit.md:
---
name: commit
description: Run checks, commit with AI message, and push
---
1. Run quality checks:
```bash
[PROJECT COMMANDS]
Fix ALL errors before continuing.
Review changes: git status and git diff
Generate commit message:
Commit and push:
git add -A
git commit -m "your generated message"
git push
**Keep it under 20 lines.**
## Step 3: Confirm
Tell user: ✅ `/commit` created. Quality checks + AI commits + auto-push enabled.