Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat 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-facing rule is backed by a gate that fails a commit, push, or CI run.

Dev & CodingAdvanced1446AI score 9/10Last updated: Sep 15, 2026

What it does

  • Discovers your repo (stack, test/lint commands, CI provider, architecture-contract candidates, history-derived domain facts) and confirms a single plan before touching files.
  • Writes AGENTS.md, AGENTS.project.md, CLAUDE.md, and agents/ instruction files from templates, migrating rules out of existing .cursorrules, Copilot instructions, or CONTRIBUTING.md row by row.
  • Adds gates in your own test runner and CI: instruction gate, proven-red test, PR body check, a ratchet with violation counters, and a mutation smoke for risky modules.
  • Proves each gate red with a scratch violation, reverts it, runs the full test command, and commits one logical change at a time.
  • refine mode audits ungated rules and stale contract symbols, then proposes the next rules and gates as one PR — deleting unjustified rules as readily as adding gates.

Who it's for

  • Teams and solo devs whose repos are mostly written by coding agents.
  • Anyone whose AGENTS.md/CLAUDE.md rules are ignored because nothing enforces them.
  • Maintainers who want quality debt tracked as numbers (ratchet counters) instead of vibes.

Examples

  1. gap-trap setup on a fresh repo: up to six contracts, a full gate set, an instruction word budget, and a report of which contracts are only Gate: review.
  2. gap-trap refine after your first incident: prunes dead rules, adds gates where code actually broke.
  3. Saying "gate the rules" or "make the agents' code match the rules" triggers the same workflow.

· · · 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 Claude 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 && mkdir -p ~/.claude/skills && cp -r /tmp/gap-trap/gap-trap ~/.claude/skills/gap-trap

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

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/pliablepixels/gap-trap.git /tmp/gap-trap
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill in: cp -r /tmp/gap-trap/gap-trap ~/.claude/skills/gap-trap
  5. Start Claude Code and switch to Opus with /model — the skill refuses to run on Sonnet or Haiku.
  6. From your target repository, ask for gap-trap setup.
  7. Review the plan summary and the file diffs before approving; the skill also installs the slop-mop skill into ~/.claude/skills.