Who it is forA developer whose AI agent writes most of the code in a repo and who has noticed drift, such as duplicate helpers or layer-boundary breaks, that nobody reviewed.
The problemAgents follow written rules only until they forget them, and nothing blocks a broken rule from being committed.
The outcomeThe repo has contracts, gates that fail commits or CI runs on broken rules, ratchets for known problems, and playbooks, all committed locally without a push.
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
npx skills add pliablepixels/gap-trap- Open the target repository in Claude Code or Codex and run
/gap-trap setup. - Read the short plan the skill shows (contracts, gates, commands) and answer its questions.
- Review each generated contract line by line, since the README says this is the most important review step.
- Check the commit the skill made and confirm nothing was pushed.
Prompt for your agent
In the repo at <repo-path>, run `/gap-trap setup` after confirming gap-trap is installed with `npx skills add pliablepixels/gap-trap`. Report the list of contracts and gates the skill proposed and the commit it created. Verify that `git status` is clean and that no push happened.
Caveat. The README warns that generated contracts must be validated carefully, and the skill is designed to run only on the top coding model of the harness.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for pliablepixels/gap-trap and "Set up gates so agent code stays correct"
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