AGENT SKILL

graphify-integration

Optional knowledge-graph integration. When `graphify-out/graph.json` is present, architect/researcher/reviewer/task-builder agents can query symbol-level dependencies (IMPORTS, CALLS, EXTENDS, IMPLEMENTS, DEPENDS_ON) instead of grepping. Degrades gracefully when the graph is missing. Trigger phrases: "knowledge graph", "graphify", "blast radius", "dependency graph".

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1.6k
Forks
491

01 前言 Front Matter

name
graphify-integration
description
Optional knowledge-graph integration. When `graphify-out/graph.json` is present, architect/researcher/reviewer/task-builder agents can query symbol-level dependencies (IMPORTS, CALLS, EXTENDS, IMPLEMENTS, DEPENDS_ON) instead of grepping. Degrades gracefully when the graph is missing. Trigger phrases: "knowledge graph", "graphify", "blast radius", "dependency graph".

03 SKILL.md 正文

Graphify Integration

A knowledge graph turns "what will break if I change this file" from a guess into a query. Cavekit uses it only when it is available — nothing in the pipeline depends on it.

Installation (optional)

pip install graphifyy
graphify build .          # writes graphify-out/graph.json

If the file is missing, this skill returns no-ops and every caller falls back to grep + ripgrep search.

Graph shape

NetworkX node-link JSON. Nodes are symbols (functions, classes, modules). Edges carry:

  • type: DEPENDS_ON | IMPORTS | CALLS | EXTENDS | IMPLEMENTS
  • confidence: EXTRACTED (high) | INFERRED (medium) | AMBIGUOUS (low)
  • community: cluster ID (for partitioning big graphs into readable slices)

CLI surface (via cavekit-tools)

cavekit-tools.cjs graph-status                 # is the graph present?
cavekit-tools.cjs graph-query --term auth      # search by name substring
cavekit-tools.cjs graph-dependents --file X    # who imports/calls this?
cavekit-tools.cjs graph-summary                # top-level community list

(These subcommands are optional extensions; the base cavekit-tools.cjs ships without them, and they activate only if graphify-out/graph.json is present.)

Per-phase use

  • Draft (/ck:sketch) — query existing symbols for a proposed kit name to avoid collision with existing code.
  • Map (/ck:map) — use community IDs to partition tasks into coherent tiers. Two tasks whose affected symbols share no edges can run in parallel.
  • Research (ck:researcher) — query existing before fetching external. If the graph already answers the question, skip the web.
  • Build (/ck:make) — load the subgraph of the current task's files only. Smaller context → faster, cheaper agent.
  • Review / Inspect — compute blast radius of the diff. Files touched ∪ transitive dependents = review scope.

Confidence tiers

Do not treat low-confidence edges (AMBIGUOUS) as true without verification. When blast radius includes an AMBIGUOUS edge, fall back to grep and confirm.

Stub mode

When the graph is missing, every graph-* query returns:

{ "available": false, "fallback": "grep" }

Callers check available and fall back to Grep + Read. No error is raised — this is a degradation, not a failure.

04 同仓库更多 Skills

hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-review-with-annotations

Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-find-and-synthesize-context

Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-update-docs

Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-records

Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-interactive-html

Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-collaborate-threads

Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.

★ 1.6k