From rulebook
Enforces code quality gates via Git hooks: pre-commit checks linting, formatting, type-checking; pre-push verifies tests, 95%+ coverage, and builds before commits/pushes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rulebook:rulebook-quality-gatesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**MUST run these checks before every commit:**
MUST run these checks before every commit:
npm run type-check # Type check
npm run lint # Lint (0 warnings)
npm run format # Format check
npm test # All tests (100% pass)
npm run build # Build verification
npm run test:coverage # Coverage check (95%+)
If ANY fail, FIX before committing.
| Check | Requirement |
|---|---|
| Type Check | Zero errors |
| Lint | Zero warnings |
| Tests | 100% pass rate |
| Coverage | 95%+ |
| Build | Must succeed |
Rulebook can install automated Git hooks:
rulebook init # Prompts to install hooks
npm run type-check # See type errors
npm run lint # See lint warnings
npm run lint:fix # Auto-fix lint issues
npm test # Run all tests
npm run test:coverage # See coverage report
npx claudepluginhub hivellm/rulebook --plugin rulebookEnforces quality gates in TypeScript/Node.js projects: pre-commit linting/formatting with ESLint/Prettier/tsc, tests/coverage with Vitest, builds, CI checks, security audits, E2E with Playwright, and Lighthouse performance.
Configures pre-commit hooks for linting, formatting, type checking, and testing in Python, Rust, and TypeScript projects to enforce quality gates on commits, ideal for monorepos.
Verifies pre-commit quality gates (tests, linting, build) before committing code. Useful for enforcing codebase stability and avoiding broken commits.