# 2730 Git Hooks Integration F00e46f3

> Git Hooks Integration

- Skill: `tools-only/2730-git-hooks-integration-f00e46f3` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/2730-git-hooks-integration-f00e46f3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/2730-git-hooks-integration-f00e46f3/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/2730-git-hooks-integration-f00e46f3

---

# Git Hooks Integration

## Git Hooks Integration

### Pre-commit with Cursor
```bash
# .git/hooks/pre-commit
#!/bin/sh
npm run lint
npm run test

# Cursor works with existing hooks
# AI can help write hooks:
"Create a pre-commit hook that:
- Runs ESLint
- Checks for console.log
- Validates commit message format"
```

### Commit Message Templates
```bash
# .gitmessage template
# Type: feat|fix|docs|style|refactor|test|chore

# Subject (50 chars max)

# Body (72 chars per line)

# Footer (issues, breaking changes)

# Configure:
git config commit.template .gitmessage
```
