AGENT SKILL

graphify

Build/query a navigable knowledge graph of a codebase. Use when onboarding to an unfamiliar codebase, answering cross-module how-does-X-relate-to-Y, or tracing dependencies before a refactor.

License 许可
Apache-2.0
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
graphify
trigger
/graphify
description
Build/query a navigable knowledge graph of a codebase. Use when onboarding to an unfamiliar codebase, answering cross-module how-does-X-relate-to-Y, or tracing dependencies before a refactor.

02 资源文件 3

03 SKILL.md 正文

/graphify

Turn any folder of files into a navigable knowledge graph with community detection, an honest audit trail, and three outputs: interactive HTML, GraphRAG-ready JSON, and a plain-language GRAPH_REPORT.md.

Three things it does that Claude alone cannot:

  1. Persistent graph — relationships are stored in graphify-out/graph.json and survive across sessions. Ask questions weeks later without re-reading everything.
  2. Honest audit trail — every edge is tagged EXTRACTED, INFERRED, or AMBIGUOUS. You know what was found vs invented.
  3. Cross-document surprise — community detection finds connections between concepts in different files you would never think to ask about directly.

Command surface

/graphify [<path>|<github-url> ...]   # build a graph (default path: current directory)
/graphify query "<question>"          # traverse the graph for an answer (--dfs, --budget N)
/graphify path "A" "B"                # shortest path between two concepts
/graphify explain "Concept"           # plain-language explanation of one node
/graphify add <url>                   # fetch a URL into ./raw, then update the graph

Build flags (combine freely): --mode deep, --update, --directed, --cluster-only, --no-viz, --svg, --graphml, --neo4j[-push <uri>], --mcp, --watch, --wiki, --obsidian[-dir <path>], --branch <b>, --whisper-model <name>. Multiple URLs build each repo and merge into one cross-repo graph.

Route by command

Pick the matching reference, then follow its steps in order. Do not skip steps.

  • Building a graph (any /graphify <path> or <github-url>, with or without build flags) → reference/build-pipeline.md (Steps 0–9: clone, install, detect, transcribe, extract, build, cluster, label, export, report).
  • Querying an existing graph (query, path, explain) → reference/query-and-navigate.md.
  • Keeping a graph current (--update, --cluster-only, add, --watch, git hook, CLAUDE.md integration) → reference/update-and-maintain.md.

The interpreter resolved in build Step 1 is written to graphify-out/.graphify_python; every later bash block uses $(cat graphify-out/.graphify_python) instead of python3. Query and maintenance subcommands re-resolve it first if graphify-out/ was deleted (guard in the reference files).

Honesty Rules (apply to every branch)

  • Never invent an edge. If unsure, use AMBIGUOUS.
  • Never skip the corpus-size check warning (Step 2: >2M words or >200 files).
  • Always show token cost in the report.
  • Never hide cohesion scores behind symbols — show the raw number.
  • Never run HTML viz on a graph with more than 5,000 nodes without warning the user.

04 同仓库更多 Skills

matheusnorjosa
matheusnorjosa/aprender_sistema

writing-standards

Apply AS v2 technical-writing standards (clarity, brevity, active voice, Python/Django conventions). Use when writing a README, a docstring (PEP 257), a commit message, a PR description, an error message, or any technical doc.

内容创作者写作与文案
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

verification-gate

Verify before claiming success. Use when about to say something works/is done, after implementing a feature, after a bugfix, or before pushing — run the proof command and confirm output first.

★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

test-driven-development

Write the failing test before the implementation in AS v2 (pytest + Django/DRF). Use when implementing a feature or fixing a bug, before any production code is written.

测试与质量
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

subagent-development

Orquestra subagents no AS v2 — decompõe a tarefa em domínios independentes, paraleliza e revisa em 2 estágios. Use ao delegar exploração, implementação ou validação cross-arquivo para acelerar o trabalho e poupar o contexto principal.

★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

security-scan

Automated security scanning for AS v2. Use before commits or when reviewing changes for vulnerabilities. Runs dependency audit (pip-audit, npm audit), secret detection (grep patterns), and code pattern scanning (SQL injection, XSS, eval, pickle, hardcoded secrets). Integrates with project hooks system.

★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

resume-handoff

Resume work from a saved handoff document, validating its state against the current codebase before continuing. Use when resuming work from a saved handoff after a context clear or in a new session (path, session name, or GitHub issue).

人力资源
★ 0