name: rulebook-quality-gates
description: 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.
version: "1.0.0"
category: core
author: "HiveLLM"
tags: ["quality", "testing", "coverage", "linting", "pre-commit", "git-hooks"]
dependencies: []
conflicts: []
Quality Gates Enforcement
Pre-Commit Checklist
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.
Quality Thresholds
Check
Requirement
Type Check
Zero errors
Lint
Zero warnings
Tests
100% pass rate
Coverage
95%+
Build
Must succeed
Git Hooks
Rulebook can install automated Git hooks:
rulebook init # Prompts to install hooks
Pre-commit Hook
Format check
Lint check
Type check
Pre-push Hook
Build verification
All tests
Coverage threshold check
Fixing Common Issues
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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: hivellm-rulebook-rulebook-quality-gates3description: ---4---5---6name: rulebook-quality-gates7description: 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.8version: "1.0.0"9category: core10author: "HiveLLM"11tags: ["quality", "testing", "coverage", "linting", "pre-commit", "git-hooks"]12dependencies: []13conflicts: []14---1516# Quality Gates Enforcement1718## Pre-Commit Checklist1920**MUST run these checks before every commit:**2122```bash23npm run type-check # Type check24npm run lint # Lint (0 warnings)25npm run format # Format check26npm test # All tests (100% pass)27npm run build # Build verification28npm run test:coverage # Coverage check (95%+)29```3031**If ANY fail, FIX before committing.**3233## Quality Thresholds3435| Check | Requirement |36|-------|-------------|37| Type Check | Zero errors |38| Lint | Zero warnings |39| Tests | 100% pass rate |40| Coverage | 95%+ |41| Build | Must succeed |4243## Git Hooks4445Rulebook can install automated Git hooks:4647```bash48rulebook init # Prompts to install hooks49```5051### Pre-commit Hook52- Format check53- Lint check54- Type check5556### Pre-push Hook57- Build verification58- All tests59- Coverage threshold check6061## Fixing Common Issues6263```bash64npm run type-check # See type errors65npm run lint # See lint warnings66npm run lint:fix # Auto-fix lint issues67npm test # Run all tests68npm run test:coverage # See coverage report69```7071---72> Converted and distributed by [TomeVault](https://tomevault.io/claim/hivellm) — claim your Tome and manage your conversions.73<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/hivellm-rulebook-rulebook-quality-gates in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
--- It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.