Skip to content

Vendor the git-why skill and use its commit-reminder hook - #25

Merged
pratts merged 1 commit into
mainfrom
chore/vendor-git-why-skill
Oct 25, 2026
Merged

pratts merged 1 commit into
mainfrom
chore/vendor-git-why-skill

Conversation

@pratts

@pratts pratts commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Vendor git-why: .claude/skills/git-why was an untracked nested clone with its own .git. It never reached anyone else cloning tocli, and git add would have recorded it as an embedded-repository pointer instead of its files. It's now re-installed as plain files from git-why main @ 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.
  • Use the vendored hook: .claude/settings.json now 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 missed git -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 .claude shows only normal files (100644/100755), no 160000 gitlink
  • The vendored hook fires for git commit -m x and git -C ../x commit -m y, and stays silent for gh api … and git log --grep=commit
  • .claude/settings.json parses with jq
  • In a new Claude Code session in tocli, check that the reminder appears after a real commit and not after other commands

🤖 Generated with Claude Code

.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>
@pratts
pratts merged commit b3af630 into main Oct 25, 2026
4 checks passed
@pratts
pratts deleted the chore/vendor-git-why-skill branch October 25, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant