← ClaudeAtlas

graphifylisted

Builds a compact JSON knowledge graph for a software project, enabling ~70x token savings compared to scanning source files. Creates knowledge_graph.json (meta + architecture + critical_rules + clusters) and per-cluster Obsidian .md files for RAG-style access. Triggers on: 'graphify', 'knowledge graph', 'map the project', 'build graph', 'create graph', 'граф на проекта', 'знания граф', or when starting work on a new project without an existing graph.
vatevstoil/claude-self-learning-os · ★ 2 · AI & Automation · score 75
Install: claude install-skill vatevstoil/claude-self-learning-os
# Graphify Build a compact JSON knowledge graph for a software project. Result: `knowledge_graph.json` + per-cluster `.md` files readable in ~70x fewer tokens than scanning source files directly. ## When to Use - New project — no graph exists yet - Project has changed significantly — graph is stale - User says "graphify", "build graph", "граф на проекта" ## Step 1 — Initialize Output Directory ```bash python skills/graphify/scripts/init_graph.py "<ProjectName>" "<{{WIKI_PATH}}/Project/graph>" ``` This creates placeholder files. Proceed to fill them in. ## Step 2 — Discover Project Structure Read the entry point first (80% of architecture info lives here): ```bash # Python/FastAPI head -120 backend/main.py # app.include_router() calls -> all domains grep "include_router" backend/main.py # full list of routers # Node.js/Express head -80 src/app.js # app.use() calls -> all route domains grep "app.use\|require.*router" src/app.js # Then list top-level directories only ls backend/ ls src/ ``` Do NOT read all files — entry point + 2-3 `ls` commands are enough for Step 2. ## Step 3 — Identify Clusters From the entry point, group related routers/modules into 6-14 domain clusters. **Cluster naming (use these standard names when they fit):** `auth` | `invoicing` | `expenses` | `accounting` | `tax_compliance` | `hr_payroll` | `clients` | `platform` | `ai` | `frontend` | `core` | `api` | `ml` | `tasks` | `queue_workers` | `crawler` | `graph` | `ide