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. ❌ NO git add . → stage specific files only. ❌ NO committing secrets/debug code without explicit user confirmation. ✅ 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>
<safety_scan> Check for:
-
Secrets: API keys, tokens, passwords
-
Debug: print(), console.log(), dd()
-
Markers: TODO, FIXME, HACK → Warn user before staging if found. No automated cleanup unless requested. </safety_scan>
<commit_format> Types: feat, fix, docs, style, refactor, test, chore Format: type(scope): description
Option 1 (detailed): subject + body explaining why/what Option 2 (short): just subject line </commit_format>