software-factory
MAmattpocock/skills336k4,217 new stars in the last 7 days
A call-graph question the fixed verbs can't phrase — 'which high-complexity functions can reach X?', 'what has 10+ callers in src/?', 'untested symbols within one hop of main'. --graph-query: a closed expression language — kind, complexity, fan-in, tested filters; a file or cluster; bounded hops; and/or/not.
One-hop questions have cheaper verbs — ripwire-navigate (
--callers,--callees,--uses,--path,--impact). Use--graph-queryonly to COMBINE conditions. Repo-wide architecture health → ripwire-layers.
ripwire <dir> --graph-query='EXPR' evaluates a small closed expression language (no user rules, no unbounded
recursion) to a deterministic, importance-ranked node set capped at --top-k (default 200). Single-quote it.
| Kind | Form | Meaning |
|---|---|---|
| source | name("X") · all | symbols named X · every indexed symbol |
| filter | kind(EXPR, K) | keep kind K: fn method cls struct iface var sec |
| filter | cx(EXPR, N) · fanin(EXPR, N) | complexity ≥ N · caller count ≥ N |
| filter | file(EXPR, "RE") | file path matches the ECMAScript regex RE |
| closure | callers(EXPR [, D=1]) · callees(EXPR [, D=1]) | nodes that reach / are reached within D hops |
| join | and(A, B) · or(A, B) · not(A, B) | intersection · union · A minus B |
# the refactor short-list, then its blast radius (≤3 hops)
ripwire <dir> --graph-query='and(cx(all,15),file(all,"src/"))'
ripwire <dir> --graph-query='callers(and(cx(all,15),file(all,"src/")),3)'
# the de-facto API surface: 10+ callers
ripwire <dir> --graph-query='fanin(all,10)'
One expression answers one question; narrow file(...) to your target before trusting the numbers. count= vs shown=
says whether the cap bit. Closures walk name-based edges (dynamic dispatch, callbacks, macros can be missing). A
malformed expression reports the parse error and yields nothing — never half an answer.
graph-query-reference.md — refactor planning with cluster + blast radius, the full operator table, every verified
example, calibration.
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days