Repository navigation
Vendor the git-why skill and use its commit-reminder hook - #25
Merged
Merged
Conversation
.claude/skills/git-why was an untracked nested clone with its own .git, so it never reached anyone else cloning tocli, and git add would have recorded it as an embedded-repository gitlink rather than its files. Re-install it as plain vendored files (git-why main @ da4fd0e), per its README. Point the PostToolUse hook at the vendored script and drop both tocli's own copy and the "if": "Bash(git commit *)" filter. That filter missed commits like git -C dir commit, and the reminder also fired after Bash calls that never committed; the vendored script now decides from the actual command (git-why #3). Updating the skill now updates the hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/skills/git-whywas an untracked nested clone with its own.git. It never reached anyone else cloning tocli, andgit addwould have recorded it as an embedded-repository pointer instead of its files. It's now re-installed as plain files from git-whymain@da4fd0e, including the merged Bump github.com/pion/stun/v3 from 3.0.0 to 3.1.5 #3 and Bump github.com/pion/dtls/v3 from 3.0.3 to 3.1.4 #4..claude/settings.jsonnow points at.claude/skills/git-why/.claude/hooks/git-commit-reminder.sh. tocli's own copy of the hook is deleted, and so is the"if": "Bash(git commit *)"filter, which missedgit -C dir commit. The reminder also no longer fires after Bash calls that never committed. Updating the skill now updates the hook too.No Go code changes.
Test plan
git ls-files -s .claudeshows only normal files (100644/100755), no160000gitlinkgit commit -m xandgit -C ../x commit -m y, and stays silent forgh api …andgit log --grep=commit.claude/settings.jsonparses withjq🤖 Generated with Claude Code