brainstorming
OBobra/superpowers298k2,631 new stars in the last 7 days
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.
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.
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.
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.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-in symbols are already widely composed — prefer extending them over reimplementing; treat a
high-churn/high-amp one as something to touch carefully and test around.ripwire <dir> --exemplar=fn|method|class|struct|iface|var --legend=compact
or --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 ranked tested=1 first, 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.)ripwire <dir> --lego=I --legend=compact (or --lego=file:I to 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 an I.After the recall + --for above:
in > 0, the approach is partially implemented — build
on it. If --recall shows it was decided against, stop.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.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".--for (above) — check whether any existing symbol already solves part of the problem. Low in=
= an underused candidate to extend or replace; high in= = load-bearing, extend cautiously.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.ripwire <dir> --impact=SYM --legend=compact. Large reaches= → 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.ripwire <dir> --around=SYM --legend=compact --metrics [--around-depth=2] → the ego
graph with ranks + call edges. --metrics is what adds the in= fan-in annotation (bare --around
emits none); high-in= symbols are already acting as the de-facto API surface.ripwire <dir> --seams --legend=compact. If your subsystem straddles a <seam from="X" to="Y">, that's where the interface belongs.ripwire <dir> --callers=SYM --legend=compact for the top 2–3 in the ego graph.
Callers from outside the subsystem's directory are the external clients the interface must serve.ripwire <dir> --deps --legend=compact, skim instab=. 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.ripwire <dir> --impact=SYM --legend=compact → reaches="N" is the blast-radius symbol count
(count distinct p= files for the file count); defs="D">1 means overloads, each a separate blast root.ripwire <dir> --affected=fileA.cpp,fileB.h --legend=compact (the files defining SYM, from
--impact). tests="0" = no test cover — flag it.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.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).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.
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days