Proof Of Green — Testing skill for Claude Code
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
- #29 — #52, #103) 92.5k ★
- Marketing Skills Versions — Current versions of all skills 13.8k ★
- Test After Change Diagnostics.V1 — If any program code changes, run unit-tests and follow up on the test-result (fix code if there is an error) 272 ★
README
proof-of-green
[](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
Related Skills
Bec TDD
Describe one observable behavior in a focused regression, run it and inspect the expected failure, implement t
Agent Workspace Template
File-based memory for AI coding agents. Requirements, decisions, tasks and test evidence in plain Markdown, so
Faceless Tech Explainer Skill
Free Claude Code & Codex skill: Use to produce a faceless tech video of 2-5 minutes - a tutorial, an AI tool t
St Work
Execute a change end to end: frame, research, plan, build with sub-agents, prove with gates, review loop, QA c
Byte Rosetta
Agent skill: decode an undocumented data file you own (game save, device export, project file) into a tested f
Code Quality Skill
Deterministic code quality gate for AI coding agents (Claude Code, Codex, pi): git hooks that block test tampe
Related Agents
Mk300 Preset
Use to read or edit presets on the MK-300 over USB: show, load, change a model or knob, turn blocks on/off, bp
Git Integration Expert
Expert in integrating git into desktop apps (git2/libgit2, gix). Use when designing or implementing file statu
Session Orchestrator
Orchestrates LibreSessionFlow Grok skills for continuity — handoff, digest, absorb, pickup, resume. Use when e