dontbmad-graphify
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-06-05
- Stars
- ★ 0
- Forks
- 1
03 SKILL.md 正文
Graphify — Build Codebase Knowledge Graph
Build the knowledge graph from code, docs, and design artifacts. Use when the user says "build the graph", "graphify", "update the knowledge graph", or at sprint start to give all BMAD workflows structural codebase awareness.
What This Does
Graphify reads your codebase and produces:
graphify-out/GRAPH_REPORT.md— god nodes, communities, surprising connectionsgraphify-out/graph.json— queryable graph (nodes, edges, relationships)
BMAD workflows (dev-story, quick-dev, code-review, create-story, create-architecture) automatically read the graph report when it exists. No extra steps during development.
Running Graphify
This project uses uv (not system pip). Always invoke via uvx:
uvx --from graphifyy graphify <command>
Build / rebuild the graph
uvx --from graphifyy graphify update .
This extracts code structure via AST parsing (no LLM needed). Results are cached — re-runs only process changed files. Output goes to graphify-out/.
Install always-on rule (one time per project)
For Cursor:
uvx --from graphifyy graphify cursor install
For Claude Code:
uvx --from graphifyy graphify claude install
When to rebuild
| Trigger | Action |
|---|---|
| Sprint start | Full rebuild: graphify update . |
| Added new docs, specs, or design artifacts | Full rebuild: graphify update . |
| Day-to-day development | No rebuild needed. Workflows read the existing graph. |
| Major refactor (new modules, renamed files) | Full rebuild: graphify update . |
Other commands
| Command | What it does |
|---|---|
graphify query "<question>" |
BFS traversal of graph.json for a question |
graphify explain "<node>" |
Plain-language explanation of a node and its neighbors |
graphify path "<A>" "<B>" |
Shortest path between two nodes |
graphify cluster-only . |
Rerun clustering on existing graph.json, regenerate report |
graphify watch . |
Watch folder and rebuild on code changes |
See the dontbmad-graphify-query, dontbmad-graphify-explain, and dontbmad-graphify-path skills for detailed usage of those commands.
How BMAD Workflows Use It
| Workflow | What it reads | Why |
|---|---|---|
dev-story |
GRAPH_REPORT.md + graph.json | Navigate to relevant files, trace callers/callees before modifying functions |
quick-dev |
GRAPH_REPORT.md + graph.json | Find relevant modules during investigation, avoid grepping blind |
code-review |
GRAPH_REPORT.md | Understand blast radius — which modules depend on changed files |
create-story |
GRAPH_REPORT.md + graph.json | Write accurate Dev Notes with real file paths and dependencies |
create-architecture |
GRAPH_REPORT.md | Ground truth of existing codebase structure for brownfield projects |
If graphify-out/ doesn't exist, all workflows skip the graph step gracefully. Nothing breaks.
04 同仓库更多 Skills
dontbmad-grill
Interview the user relentlessly on a plan, decision, or artifact until every branch of the decision tree is resolved. One question at a time, with a recommended answer for each. Reads existing artifacts and codebase before asking. Use when the user says "grill me", "stress-test this plan", "interrogate this", or when invoked from a BMAD planning skill (architecture, PRD, story, UX) before finalizing the artifact.
dontbmad-graphify-query
暂无简介
dontbmad-graphify-path
暂无简介
dontbmad-graphify-explain
暂无简介
dontbmad-compress-artifacts
Compress BMAD planning artifacts (PRDs, architecture docs, stories, project-context) into terse format to reduce input tokens when agents read them. Originals backed up as .original.md. Use when user says "compress artifacts", "compress planning docs", or "shrink the docs".
dontbmad-claude-design-to-bmad-uiux
Convert Claude Design output into a BMAD-compatible UI/UX handoff specification. Use when the user wants Claude Design to BMAD UX export, AC traceability, or ready-for-dev UIUX format.