| name | commit-staged |
| description | Analyzes staged git changes, checks for issues, generates and executes commit with appropriate message. |
Commit Staged Changes
Analyze staged git changes, check for obvious mistakes, and execute git commit with a generated message.
Process
git status - Check staged files
git diff --staged - Review the changes
- Security check - Stop if issues found (see below)
- Generate conventional commit message
- Execute
git commit
Security Check
Stop and report if any of these are staged:
- Sensitive files:
.env*, *.pem, *.key, credentials.*, secrets.*
- Personal files: IDE configs,
.DS_Store, Thumbs.db
- Debug code:
console.log, debugger, print statements
- Merge conflicts: Conflict markers (
<<<<<<<, =======, >>>>>>>)
Output
- If issues found: List problems, stop and ask user to fix
- If clean: Execute commit, show the message and result
Notes
- For mixed concerns, suggest splitting commits
- Execute directly without confirmation