graphify icon indicating copy to clipboard operation
graphify copied to clipboard

skill: six commands undocumented (incl. `affected`), and none of the silent-failure modes are covered

Open elecnix opened this issue 3 months ago • 1 comments

Feedback on the bundled Claude Code skill after using it for a full session. Installed via graphify install at 0.9.34: SKILL.md (710 lines) plus 8 files under references/, ~10,900 words total.

As a command reference it is genuinely good — the query/path/explain workflow is clear, --code-only and --out are covered, and the 5,000-node viz cap and orphan nodes both get a mention. Two gaps stood out in practice.

1. Six query/maintenance commands appear nowhere in the skill

Scanning all 9 markdown files for each command in graphify --help:

  • affected
  • tree
  • global (global add / remove / list / path)
  • check-update
  • merge-driver
  • diagnose multigraph

(The 15 platform-installer subcommands are also absent, which seems deliberate and fine.)

affected is the notable loss. It and explain were the two commands that most consistently returned precise, useful answers — affected gives a real blast radius by reverse traversal, which is exactly the question an agent is asked before a refactor. Because it isn't in the skill, an agent will never reach for it; I only found it by reading --help directly.

2. The skill documents the happy path, but the failures that bite are silent

This is the more important one. An agent reacts to errors. It cannot react to a command that exits 0 and prints a success line while producing wrong output — it will confidently build on the bad result.

Not covered anywhere in the skill:

what bites what an agent sees
cluster-only --backend X accepts the flag but never calls the LLM once a labels sidecar exists Done - N communities … updated. and Token cost: 0
tree --root <abs path> flattens the whole hierarchy to depth 2 an HTML file and a success line
GRAPHIFY_VIZ_NODE_LIMIT / GRAPHIFY_MAX_GRAPH_BYTES — the skill names the 5,000-node cap but neither env var that does anything about it Skipped graph.html, no route forward
OPENAI_BASE_URL for OpenAI-compatible gateways — (works, just undiscoverable from the skill)
the openai backend needing a separate graphifyy[openai] install a per-batch error repeated N times
.tf / .sql contributing zero nodes without graphifyy[terraform] / [sql] one warning line in a long extract log

The last one is worth a specific note: without the matching extra, files in those languages contribute nothing at all — not a degraded graph, an absent one. The warning exists and is well-worded, but it scrolls past in the middle of an AST progress dump — and the skill, which is what an agent actually reads, never mentions the extras exist.

I've filed the first two as tool bugs separately; they're listed here because the skill is the layer where an agent would otherwise catch them.

Suggestion

A short "it looks like it worked but didn't" section would carry more weight per word than any additional command coverage. Roughly:

  • how to verify a labeling run actually called the model (Token cost in GRAPH_REPORT.md) and that label — not cluster-only — is the command that re-labels
  • how to verify tree produced a real hierarchy (depth > 2)
  • what to do when graph.html is skipped, rather than only that it can be
  • the optional extras, and how to tell from the extract log that a language was dropped

Happy to open a PR against SKILL.md with a draft of that section plus the six missing commands, if that would be useful.

elecnix avatar Aug 07 '26 14:08 elecnix

One measurement in support of "affected is the notable loss", from a production monorepo (graphify 0.9.25, 8,437 nodes):

For the question "what calls buildWalletEvidence" — graphify query (natural phrasing) cost ~4,622 output tokens with the 4 real callers buried among ~90 nodes seeded off filler words; graphify affected "buildWalletEvidence()" returned exactly those call sites plus transitive reach at ~1,041 tokens. A 4.4× cost difference in favor of the command the skill never mentions.

The practical consequence matched your prediction: our agents never reached for affected until we hard-coded a routing table into the repo's own instructions (what-calls-X → affected, connectivity → path, exploration → query with a bare symbol). The bundled guidance routing "what calls X" to query is actively the wrong answer for the tool's own best command.

austxio avatar Aug 10 '26 23:08 austxio