From ironforge
Initialize Graphify on an existing project. Builds the code knowledge graph, configures the Claude Code integration, installs git hooks for incremental rebuild, and adds graphify-out/ to .gitignore. Only useful for existing projects — greenfield projects have no ROI.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ironforge:graph-initThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize Graphify on the current project. This creates a persistent code knowledge graph
Initialize Graphify on the current project. This creates a persistent code knowledge graph
that BMAD agents can query via the graph-explore subagent.
ls graphify-out/ 2>/dev/null
If graphify-out/ exists, ask the user:
A Graphify graph already exists. Choose an option:
- Rebuild from scratch (
graphify update .— overwrites existing graph)- Cancel
Wait for the user's response. If cancel, stop.
graphify --version 2>/dev/null || pip install graphifyy
If pip install fails, tell the user to run it manually and wait for confirmation before
continuing.
graphify install
This configures Graphify for Claude Code:
.mcp.jsonPreToolUse hook in settings.jsonDo not modify these files manually — Graphify owns them.
Ask the user:
How do you want to build the graph?
- Full pipeline (
/graphify .) — semantic extraction via LLM, community detection, HTML viz, Obsidian vault, GRAPH_REPORT.md. Costs tokens, takes a few minutes. Recommended for the first run.- Quick build (
graphify update .) — AST-only, no LLM, fast. No semantic edges, no community labels, no Obsidian vault.
Wait for the user's response.
If option 1: invoke the /graphify skill with the current directory as path (. or
the project root). The skill handles the full pipeline autonomously — do not duplicate its
steps here. Resume at Step 5 once it completes.
If option 2:
graphify update .
Output lands in graphify-out/:
graph.json — queryable graphgraph.html — visual explorer (open in browser)GRAPH_REPORT.md — top nodes and structural surprisesNote: Obsidian vault and semantic community labels are only generated by the full pipeline.
Run /graphify . --obsidian later to add them.
graphify claude install
Adds a ## graphify section to the local CLAUDE.md that instructs Claude to check
the graph before answering codebase questions and rebuild it after code changes.
graphify hook install
Installs post-commit and post-checkout hooks in .git/hooks/. These rebuild the graph
incrementally after every commit and branch switch, keeping the graph in sync without
manual intervention.
Check if graphify-out/ is already ignored:
grep -s "graphify-out" .gitignore
If not found, ask the user:
Add
graphify-out/to.gitignore? The graph is a local artefact — it should not be committed. (y/n)
If confirmed, append the line to .gitignore (create the file if it does not exist):
graphify-out/
Print the final status:
## Graphify — Initialized
✓ Graphify installed
✓ Claude Code integration configured (graphify install)
✓ Graph built (graphify-out/)
✓ Always-on CLAUDE.md integration (graphify claude install)
✓ Git hooks installed (post-commit, post-checkout)
✓ graphify-out/ ignored (.gitignore updated)
→ Open graphify-out/graph.html in a browser to explore the graph visually.
Open graphify-out/obsidian/ as a vault in Obsidian for graph view + canvas.
Run `/graphify . --obsidian` to regenerate with Obsidian vault if you used quick build.
BMAD agents will query the graph via the graph-explore subagent.
npx claudepluginhub romaindecoster/ironforge --plugin ironforgeBuilds a local knowledge graph of code, docs, and mixed media using tree-sitter extraction and LLM-based relationship inference. Query via CLI commands instead of reading raw files.
Uses codebase knowledge graphs for architecture-aware task decomposition, dependency discovery, and context reduction during planning.
Builds or incrementally updates the repository code knowledge graph for review. Use for initial setup, after refactors or branch switches; supports Python, TypeScript/JS, Go; SQLite storage.