Back to Skills

rulebook-quality-gates

verified

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.

View on GitHub

Marketplace

hivehub-marketplace

hivellm/rulebook

Plugin

rulebook

Repository

hivellm/rulebook
5stars

./skills/rulebook-quality-gates/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/hivellm/rulebook/blob/main/./skills/rulebook-quality-gates/SKILL.md -a claude-code --skill rulebook-quality-gates

Installation paths:

Claude
.claude/skills/rulebook-quality-gates/
Powered by add-skill CLI

Instructions

# Quality Gates Enforcement

## Pre-Commit Checklist

**MUST run these checks before every commit:**

```bash
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:

```bash
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

```bash
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
```

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1017 chars