---
Automates quality gate enforcement by running type checks, linting, tests, and coverage verification before commits. Triggers automatically on `git commit` and `git push` via installed hooks to prevent unverified code from entering the repository.
/plugin marketplace add hivellm/rulebook/plugin install rulebook@hivehub-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.