Skip to content
Back to skills

Ripwire Graph Query

ASecurity

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 filters kind, complexity, fan-in, tested, file or cluster, bounded hops.

  • 2,592 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
ai-agentsrustbashnodeexpressapi

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Ripwire Graph Query?

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

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

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-graph-query
description: >
  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 filters kind,
  complexity, fan-in, tested, file or cluster, bounded hops.
allowed-tools: Bash, Read
---

# 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.

| 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)'
```

## 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.

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 ai-agents →

Comments

Loading comments…

Newsletter

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