Works with the AI Agents you already use

    fakegreen: catch faked green builds

    by Joshua Almeida

    1

    A deterministic, no-LLM check that stops an agent calling a build green after skipped tests, weakened assertions, or a CI shortcut. Run npx fakegreen before you say the work is done.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    fakegreen: catch faked green builds

    fakegreen: catch faked green builds

    Example session with this skill installed

    "The tests are green on this branch. Finish the PR and say it's ready to merge."

    • Read your context and instructions
    • Compiled the fakegreen

    The agent is about to report success. The branch changed src/total.py and tests/test_total.py. The real test suite printed 4 passed. Before agreeing, the agent runs npx fakegreen --base origin/main --json.

    The report is not clean. Findings:

    1. High: tests/test_total.py — the case test_empty_basket_is_zero was changed from a hard assertion (assert total([]) == 0) to assert total([]). The empty-basket path can now return a missing value and still pass.
    2. High: .github/workflows/test.yml — pytest was followed by || true, so a failing job would still exit 0.
    3. Medium: src/total.py — a new branch, if os.environ.get("PYTEST_CURRENT_TEST"): return 0, makes the function behave differently under test.

    The agent does not open a pull request and does not say the work is done. It puts the || true back to a plain pytest invocation, removes the test-only branch in src/total.py, and restores assert total([]) == 0. It runs pytest again; test_empty_basket_is_zero now fails because total([]) returns None. After fixing total([]) to return 0, pytest is green and npx fakegreen --base origin/main exits 0 with no findings.

    Result, as reported to the user: "I didn't treat the first green run as proof. fakegreen found a weakened empty-basket test, || true on the CI pytest step, and a test-only branch in total(). I reverted those, fixed total([]) to return 0, and re-ran pytest plus fakegreen. Both are clean now. The PR body should mention the empty-basket fix. I have not merged anything."

    Connects securely to your tools. The creator never sees your data.

    About this skill

    fakegreen is a skill plus a command-line checker for a common failure mode in coding agents: the test run is green, but only because a test was skipped, deleted, or loosened, an assertion was weakened, or CI was told to ignore failure.

    The skill tells the agent never to do those things to get a passing run, and to verify with npx fakegreen before it says the work is done. The checker itself is deterministic. It reads a git diff. It does not call a model and does not need an API key.

    Typical findings include skipped or focused tests, assertions changed to toBeTruthy or assert True, expected values edited to match wrong output, new ignore comments, || true or continue-on-error in CI, product code that behaves differently when NODE_ENV is test, and empty catch blocks added only to stop a failure.

    If fakegreen reports findings, fix the underlying code, not the signal. If a flagged change is truly intended, stop and tell the user. Do not add an ignore waiver unless the user agrees. If you cannot make the suite pass, say what failed. A truthful red beat is better than a fake green.

    This listing is free. The same skill and tool are also available under MIT in the public repository linked above.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    Software
    Node.jsGit

    Permissions

    Environment Variables
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    A deterministic, no-LLM check that stops an agent calling a build green after skipped tests, weakened assertions, or a CI shortcut. Run npx fakegreen before you say the work is done.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use fakegreen: catch faked green builds on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.