chore: strengthen commit signing pre-flight in /commit skill #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/signing-pre-flight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The /commit skill could end up at a
git commitinvocation with signing enabled and an unusable key — the failure surfaces only after the message is composed, which is exactly when the temptation to silently-c commit.gpgsign=falsepast it is highest. Promote the existing SSH-key-recovery block to a real signing pre-flight that runs before staging, generalize it beyond ssh (coveringgpg.format=openpgpandx509), keep the ssh-agent recovery path intact, and — when recovery is not possible — stop and ask the user explicitly with three options: stop, fix, or authorize-c commit.gpgsign=falsefor this single commit only (never persisted). Add a matching entry under Safety rules and a one-line note in the README pre-flight description. Version bumped to 0.6.0.Merge: rebase.