Skip to content
Back to skills

Ripwire Quality Bar

ASecurity

Code QUALITY of what YOU just wrote, before commit or 'done', or a cleanup: --quality-delta lists what got WORSE; exit 2 if old code did (new-symbol rows never gate, except defect-shape format-arity, a new function at the ceiling and a tangled new one). Merge safety → change-check. Even a single-line leaf fix runs it.

  • 2,592 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
ai-agentsgobashrailsgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add redhat-et/ripwire --skill ripwire-quality-bar --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ripwire Quality Bar?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ripwire Quality Bar
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/redhat-et-ripwire-quality-bar/badge)](https://www.skillsdirectory.com/skills/redhat-et-ripwire-quality-bar)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ripwire-quality-bar
description: >
  Code QUALITY of what YOU just wrote, before commit or 'done', or a cleanup: --quality-delta lists what
  got WORSE; exit 2 if old code did (new-symbol rows never gate, except defect-shape format-arity, a new
  function at the ceiling and a tangled new one). Merge safety → change-check. Even a single-line leaf fix runs it.
allowed-tools: Bash, Read
---

# The quality-bar convergence loop

> Routing: merge safety, tests to run → **ripwire-change-check** (run this skill FIRST, then its `--test-gate`) · reuse
> before writing → **ripwire-reuse-first** · rot in code you did not write → **ripwire-fresh-eyes** · a memory-layout
> hypothesis → **ripwire-perf-target**.

Measure the delta, don't eyeball it. Even a single-line leaf fix runs it: the warm run is well under a second.

## The one call

```
ripwire <dir> --quality-delta --legend=compact
```

In a git repo it compares the working tree with `git HEAD` (`baseline="git-HEAD"`) and lists only what YOUR change made
worse, across 14 kinds (complexity, verbosity, nesting, params, duplication, dead-code, api-surface, error-masking,
short-horizon-churn, new-clone-of-reused-helper, placeholder, defect-shape, tangle, coupling). **Watch `verbosity` hardest** —
LOC growth is the most-measured agent failure mode. Long multi-commit change? `ripwire <dir> --quality-baseline` FIRST,
on a clean tree, so later runs delta against where you started (dirty tree: refused; `--allow-dirty` pins anyway and
stamps `baseline_absorbed="N"`).

## Read the exit code — it is narrower than it looks

Exit 2 = at least one row gates, exactly the header's `gating="N"`: major, unacked, in scope, on code that already
existed (`preexisting-worse`), or one of three new-symbol exceptions — defect-shape format-arity, a new function at the
ceiling, a new function at tangle 6 or more — or a `coupling` `new-cycle` row, unless every file the change put in the
cycle is test code. Read `gating=`, not `regressions=`. **Exit 0 means no row gated, NOT
"clean"**: open the `origin="new-symbol"` rows — they are the debt you are adding. Moved code: unchanged keeps its
identity, a small edit reads `origin="moved"` and never gates, a rewrite reads as new — so on a moving diff the exit
code is weak evidence. Before an extract-method fix, read `ev=` on the `cx=` row: absent or `ev="1"` = mechanical.

## Stop rule

A `gating="0"` run on a leaf fix that keeps the signature and adds no branch, symbol, dependency or abstraction is
confirmation: stop. Drill-down, `--dmm`, acking and a second round are for a run that reported something. Otherwise fix
the real rows, re-run, converge; two rounds without progress → report what remains.

## Reference files — read only the one the answer sends you to

| You need | Read |
|---|---|
| the wide-angle `--quality-panel` read (six evidence families) | `panel.md` |
| the full loop: exit-code contract, exemptions, idiom demotions, acking (`--quality-ack`) | `loop.md` |
| a flagged row: zoom in (`--dmm`, drill-down per kind) | `drill-down.md` |
| which refactor a shape calls for, and the loop that proves it landed | `playbook.md` |
| paying down EXISTING debt; guardrails; CI / pre-commit wiring | `debt-ci.md` |
| every metric's definition and threshold | `quality-metrics.md` |

Files in this skill

  • SKILL.md30.5 KB
  • quality-metrics.md12.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.