Duyetbot Agent
Reference

Git Hooks

Install pre-push hooks. Enforce Biome linting + Vitest tests. Cross-platform Bun script.

TL;DR: bun scripts/install-hooks.ts. Blocks push if bun run check or bun run test fails. ✅ Enforced.

Table of Contents

Install

Run once:

bun scripts/install-hooks.ts

From scripts/install-hooks.ts:

  • Creates .git/hooks/pre-push
  • Copies .claude/hooks/pre-push.sh
  • chmod +x

What It Runs

Pre-push hook executes:

bun run check  # Biome lint + types
bun run test   # 700+ tests

From CLAUDE.md.

Bypass

Temporary: git push --no-verify

Quiz: Hook blocks if?
A: Tests fail ✅

Pro Tip ✅: Hooks ensure quality.

CTA: bun scripts/install-hooks.ts -> Push safely!

Next: DO Patterns ->

On this page