Install Skill Attribution Hook
Use this skill once to set up automatic skill attribution tracking in your commits.
What This Does
Installs a git post-commit hook that:
- ✅ Auto-discovers all installed ZIO plugins
- ✅ Updates plugin versions with commit hashes
- ✅ Appends a
Skills-Usedtrailer to every commit message - ✅ Tracks which skills contributed to each change
One-Time Setup
Simply invoke this skill:
/setup-skill-hook
The skill will:
- Locate the hook template in the installed plugin
- Copy it to your
.git/hooks/post-commit - Make it executable
- Verify installation with a test commit
After Installation
Every commit will automatically include:
feat: add OpenAPI validation
Skills-Used: zio-http-scaffold@0.1.0-abc1234,docs-data-type-ref@0.1.0-abc1234
This makes it easy to:
- 📊 Track which skills were used in each change
- 🔍 Reference exact skill versions by commit hash
- 📝 Document skill usage in your project history
- 🔗 Link commits to specific skill capabilities
Manual Alternative
If you prefer, you can also run from the repository root:
bash setup-skill-hook.sh
Uninstall
To remove the hook anytime:
rm .git/hooks/post-commit
Notes
- The hook runs automatically on every commit
- Use
git commit --no-verifyto skip the hook for a single commit - The hook requires
jqto be installed (for JSON parsing) - If
jqis missing, install it:brew install jq(macOS) orsudo apt-get install jq(Linux)