Add guidance to SKILL.md on when building a graph is (and isn't) worth it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
graphifyスキルのSKILL.mdを見つけ、既存のビルド手順を読んでください。その前に、issueの事例と指針を使って、直接検索する場合とグラフを構築またはクエリする場合を説明する短いセクションを追加してください。このセクションが既存のグラフ、単発の検索、グラフ構築が有効な状況を扱っていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Ran the skill end-to-end today (sample corpus + a real ~200-file project) and it delivered genuinely good results — correct AST extraction, accurate cross-referencing between code and doc semantic layers, and the cohesion/god-node/surprising-connections analysis surfaced real findings (an architectural smell, a cross-doc duplicate derivation, etc.).
One gap: the skill has no guidance on when the full pipeline is worth its cost vs. when a plain code search would do. In practice:
- A single targeted lookup ("what calls
X", "where isYdefined") on an ordinary-sized codebase is answered just as well, instantly and for free, bygrep/ripgrep/Read. Building the graph first is pure overhead for that case — AST extraction is fast and free, but semantic extraction on docs dispatches subagents and can take minutes and tens of thousands of tokens, even for a modest doc set. - The graph earns its cost when: there will be many repeated questions (amortized build cost), the corpus is large/unfamiliar and the user needs orientation, the question needs cross-file/cross-type links text search can't see (doc ↔ code, cross-doc semantic duplicates), or the question is structural (cohesion, bridging nodes, import cycles) rather than textual.
Right now the skill (reasonably) defaults to building on /graphify <path>, which is fine when the user explicitly asks for that — but when an agent is deciding on its own whether to reach for graphify vs. a direct search for a one-off question, there's no steering in SKILL.md toward the cheaper option first.
Suggested addition: a short "is a graph worth it here" section before the build steps, something like:
Building costs real time and tokens: AST extraction on code is free and fast, but semantic extraction on docs/papers/images dispatches subagents (minutes, tens of thousands of tokens), and a full pipeline run is overhead you pay once per corpus state. Don't pay it reflexively.
If
graphify-out/graph.jsonalready exists for this corpus, always query it rather than re-deriving the answer by reading files or rebuilding — that cost is already sunk and querying is cheap.If no graph exists yet, check whether the request is a single, targeted lookup a plain code search would answer just as well — "where is X defined", "what calls Y", "find the function that does Z" on a codebase of ordinary size. For these, grep/ripgrep/Read is faster, free, and exact. Say so and just search directly; offer to build the full graph instead only if the user wants it.
Building (or updating) the graph earns its cost when:
- You expect many future questions against this corpus — the build cost amortizes.
- The corpus is large or unfamiliar and the user needs orientation (god nodes, communities).
- The question needs cross-file or cross-type connections text search can't see.
- The question is structural/architectural, not textual.
Happy to turn this into a PR against SKILL.md if that's useful.
Separately filed one small fix noticed during testing as a PR: #4830 (graphify query --help ran a literal query instead of showing usage). The other thing I initially flagged (hyperedge members/nodes field mismatch) turned out to already be intentionally handled in build.py (#1561) — not a bug, so no PR for that one.
- 主要言語
- Python
- スター
- 124k
- フォーク
- 11.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Graphify-Labs/graphify のほかの issue
-
Cache the claude backend system prompt via Anthropic prompt caching対応中かも @Jvxoq が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4835 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4831 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
hooks: last-resort `python3` probe launches the Microsoft Store redirector on Windows (visible console flash, exit 9009)対応中かも @Deepjyoti-Sarmah が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4563 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
GRAPHIFY_DISABLE_THINKING is ignored by the claude backend, so thinking eats max_tokens and extraction truncates対応中かも @bercedev が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
Graphify-Labs/graphify#4546 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
--update runbook: graph.json backup instruction comes after the diff that needs it, so the graph diff never runs対応中かも @sunildivakar96-cpu が 10 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Graphify-Labs/graphify#4539 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Graphify-Labs/graphify の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
glossyio/traffic-monitor#264 ·
メンテナーはふだん 1 日以内に返信
-
Add self-hostオープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
Atarity/deploy-your-own-saas#102 ·
-
[Bug]: RDFlex silently drops the covariate adjustment when the outcome or treatment column is integer-typed対応中かも @vrjdev が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DoubleML/doubleml-for-py#424 ·
メンテナーはふだん 1 日以内に返信
-
agentic-dmx docs enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
521xueweihan/HelloGitHub#4150 ·