lean-quality-engine
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: assessing overall Lean 4 project quality across seven dimensions (soundness, faithfulness, completeness, novelty. DO NOT USE FOR: running a single enforcement script (@lean-enforcement). TRIGGERS: QA, quality gate, milestone check, project health, qa-engine.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bigraph-modelingSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-package-researchSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-replay-verificationSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
Files
lean-quality-engine
⚠️ MANDATORY (hot-tier): the soundness and faithfulness gates in §Behavioural rules are hard gates — a failure HALTS the QA lifecycle. Skipping Persist = incomplete.
Routing
- USE FOR: running the seven-dimension quality lifecycle (Q1 soundness, Q2 faithfulness, Q3 completeness,
Q4 novelty, Q5
elegance, Q6
integration, Q7
documentation); computing the weighted
Q_score; deciding go/no-go at a milestone. - DO NOT USE FOR: running a single script (delegate to
@lean-enforcement); reviewing one proof (delegate to@lean-proof-review); facilitating a council session (delegate to@lean-review-council). - TRIGGERS: QA, quality gate, milestone check, project health, qa-engine, quality score, QA lifecycle.
Workflow
- Discover [discover] — read prior
Q_score, list active milestone, locate latest enforcement / council / coverage artefacts. - Run hard gates [execute] — invoke
@lean-enforcementfor Q1 (axiom audit, sorry check,lean_diagnosticsstatic abstract interpretation certificates:NatSubTruncation,NatDivModByZero, Zone DBMdecreasing_bysynthesis, Octagon conservation±x_i ± x_j <= c, Bourdoncle WTO loop widening, trace partitioning) and Q2 (faithfulness via doc-requirements traceability andlean_counterexample_searchwith Galois-guided hypothesis domain pruninganalyzeHeaderHypothesisDomains/pruneHeaderNatDomain). - Halt-check [validate] — if Q1 or Q2 failed, STOP and route to recovery; do NOT proceed to soft gates.
Recovery & STOP
- Q1 or Q2 fails → immediate STOP; escalate to human; do NOT compute
Q_score. - Enforcement script crashes ×3 in one lifecycle → STOP, file a bug against
@lean-enforcement. Q_scoreregression ≥ 10 % vs prior milestone → STOP, ask before persisting.- Confidence < 90 % on dimension weighting → STOP, ask.
Handoffs
- Predecessors / successors: see FM
handoffs(grammar from ADR-0080). - Source spec:
specs/lean/quality-engine/requirements.md— every G-rule traces to an AC there. - Related ADRs: ADR-0076, ADR-0080.
- Reference: see
references/lean-quality-engine-handbook.mdfor the seven-dimension matrix, weights, lifecycle phases, anti-patterns, and reliability-engineering details (original v1 content, preserved verbatim).
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-quality-engine-handbook.md .
See also
../../references/lean-quality-engine-handbook.md-- Completelean-quality-engineHandbook../lean-gateway/SKILL.md-- Top-level skill router
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

