skills/rulebook-quality-gates/SKILL.md
Automated quality checks and enforcement for code commits. Use when validating code quality, running pre-commit checks, ensuring test coverage, or enforcing coding standards before commits and pushes.
npx skillsauth add hivellm/rulebook rulebook-quality-gatesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
research
Create structured analyses with numbered findings, execution plans, and task materialization
research
Author a rulebook task spec interactively — research, draft, ask the user clarifying questions, confirm, then create the tasks in rulebook ready for /rulebook-driver. Use when the user wants to plan/spec a feature before implementing.
development
Behavioral guidelines to reduce common LLM coding mistakes — overcomplication, sloppy refactors, hidden assumptions, weak goals. Use when writing, reviewing, or refactoring code. Auto-applies; invoke explicitly via /karpathy-guidelines or 'follow karpathy discipline'.
data-ai
Autonomous AI agent loop for iterative task implementation (@hivehub/rulebook ralph)