damianlevy1987-prog/pi-test/git-hooks
Claude Code and agent skill by damianlevy1987-prog/pi-test
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
CopilotKit pre-commit hook reference. Load automatically when the user mentions git hooks failing, pre-commit errors, lefthook issues, commit blocked, or "hooks don't work", or when user wants to commit/push anything Contains the full hook topology so debugging skips discovery and goes straight to diagnosis.
Install
npx vskill@latest install damianlevy1987-prog/pi-test/git-hooksSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as gencau/test-practices-agent-configurations/git-hooks.
CopilotKit Git Hooks Reference
Hook runner: Lefthook
The repo uses lefthook (not husky). The git hook at .git/hooks/pre-commit calls lefthook, which reads lefthook.yml at the repo root.
Config file: lefthook.yml
Pre-commit commands (run in parallel)
1. sync-lockfile
- Trigger: only when
**/package.jsonfiles are staged - Command:
pnpm i --lockfile-only - `stage_fixed: true`: auto-stages the updated lockfile
- Fails if: pnpm can't resolve dependencies
2. lint-fix
- Command:
pnpm run lint --fix && pnpm run format - Expands to:
nx run-many -t lint --projects=packages/**thenprettier --write "**/*.{ts,tsx,md}" - `stage_fixed: true`: auto-stages any files it fixes
- Fails if: lint errors that
--fixcan't auto-correct
3. test-and-check-packages ← most common failure
- Command:
pnpm run test && pnpm run check:packages - Expands to:
nx run-many -t test— runs all unit tests across all packagesnx run-many -t publint,attw --projects=packages/**— checks package exports and types are correctly declared
- `stage_fixed: false` — does NOT auto-stage anything
- Env:
NX_TUI: "false"(plain output, no interactive UI) - Fails if:
- Any test fails
publintfinds malformedpackage.jsonexportsattw(Are the Types Wrong?) finds type declaration issues
Diagnosing a failure
The summary shows a boxing glove 🥊 for the failing command. The error itself does not show directly. To see the actual error:
npm scripts involved
| Script | Expands to | |
|---|---|---|
pnpm run lint | nx run-many -t lint --projects=packages/** | |
pnpm run format | prettier --write "**/*.{ts,tsx,md}" | |
pnpm run test | nx run-many -t test | |
pnpm run check:packages | nx run-many -t publint,attw --projects=packages/** |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingaddons-implementation/CopilotKit/CopilotKit-main/.claude/skills/git-hooks/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/damianlevy1987-prog/pi-test/git-hooks)