ripwire-before-you-build
Skill2.4k starsChanged 3 months agoApache-2.0View on GitHub
Starting a FEATURE (multi-symbol work): the plan, the API boundary, the scope — how big does this change get — from the codebase's real structure. Implementing an EXISTING interface? --lego=Iface lists its contract and current implementors. ONE standalone symbol → reuse-first. A small feature with an obvious home needs none of this.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about redhat-et/ripwire
- A Hacker News story“ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo”Hacker News · Sep 7, 2026 · 19 points
- @icecodenew.bsky.social“#TIL github.com/redhat-et/ri... > Point it at any repository and your agent gets a ranked, deterministic …”Bluesky · Sep 6, 2026 · 3 likes
- A Hacker News story“The Ripgrep of AI Context”Hacker News · Sep 8, 2026 · 2 points
- @akanoa.bsky.social“On se débarrasse enfin du code! On descend à l'AST et bientôt plus bas. Ce n'est qu'une question de temps. …”Bluesky · Sep 8, 2026 · 1 likes
- @hn100.bsky.social“ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo Discussion”Bluesky · Sep 7, 2026 · 1 likes
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub, Bluesky and Hacker News (14 times).
On GitHub · 9
- Oct 3, 2026agent-skills.github.redhat-et.ripwire: 0.6.2 → 0.6.5 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.redhat-et.ripwire: init at 0.6.2 — sudosubin/agents.nix0 reactions
- Sep 29, 2026ripwire: 0.6.1 -> 0.6.5 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 24, 2026docs(non-cc): screenshot-lead research batch 13 (plan 0008 row 20) — qte77/ai-agents-research0 reactions
- Sep 21, 2026feat(setup): the ripwire hint names the upstream repository, in setup and both installers (D178) — dimitritholen/tasqx0 reactions · 3 comments
4 more on GitHub
- Sep 20, 2026Candidate: ripwire, a repo map for coding agents — cinjoff/firehorse0 reactions
- Sep 19, 2026ripwire: 0.5.0 -> 0.6.1 — NixOS/nixpkgs0 reactions · 4 comments
- Sep 10, 2026Static analyzer flags prompt-injection example text inside fenced code blocks as CRITICAL — runkids/skillshare0 reactions · 2 comments
- Sep 7, 2026Qualify ripwire as local code-intelligence/context source candidate — TheHalfMoon/Golam0 reactions
On Bluesky · 3
- Sep 6, 2026#TIL github.com/redhat-et/ri... > Point it at any repository and your agent gets a ranked, deterministic call graph — what to touch, what… — @icecodenew.bsky.social3 likes and reposts · 1 reply
- Sep 8, 2026On se débarrasse enfin du code! On descend à l'AST et bientôt plus bas. Ce n'est qu'une question de temps. github.com/redhat-et/ri... — @akanoa.bsky.social1 likes and repost · 1 reply
- Sep 7, 2026ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo Discussion — @hn100.bsky.social1 likes and repost
On Hacker News · 2
- Sep 7, 2026ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo19 points · 14 comments
- Sep 8, 2026The Ripgrep of AI Context2 points
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- emitting-outputSkill
- ripwire-repo-mapSkill
- ripwire-change-checkSkill
- ripwire-find-bugSkill
- ripwire-fresh-eyesSkill
- ripwire-graph-querySkill
- ripwire-handoffSkill
- ripwire-layersSkill
- ripwire-mcpSkill
- ripwire-navigateSkill
- ripwire-opt-remarksSkill
- ripwire-orientSkill
- ripwire-perf-targetSkill
- ripwire-quality-barSkill
- ripwire-reuse-firstSkill
- ripwire-routerSkill
- ripwire-security-scanSkill
- ripwire-write-testsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Run only the sections your question needs — they share the same building blocks.
- Very specific: line 55
After the recall + --for above:
- Very specific: line 56
If highly-relevant symbols already exist with in > 0, the approach is partially implemented — build on it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Before you build — with ripwire
Routing: • Writing ONE symbol (fn/class/helper) and want to reuse rather than reinvent → ripwire-reuse-first. • You've already written the change and want the pre-submit check → ripwire-change-check. • You want to judge whether the code you wrote got better/worse → ripwire-quality-bar. • Restructuring EXISTING code (not new work) → ripwire-fresh-eyes. • Not sure which skill? → ripwire-router.
<dir> = repo root. FEATURE/APPROACH = your task in 2–4 plain words; SYM = a representative symbol.
Run only the sections your question needs — they share the same building blocks.
Common first move — recall + reusable blocks
Almost every section starts here; do it once. One-call shortcut: ripwire <dir> --pack-task="FEATURE" --legend=compact
assembles the recall + --for ranking + top bodies + caller signatures + notes + tests_to_run into ONE
bundle under one token budget — reach for it first instead of firing the calls below one at a time; drop to
the individual calls only when you need a specific section's full output.
- Recall prior decisions —
ripwire <dir> --recall="FEATURE"→ full bodies of the most relevant markdown docs (planning/design notes, READMEs) ranked by relevance. If a doc already covers this, read it fully — the decision may be made. Look for explicit "rejected" / "future work" language. - Reusable building blocks — the one-call write-mode bundle —
ripwire <dir> --for="FEATURE"→<sigs>ranked by task-relevance, each carrying the quality lens in the same call:cx/ccx(complexity),in/amp(reuse count / change-amplification),churn(recent-commits),clone="1"(duplicated),tested="1", plus the inline<doc>block. That's read-context-and-quality-signal in ONE call — you learn what to reuse AND what's fragile (high-churn, high-amp, cloned, or untested) before you write a line, not after. High-insymbols are already widely composed — prefer extending them over reimplementing; treat a high-churn/high-ampone as something to touch carefully and test around. - The shape to imitate for each new symbol —
ripwire <dir> --exemplar=fn|method|class|struct|iface|var --legend=compactor--exemplar="<the sub-task in words>"(top match's kind inferred) → the repo's single best-in-class instance of that shape — cognitive complexity must clear an eligibility ceiling first (a blob can never win no matter how reused/tested), then among eligible candidates it's rankedtested=1first, highest fan-in second, lowest cognitive-cx as the final tie-break — full body under<bodies>. Run it per new symbol the feature adds so each one copies a proven shape (structure, error handling, naming) instead of being invented from memory. (Deep-dive on exemplar-by-ROLE → ripwire-reuse-first.) - Implementing against an interface? —
ripwire <dir> --lego=I --legend=compact(or--lego=file:Ito disambiguate a same-named type) → the interface's method contract (the exact signatures you must satisfy) plus every existing implementor, own-language only. Read one existing impl as the template so your new one matches the house pattern (method order, error handling, registration) instead of guessing the shape from the interface alone. The single highest-value call when the thing you're building has to satisfy anI.
Feasibility spike — "is this approach even viable?"
After the recall + --for above:
- If highly-relevant symbols already exist with
in > 0, the approach is partially implemented — build on it. If--recallshows it was decided against, stop. - Integration seams —
ripwire <dir> --seams --legend=compact→<seams>(untested cross-module edges). If your approach must connect two modules with no test-covered seam between them, that's an integration cost. - Coupling cost —
ripwire <dir> --deps --legend=compact(skim<godfiles>+shape=). Adding a dependency on a god-file adds coupling cost for every future change — flag it. → Verdict: "build on existing" / "greenfield but seams exist" / "needs new seam, flag risk".
Plan — "give me the ordered implementation steps"
- Recall +
--for(above) — check whether any existing symbol already solves part of the problem. Lowin== an underused candidate to extend or replace; highin== load-bearing, extend cautiously. - Integration seams —
ripwire <dir> --seams --legend=compact. Each seam is a wiring point; your plan should name which seam(s) the new code wires through, and add a test at each new seam it creates. - Impact of anything you'll modify —
ripwire <dir> --impact=SYM --legend=compact. Largereaches=→ plan a staged rollout or a compatibility shim. → Plan: ordered steps (recall → design → wire seams → write tests → implement), each naming the specific file+symbol to touch, the blast radius of any modification, and its test gate (from--affected). Flag any step that creates a new seam without a test.
Interface — "what should the boundary / API look like?"
- Neighborhood of the subsystem —
ripwire <dir> --around=SYM --legend=compact --metrics [--around-depth=2]→ the ego graph with ranks + call edges.--metricsis what adds thein=fan-in annotation (bare--aroundemits none); high-in=symbols are already acting as the de-facto API surface. - The seam it lives on —
ripwire <dir> --seams --legend=compact. If your subsystem straddles a<seam from="X" to="Y">, that's where the interface belongs. - Who currently crosses the boundary —
ripwire <dir> --callers=SYM --legend=compactfor the top 2–3 in the ego graph. Callers from outside the subsystem's directory are the external clients the interface must serve. - What to hide —
ripwire <dir> --deps --legend=compact, skiminstab=. High-instability internal files (leaves) stay behind the interface; stable (low-instability) files may be safe to expose. → Proposal: the 3–5 high-fan-in, called-from-outside symbols that form the natural API surface, the seam they live on, and the internal symbols to hide. Write it in terms of callers' needs, not internals.
Sizing rubric — "how big is this change?"
- Blast radius —
ripwire <dir> --impact=SYM --legend=compact→reaches="N"is the blast-radius symbol count (count distinctp=files for the file count);defs="D">1means overloads, each a separate blast root. - Affected tests —
ripwire <dir> --affected=fileA.cpp,fileB.h --legend=compact(the files defining SYM, from--impact).tests="0"= no test cover — flag it. - Caller-stack depth —
ripwire <dir> --callers=SYM --legend=compact, then spot-check--callers=<top-caller>one level up. A 2-hop caller graph is a tactical change; 5+ hops is architectural. - Hidden coupling —
ripwire <dir> --cochange=fileA.cpp --legend=compact;surprising="1"partners must be verified manually even if not in the blast radius. → Classify: local (≤5 blast, tests exist) / moderate (5–20) / wide (>20 or no tests).
Honesty
ripwire maps structure, not data flow; seams/impact are name-based (dynamic dispatch/callbacks/macros can be missing). Compose from what exists; note what's genuinely missing rather than reinventing it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

