code-quality-enforcer

Audit PHP pull requests and flag quality violations as blockers.

2|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/coagus/php-api-builder --skill code-quality-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-enforcer
Source: https://github.com/coagus/php-api-builder/tree/main/.claude/skills/code-quality-enforcer
Command: npx skills add https://github.com/coagus/php-api-builder --skill code-quality-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Code Quality Enforcer provides a rigorous, zero-tolerance audit process that converts quality violations into blockers, ensuring only clean, maintainable code ships.

Core Features & Use Cases

  • Enforces strict metrics thresholds (cyclomatic complexity, method and class size, nesting depth, and naming quality) with explicit blockers.
  • Generates actionable remediation notes for PR authors and reviewers, streamlining code reviews and rework.
  • Applies to pull requests across PHP projects, providing deterministic guidance for maintainability and long-term quality.
  • Supports automated gating during CI, preventing merges until all blockers are resolved.

Quick Start

Run a zero-tolerance audit on the target PR to surface blockers and remediation steps.

Frequently Asked Questions about code-quality-enforcer

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

FAQPage Schema
How do I block PHP pull requests with high cyclomatic complexity?

You can block PHP pull requests with high cyclomatic complexity by running a zero-tolerance code audit that flags violations as explicit blockers. This applies strict metric thresholds during PR reviews to prevent merging until complexity issues are resolved.

What is a zero-tolerance code quality audit?

A zero-tolerance code quality audit is a strict review process that converts quality violations into blockers. It evaluates cyclomatic complexity, class size, naming quality, and dead code to ensure only clean, maintainable code ships.

How do I automate code quality gates for PHP projects in CI?

You can automate code quality gates for PHP projects in CI by running zero-tolerance audits on pull requests. This surfaces blockers and generates actionable remediation notes, preventing merges until all strict rule-based checks pass.

Does the code quality audit check class size and dead code in PHP?

Yes, the code quality audit checks class size and dead code in PHP. It evaluates cyclomatic complexity, method and class size, nesting depth, naming quality, and dead code with explicit thresholds to flag violations as blockers.

Can I get actionable remediation notes for PR code review blockers?

Yes, you can get actionable remediation notes for PR code review blockers. The audit generates clear guidance for PR authors and reviewers, streamlining code reviews and rework by identifying violations against strict metric thresholds.

What are the limitations of using a zero-tolerance policy for code audits?

The limitation of a zero-tolerance policy for code audits is that it prevents merges until all blockers are resolved, which may stall development if existing PHP codebase quality is low and violates strict complexity or size thresholds.