Create conventional git commits with proper formatting
Creates conventional git commits with proper formatting and type determination.
/plugin marketplace add barnabasJ/claude/plugin install essentials@essentials-marketplaceCreates well-formed git commits using conventional commit format. Analyzes changes, determines commit type, and creates properly formatted messages.
Run in parallel:
git status # All changed files
git diff # Unstaged changes
git diff --staged # Staged changes
git log --oneline -10 # Recent commit style
| Type | When to Use |
|---|---|
| feat | New feature or capability |
| fix | Bug fix |
| refactor | Code restructuring, no behavior change |
| docs | Documentation only |
| test | Adding or updating tests |
| chore | Maintenance, dependencies, tooling |
| style | Formatting, whitespace |
| perf | Performance improvements |
git add <files> # Specific files
git add -A # All changes
šØ Never stage files with secrets (.env, credentials.json, API keys)
Use HEREDOC format:
git commit -m "$(cat <<'EOF'
type(scope): brief description
Optional body explaining why this change was made.
EOF
)"
Format:
type(scope): description (ā¤50 chars)git status # Confirm clean state
git log -1 # Verify commit
šØ Never:
git push without explicit user request--force, --hard, or destructive flags--no-verify (skip hooks)--amend on commits you didn't authoršØ Always:
git log -1 --format='%an %ae'git status after commitPre-commit hook modifies files:
git add <modified-files>Nothing to commit:
git status for changesMerge conflicts:
Input: /commit
Process:
1. git status ā 2 files changed
2. git diff ā auth.ex, auth_test.exs modified
3. git log ā repo uses conventional commits
4. Type: feat (new validation feature)
5. Scope: auth
6. Stage: git add lib/auth.ex test/auth_test.exs
7. Commit:
git commit -m "$(cat <<'EOF'
feat(auth): add email validation to login
Add regex-based email format validation to prevent
invalid submissions. Includes edge case handling.
EOF
)"
8. Verify: git status, git log -1
feat(api): add user profile endpoint
Implement GET /api/users/:id/profile with auth
and caching for performance.
fix(payment): resolve timeout in processing
Add retry logic for high-load scenarios.
Fixes #456
refactor(auth): extract validation to utility
Move validation logic to shared module.
No behavior changes.