跳到正文
FunCoding

ripwire-graph-query

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.

Star
2,585
分类
其他
许可证
Apache-2.0
最近提交
2026年12月1日

skills/ripwire-graph-query/SKILL.md

在 GitHub 上查看

Graph queries with ripwire

One-hop questions have cheaper verbs — ripwire-navigate (--callers, --callees, --uses, --path, --impact). Use --graph-query only 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.

KindFormMeaning
sourcename("X") · allsymbols named X · every indexed symbol
filterkind(EXPR, K)keep kind K: fn method cls struct iface var sec
filtercx(EXPR, N) · fanin(EXPR, N)complexity ≥ N · caller count ≥ N
filterfile(EXPR, "RE")file path matches the ECMAScript regex RE
closurecallers(EXPR [, D=1]) · callees(EXPR [, D=1])nodes that reach / are reached within D hops
joinand(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)'

Stop rule and trust

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.

Reference file

graph-query-reference.md — refactor planning with cluster + blast radius, the full operator table, every verified example, calibration.

相似的 Skill

software-factory

MAmattpocock/skills336k近 7 天新增 4,217 个 star

claude-handoff

MAmattpocock/skills336k近 7 天新增 4,217 个 star

agent-payment-x402

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

agent-self-evaluation

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

bengali-nlp

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

ponytail-gain

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star