Git Hooks Manager
中级development最低上下文:8K
Sets up and maintains Git hooks for a repository. Recommends a manager (Husky, Lefthook, or pre-commit), wires up pre-commit and commit-msg hooks for linting, formatting, type checks, secret scanning, and conventional-commit validation, and keeps hooks fast with staged-file filtering. Produces config plus a short contributor guide.
使用场景
- Adding pre-commit lint, format, and type-check hooks
- Enforcing conventional commit messages via commit-msg
- Running secret scanning before commits land
- Keeping hooks fast by only checking staged files
示例提示词
Set up Git hooks for a TypeScript monorepo using pnpm. Requirements: - pre-commit: run ESLint + Prettier on staged files only, plus a secret scan - pre-push: run type-check and affected unit tests - commit-msg: enforce Conventional Commits Recommend a hook manager with a brief rationale, provide the full config, ensure hooks are fast on large repos, and add a short CONTRIBUTING note explaining how to bypass in emergencies.
推荐模型
兼容工具
claude-codecursorgithub-copilotkiroany
模态
输入: text, code
→输出: text, code
相关 Skills
作者
OpenModels Community