quality-hooks

Language-specific auto-lint/format/typecheck pipeline. Supports Python (ruff+pyright), TypeScript (prettier+eslint+tsc), Go (gofmt+golangci-lint). Auto-fix and convergence loops.

509 stars

Best use case

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

Language-specific auto-lint/format/typecheck pipeline. Supports Python (ruff+pyright), TypeScript (prettier+eslint+tsc), Go (gofmt+golangci-lint). Auto-fix and convergence loops.

Teams using quality-hooks 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/quality-hooks/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/pilot-shell/skills/quality-hooks/SKILL.md"

Manual Installation

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

How quality-hooks Compares

Feature / Agentquality-hooksStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Language-specific auto-lint/format/typecheck pipeline. Supports Python (ruff+pyright), TypeScript (prettier+eslint+tsc), Go (gofmt+golangci-lint). Auto-fix and convergence loops.

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-hooks

You are **quality-hooks** -- the quality pipeline skill for Pilot Shell.

## Overview

This skill defines the language-specific quality tool chains that run as PostToolUse hooks in Pilot Shell. It auto-detects the project language and applies the appropriate linter, formatter, and type checker with auto-fix support.

## Tool Chains

### Python
```
ruff check --fix .         # Lint with auto-fix
ruff format .              # Format
pyright .                  # Type check
```

### TypeScript / JavaScript
```
npx eslint --fix .         # Lint with auto-fix
npx prettier --write .     # Format
npx tsc --noEmit           # Type check
```

### Go
```
golangci-lint run --fix    # Lint with auto-fix
gofmt -w .                 # Format
go vet ./...               # Type/static check
```

## Auto-Fix Convergence Loop

When quality checks fail:
1. Apply all auto-fixable issues
2. Re-run quality checks
3. Repeat up to 3 times
4. Report remaining unfixable issues

## Quality Scoring

Composite score = weighted average:
- Lint: 25%
- Format: 15%
- Typecheck: 25%
- Tests: 35%

Target: 85/100 (configurable via `targetQuality`)

## Hook Integration Points

| Pilot Shell Hook | Quality Action |
|-----------------|----------------|
| PostToolUse (Edit/Write) | Run file_checker on modified files |
| PostToolUse (file creation) | Run full pipeline on new files |
| Pre-merge | Run full pipeline on all changes |

Related Skills

react-hooks

509
from a5c-ai/babysitter

Deep expertise in React hooks patterns including custom hooks, composition, optimization, and testing strategies.

quality-metrics-measurement

509
from a5c-ai/babysitter

Collect, calculate, and report healthcare quality metrics including core measures, HEDIS, patient safety indicators, and value-based purchasing measures

quality-assurance-review

509
from a5c-ai/babysitter

Conduct systematic quality reviews of instructional materials using established rubrics (Quality Matters) and design standards

fastqc-quality-analyzer

509
from a5c-ai/babysitter

Sequencing quality control skill for assessing read quality, adapter contamination, and sequence composition

code-quality-analyzer

509
from a5c-ai/babysitter

Static code analysis, technical debt assessment, engineering velocity metrics

master-data-quality-manager

509
from a5c-ai/babysitter

Supply chain master data quality monitoring and improvement skill

quality-auditor

509
from a5c-ai/babysitter

Internal quality audit skill with planning, execution, findings documentation, and corrective action tracking

cost-of-quality-analyzer

509
from a5c-ai/babysitter

Cost of Quality analysis skill with prevention, appraisal, internal failure, and external failure cost tracking

requirements-quality-analyzer

509
from a5c-ai/babysitter

Specialized skill for analyzing and scoring requirements quality against BABOK and IEEE 29148 standards

data-quality-profiler

509
from a5c-ai/babysitter

Profiles data assets to assess quality dimensions, detect anomalies, and generate comprehensive data quality reports with actionable recommendations.

quality-checklist

509
from a5c-ai/babysitter

Validate implementation quality through custom checklists, scoring against constitution standards, specification coverage, and producing remediation recommendations.

process-builder

509
from a5c-ai/babysitter

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.

Workflow & Productivity