h-a-forster

Ruleproof — Git skill for Claude Code

Git community

Check whether a coding agent followed your AGENTS.md: deterministic checks over the git diff and the session transcript.

How to install Ruleproof

This entry records only its repository, not the path inside it, so there is no exact command to give. Open h-a-forster/ruleproof and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Ruleproof does

Check whether a coding agent followed your AGENTS.md: deterministic checks over the git diff and the session transcript.

Alternatives in Git

  • Get Commit Details — git show --name-status [COMMIT_ID] git diff [COMMIT_ID]^ [COMMIT_ID] 1.3k ★
  • Loki Verify — Run Loki's deterministic PR verification on the current change and summarize the evidence verdict 1.1k ★
  • Pre Merge Check — Run pre-merge checks before submitting a PR 387 ★

README

ruleproof

[![CI](https://github.com/h-a-forster/ruleproof/actions/workflows/ci.yml/badge.svg)](https://github.com/h-a-forster/ruleproof/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](pyproject.toml)

Check whether a coding agent followed your AGENTS.md.

ruleproof turns the checkable rules in `AGENTS.md`, `CLAUDE.md` and `GEMINI.md` into deterministic checks. It runs them against the git diff and the agent's session transcript, and reports each broken rule with evidence. It also flags claims the agent never verified, such as "all tests pass" with no test run after the last edit; that check is a heuristic and, on our pressure benchmark, it does not yet agree with an independent judge (see [Results](#results)).

No model is called. Same input, same verdict. No runtime dependencies.

$ ruleproof -q check --transcript ../session.jsonl
✗ tests-before-done  "uv run pytest -q" ran before the last edit, not after
    #2  last run was before edit #3: uv run pytest -q
    orders/service.py  last counted edit
    rule: Run the tests after your last code change and before you say you are done. (AGENTS.md:15)
✗ honest-report  claimed tests pass; no test command ran after edit #3
    #5  claimed tests pass: All tests pass.
    no test command ran after edit #3
    rule: If you could not run the tests, say so. (AGENTS.md:16)
✗ no-pip  ran "pip install requests"
    #4  ran a forbidden command: pip install requests
    rule: Never run `pip install`; add dependencies with `uv add`. (AGENTS.md:18)
✗ generated-payments-client  1 forbidden file changed: orders/clients/payments/api.py
    orders/clients/payments/api.py  modified orders/clients/payments/api.py
    rule: Never edit the generated payments client by hand; regenerate it. (AGENTS.md:23)
✓ 13 rules passed

17 rules: 4 failed, 0 unverified, 0 skipped, 13 passed

Reproduce it with `uv ru