AI product Open source

gap-trap

gap-trap is an installable coding-agent skill that reads a repository and generates repository-specific contracts, checks, and quality gates for AI-written code. Contracts document the approved way to handle areas such as HTTP, logging, settings, and authentication; gates fail commits or CI runs when those rules are violated. Its Proven Red CI job runs each new test against the old code and rejects tests that pass without the change, while ratchets track known problems such as lint backlogs or oversized files and allow their counts to decrease but not grow. It also creates playbooks from project lessons and installs the related slop-mop skill for agent-generated documentation, commit messages, and pull-request bodies. Node and Python repositories receive gates inside their test suites; other listed languages use shell-based gates requiring git, grep, awk, and the project test command. It is installed through the skills CLI or by copying the skill into Claude Code or Codex skill directories, and provides setup and refine commands. The repository is MIT-licensed.

View repository Visit site Mentioned in 1 video ↓

What gap-trap is used for

1 use taken from transcripts — each links to the moment in the video.

  • Turns coding guidelines into repository-specific checks for AI agents. It generates contracts and gates that can fail commits or CI, rejects tests that also pass against old code, and uses ratchets to prevent known problems from growing.

Videos mentioning gap-trap

1 in the library.