lean-enforcement

Enforce programmatic quality gates and CI checks for Lean 4 projects.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-enforcement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-enforcement
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/lean-enforcement
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-enforcement

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Programmable CI gates and enforcement tooling for Lean 4 projects, ensuring axioms, conventions, and workflow gates are consistently applied.

Core Features & Use Cases

  • Automated gating: pre-checks, axiom audits, and workflow enforcement to prevent problematic changes from progressing.
  • End-to-end workflow integration: supports council reviews, retroactive audits, and milestone gates, with auditable logs.
  • Continuous quality control: bridges to metrics, zettelkasten lint, and ecosystem health checks to maintain project health.

Quick Start

Run the enforcement pipeline for your Lean 4 project by executing the provided enforce_all.sh to validate gates and produce a structured enforcement log.

Frequently Asked Questions about lean-enforcement

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

FAQPage Schema
How do I automate CI gates and axiom audits for Lean 4 projects?

Automate CI gates and axiom audits for Lean 4 projects by running the enforce_all.sh orchestration script, which validates mandatory checks and outputs a structured enforcement log.

What are Lean 4 workflow gates and when do I need to enforce them?

Lean 4 workflow gates are programmatic quality checks applied during CI, pre-review, post-review, and retroactive audits to ensure axiom integrity and review readiness before changes progress.

Can I run axiom audits and pre-checks without a continuous integration server?

Yes, you can run axiom audits and pre-checks locally using the council_precheck.sh and axiom_audit.py scripts to validate workflow compliance and axiom integrity outside of a CI server.

What is the best way to enforce quality gates across multiple Lean 4 milestones?

The best way to enforce quality gates across Lean 4 milestones is using the workflow_gate.py enforcement layer, which orchestrates mandatory checks and logs auditable results for each milestone.

How do I perform a retroactive audit on an existing Lean 4 codebase?

Perform a retroactive audit on an existing Lean 4 codebase by executing the enforcement pipeline, which applies axiom audits and workflow compliance checks, then logs the structured results.