ask-commit-assistance
Ask Commit Assistance
This skill assists in the "pre-commit" phase: scanning for secrets, reviewing new code, and staging files.
<critical_constraints>
❌ NEVER AUTO-COMMIT: Execution of git commit is strictly forbidden for the agent. DO NOT execute it under any circumstance, even if requested.
❌ NO git add . → stage specific files only.
❌ NO committing secrets/debug code without explicit user confirmation.
✅ BRANCH CHECK: MUST verify the current branch. If on release (or a branch containing release), MUST stop and prompt user to confirm if they need to change branches.
✅ ATOMIC COMMITS: If changes span multiple unrelated domains, you MUST suggest splitting them into separate atomic commits.
✅ MUST scan for API keys, tokens, passwords before staging.
✅ MUST use Conventional Commits format for suggested messages.
✅ MUST offer detailed and short message options.
✅ USER FINALIZATION: Always provide the final git commit command for the user to execute manually.
</critical_constraints>