Knowledge Graph Analyzer
Installation
SKILL.md
/graph — Knowledge Graph Skill v3.0
Use this skill when the user types /graph or when you need to deeply understand the architecture of an unfamiliar codebase without suffering from context-window bloat.
The Token Reduction Protocol (Option C)
DO NOT READ RAW SOURCE FILES IF A SNAPSHOT EXISTS. Reading raw project files wastes up to 50,000 tokens per edit. You must use the pre-computed Context Snapshots instead. These snapshots contain the file's content, resolved imports, dependent files, and risk scores all in one JSON blob.
Pre-Flight Checklist
- Have I run the Macro Mapper to generate the latest Context Snapshots?
- Am I reading from
.agent/history/snapshots/instead of directly grepping the project? - Have I respected the
blastRadiusbefore modifying a file?
Execution Protocol
- Step 1: The Macro Map (Blast Radius & Snapshot Engine) Execute the graph builder to map module boundaries and compute downstream risk scores. This also automatically generates a Context Snapshot for every file.