rulebook-quality-gates

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.

11 stars

Best use case

rulebook-quality-gates is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using rulebook-quality-gates should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/rulebook-quality-gates/SKILL.md --create-dirs "https://raw.githubusercontent.com/hivellm/rulebook/main/skills/rulebook-quality-gates/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/rulebook-quality-gates/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How rulebook-quality-gates Compares

Feature / Agentrulebook-quality-gatesStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

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

Related Skills

We are still matching the closest adjacent skills for this page. In the meantime, continue through the full directory.