code-quality-enforcer

Enforce linting, typing, security, and test quality gates across a repository.

5|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/T-rav/hydraflow --skill code-quality-enforcer-t-rav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-enforcer
Source: https://github.com/T-rav/hydraflow/tree/main/.codex/skills/hf.code-quality-enforcer
Command: npx skills add https://github.com/T-rav/hydraflow --skill code-quality-enforcer-t-rav

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce code quality across a repository by applying standardized quality gates to lint, type, security, and test checks.

Core Features & Use Cases

  • Enforce linting with ruff, strict typing with pyright, and security checks with bandit
  • Ensure tests pass with pytest/coverage and detect dead code with vulture
  • Detect duplication and code smells using jscpd and radon, and enforce test-name mapping
  • Apply commit-readiness controls to prevent merges when standards fail
  • Use case: a PR containing a hundred lines of new code must pass all gates before merge

Quick Start

Run the local quality gate to lint, type-check, security-scan, and run tests, and ensure all gates pass before merging.

Frequently Asked Questions about code-quality-enforcer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce code quality gates before merging a pull request?

Automating quality gates prevents merges by running linting, type checking, security auditing, test coverage, dead-code removal, and duplication checks against the repository before integration.

What's the best way to automate security auditing and linting for Python projects?

Automating security auditing and linting is best handled by integrating tools like ruff for linting and bandit for security auditing into a pre-commit hook or quality gate that blocks commits on failure.

Does this code quality enforcement work with pytest coverage and pyright type checking?

Yes, quality enforcement integrates pytest for test coverage and pyright for strict type checking, applying both as standardized gates that must pass before allowing code integration.

Can I detect dead code and duplication in my repository before a merge?

You can detect dead code and duplication by applying vulture for dead-code removal and jscpd for duplication checks as part of an automated pre-merge quality gate process.

What tools are used for code smell detection and test-name mapping checks?

Code smell detection uses radon, while test-name mapping checks validate alignment between tests and requirements, both enforced within the standardized code quality gate process.

How do I stop commits when type checking or test coverage standards fail?

Applying commit-readiness controls through pre-commit hooks blocks merges whenever type checking, linting, or test coverage standards fail the automated quality gates.