Skip to content
Back to skills

Ripwire Layers

ASecurity

Architecture HEALTH and ENFORCEMENT — 'is this a dependency mess / enforce module boundaries in CI?': cycles, the godfile, propagation cost, --arch rules with a baseline gate. Overview → orient. One pass answers it.

  • 2,592 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
developmentrustgobash

Security analysis

A100/100

Scanned December 5, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Ripwire Layers?

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

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

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-layers
description: >
  Architecture HEALTH and ENFORCEMENT — 'is this a dependency mess / enforce module boundaries in CI?':
  cycles, the godfile, propagation cost, --arch rules with a baseline gate. Overview → orient. One pass
  answers it.
allowed-tools: Bash, Read
---

# Layers with ripwire

> Routing: coupling risk in YOUR OWN diff → **ripwire-change-check** · a general risk sweep → **ripwire-fresh-eyes** ·
> an overview without gating → **ripwire-orient**.

Every metric has a NUMBER → THRESHOLD → ACTION; do not stop at reporting it.

| Question | Run | Act on |
|---|---|---|
| enforce "ui/ never imports db/" in CI | `ripwire <dir> --arch=rules.txt` — `layer NAME = substr…`, `deny FROM -> TO`, `allow FROM -> TO`; exit 2 = NEW violations | fix each, or `allow` it with a reason |
| adopt rules on a codebase with existing debt | `ripwire <dir> --arch=rules.txt --baseline` (commit `.ripwire_arch_baseline`; later runs fail only on NEW ones) | `--baseline-update` only in its own reviewed commit |
| is this a dependency mess? cycles, god files | `ripwire <dir> --deps --legend=compact` | `nccd` < 0.25 healthy; `shape` horizontal good; top-3 godfiles by `afferent` → layers with `deny` rules; a cycle in `--report` first |
| feed the whole import graph to another tool (Ca/Ce, cycles, your own metric) | `ripwire <dir> --dump-graph --role=import` — one uncapped JSON document; `totals` are totals, `omitted` counts lazy and unresolved imports and unread tsconfig bases | a `languages[].fileEdges` of `unmeasured` means that language's edges are not a total (Go may still show a few through an in-tree `go.mod` replace), never "no imports" |
| how far does a touch ripple? | `<metrics propagation_cost=>` from `--arch` (lower is better; > 0.3 worth a look) | the `<m path= ca= ce=>` rows show which directories drive it |
| where modules couple across boundaries | `ripwire <dir> --communities --legend=compact` | a high `<bridge>` count between non-adjacent clusters → a `deny` rule |

Trust god-files and cycles hardest — `afferent` and cycles are validated defect predictors; `nccd` and Martin's
`I`/`A`/`D` are design heuristics. A row with `no_file_edges=` is a language whose imports rarely resolve to files: an
absent number means not measured, never zero.

## Stop rule

One pass answers it: run the matching row, classify healthy / at-risk / needs restructuring, and for anything at-risk
name the boundary to formalize (which layer, which `deny` rule).

## Reference file

`layers-reference.md` — the rules grammar and baseline workflow, propagation cost, dependency health, module
clustering, the Mermaid view, the Output shape.

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 development →

Comments

Loading comments…

Newsletter

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