跳到主要内容
知仓学习社ZHICANG

graphify-integration

|

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。