2730 Git Hooks Integration F00e46f3

Git Hooks Integration

tools-only Updated 7 repo stars

File contents

Git Hooks Integration

Git Hooks Integration

Pre-commit with Cursor

# .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

# .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

tools-only/X-Skills/tree/main/development/testing/2730-git-hooks-integration_f00e46f3 commit 18e918e772

Frequently asked questions

npx skillmds@latest add tools-only/2730-git-hooks-integration-f00e46f3