damianlevy1987-prog/pi-test/git-hooks

Claude Code and agent skill by damianlevy1987-prog/pi-test

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-hooks

Semi-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)

sync-lockfile lint-fix test-and-check-packages
1. sync-lockfile
  • Trigger: only when **/package.json files 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/** then prettier --write "**/*.{ts,tsx,md}"
  • `stage_fixed: true`: auto-stages any files it fixes
  • Fails if: lint errors that --fix can't auto-correct
3. test-and-check-packages ← most common failure
  • Command: pnpm run test && pnpm run check:packages
  • Expands to:
  1. nx run-many -t test — runs all unit tests across all packages
  2. nx 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
  • publint finds malformed package.json exports
  • attw (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:

bash
# Run only the failing command manually:
pnpm run test # if test-and-check-packages failed
pnpm run check:packages # isolate publint/attw from test failures
nx run-many -t test --projects=<pkg> # narrow to a specific package
# Re-run lefthook manually (without committing):
pnpm lefthook run pre-commit

npm scripts involved

ScriptExpands to
pnpm run lintnx run-many -t lint --projects=packages/**
pnpm run formatprettier --write "**/*.{ts,tsx,md}"
pnpm run testnx run-many -t test
pnpm run check:packagesnx 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/damianlevy1987-prog/pi-test/git-hooks/badge)](https://verified-skill.com/skills/damianlevy1987-prog/pi-test/git-hooks)

Something wrong with this skill or its page? Tell us.