Who it is forA developer whose agent writes tests that check that code ran rather than that it did the right thing.
The problemA test that cannot fail proves nothing, and agents often write tests like that.
The outcomeA CI job that flags each new test that also passes on the old code, so weak tests are caught before merge.
What you need first
- A git repository you want to set up
- Claude Code (Opus or better) or Codex (frontier coding model at high reasoning), since the skill stops on smaller models
- The skills CLI via npx, or a git clone for a manual install
- Your repo's test command, and git, grep, and awk for non-Node and non-Python repos
Steps
- Run
/gap-trap setupin the repository so the proven red CI job is added. - Open a PR that adds a new test.
- Check the proven red CI job result for that PR.
- If the job fails, rewrite the test so it fails on the old code and passes on the new code.
Prompt for your agent
In the repo at <repo-path>, after gap-trap setup, open a PR that adds one new test. Report the result of the proven red CI job for that PR. Verify that the job ran in CI and not only locally.
Caveat. The README says proven red runs only in CI, so you will not see its result from a local run.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for pliablepixels/gap-trap and "Catch tests that pass against old code in CI"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer