AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

gap-trap — Gated Quality Framework for Agent-Written Code

Installs and refines a repo quality framework where every agent rule names a gate that fails a commit, push, or CI run.

Dev & CodingAdvanced★ 181⑂ 9AI score 9/10Last updated: Oct 2, 2026

What it does

  • Discovers the repo (stack, test/lint commands, CI provider, contract candidates using real symbol names), shows a single plan for confirmation, then executes.
  • Writes the instruction layer (AGENTS.md, AGENTS.project.md, CLAUDE.md, agents/) from templates and migrates existing rules from .cursorrules, copilot-instructions.md, and CONTRIBUTING.md row by row — nothing is dropped silently.
  • Builds the actual gates in your test runner and CI: instruction-file gate, proven-red tests, PR body check, ratchet counters, and a mutation smoke for risky modules; each gate is proven red with a scratch violation, then committed as one logical change at a time.
  • refine mode audits rules without gates, contracts pointing at symbols that no longer exist, and recent history, proposing the next rules and gates as a single PR — and deletes rules with no incident behind them.

Who it's for

  • Teams and solo devs whose coding agents (Claude Code, Codex) write most of the code
  • Anyone tired of written-but-ignored project rules and wanting mechanical enforcement
  • Users who can edit pre-commit hooks and CI, and who run a top-tier model (Opus-class)

Examples

  1. gap-trap setup — bootstrap contracts, gates, hooks, and CI in a repo that has none.
  2. gap-trap refine — after the first incident, derive the next rule and gate from what actually broke.
  3. "gate the rules" / "make the agents' code match the rules" — convert prose rules in an existing AGENTS.md into ID'd rules with named gates.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/pliablepixels/gap-trap/HEAD/gap-trap/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the gap-trap folder from the GitHub repo pliablepixels/gap-trap into my ~/.claude/skills/gap-trap/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/pliablepixels/gap-trap.git /tmp/gap-trap && cp -r /tmp/gap-trap/gap-trap ~/.claude/skills/ && rm -rf /tmp/gap-trap

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repo to a temp folder: git clone https://github.com/pliablepixels/gap-trap.git /tmp/gap-trap
  3. Create the skills folder if needed: mkdir -p ~/.claude/skills
  4. Copy the skill in: cp -r /tmp/gap-trap/gap-trap ~/.claude/skills/
  5. Clean up: rm -rf /tmp/gap-trap
  6. Restart Claude Code — skill lists are loaded at session start.
  7. Switch to a top coding model with /model (Opus-class); on cheaper tiers the skill refuses to run by design.
  8. In your target repo, ask for gap-trap setup or gap-trap refine. Work on a branch: the skill commits changes and edits hooks and CI config.