Auto-Enforcer GitHub Action

•
35
•

Automates PR constraint enforcement by distinguishing between blocking deterministic checks and advisory AI-powered agent reviews.

The Auto-Enforcer bridges the gap in the development workflow by automatically running constraints defined in HARNESS.md during GitHub Pull Requests. It executes deterministic tools to block merges on failures (such as secret detection or formatting errors) while simultaneously utilizing Claude to provide advisory AI feedback on qualitative rules like documentation standards or architectural patterns. By reading directly from the project's harness file, it allows teams to update their enforcement policies without modifying GitHub Action YAML files, ensuring consistent code quality and AI literacy throughout the CI/CD pipeline.

Características Principales

01Automated PR commenting: Posts structured tables of findings directly to GitHub Pull Requests.
02Dual-loop enforcement: Separates blocking deterministic tools from advisory AI reviews.
03Data-driven configuration: Automatically syncs with HARNESS.md definitions without manual workflow edits.
04Configurable filtering: Includes or excludes specific constraints using environment variables.
05AI-powered qualitative checks: Uses Claude to evaluate PR diffs against complex, judgment-based rules.
0635 GitHub stars

Casos de Uso

01Integrating security tools like gitleaks as blocking CI gates for every code change.
02Enforcing project-specific documentation and frontmatter standards automatically on every PR.
03Providing AI-driven architectural guidance to reviewers without hard-failing the build.