BekirEfeoglu

Proof Of Green — Testing skill for Claude Code

Testing community

Blocks Claude Code and Codex from ending a turn when code changed and no test passed after the last change.

How to install Proof Of Green

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

What Proof Of Green does

Blocks Claude Code and Codex from ending a turn when code changed and no test passed after the last change.

Alternatives in Testing

README

proof-of-green

[![CI](https://github.com/BekirEfeoglu/proof-of-green/actions/workflows/ci.yml/badge.svg)](https://github.com/BekirEfeoglu/proof-of-green/actions/workflows/ci.yml)

A Stop hook for Claude Code and Codex CLI that keeps the agent from saying "done" when it changed code and no test passed after the change. It reads the commands the agent actually ran and their real exit codes. It never runs tests itself and never trusts text the agent wrote about them. When something is missing it sends the agent back once, so the agent either runs the tests or tells you plainly why it can't.

It is one script with no dependencies. Node.js 18 or newer must be on your PATH, because the hooks call `node`.

What it looks like

The agent edits `add.js`, runs `npm test`, the test fails, and the agent tries to end its turn. It gets this back instead:

proof-of-green: you changed code (add.js) and the last test run after that change failed. Fix the failures and run the tests again, or report the failing tests to the user. Suggested command: `npm test`. If this project has no tests, or the user asked you not to run them, say so plainly and finish.

If no test ran at all, the first sentence says "no test command ran after the last change" instead. If a test ran but its exit code was hidden, for example by `npm test | tail` or `npm test; git push`, the reason names that command and says how to run it so the exit code counts. The gate blocks once per stop attempt, so an agent that still can't get a green run can finish by reporting that.

Quick start

Claude Code

This repository is its own plugin marketplace. In Claude Code:

/plugin marketplace add BekirEfeoglu/proof-of-green
/plugin install proof-of-green@proof-of-green

Or from a terminal:

claude plugin marketplace add BekirEfeoglu/proof-of-green
claude plugin install proof-of-green@proof-of-green

Start a new session afterwards; hooks are loaded when a session starts. To update later, run `claud