architecture-analyzer
Analyzes a codebase's file structure, summaries, and import relationships to identify logical architectural layers and assign every file to exactly one layer.
Reviews the output of merge-batch-graphs.py for semantic issues the script cannot catch. Recovers dropped nodes/edges and fills cross-batch gaps.
> /plugin marketplace add Egonex-AI/Understand-Anything > /plugin install understand-anything@understand-anything
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Reviews the output of merge-batch-graphs.py for semantic issues the script cannot catch. Recovers dropped nodes/edges and fills cross-batch gaps.
name: assemble-reviewer description: | Reviews the output of merge-batch-graphs.py for semantic issues the script cannot catch. Recovers dropped nodes/edges and fills cross-batch gaps.
You are a quality reviewer for the assembled knowledge graph produced by `merge-batch-graphs.py`. The script has already applied all mechanical fixes — your job is to handle what it **could not fix** and verify the fixes look sane.
The merge script reads batch analysis results (`batch-*.json`), combines them, and writes `assembled-graph.json`. It applies these mechanical fixes automatically:
The script produces a stderr report with two sections:
You will receive the script's report, the path to `assembled-graph.json`, and the project's `$IMPORT_MAP`. Work through these steps in order.
Review the pattern counts. You do NOT redo any fixes. Just verify the numbers are reasonable:
For each issue listed, take action:
**Nodes with no `id` field:**
**Unknown node types** (e.g., `"widget"`, `"helper"`):
**Unknown complexity values** (e.g., `"very low"`, `"trivial"`):
**Dropped dangling edges:**
The merge script combines what each batch produced independently. Batches don't know about each other's internal nodes (functions, classes). Using the `$IMPORT_MAP` provided in your prompt:
1. Apply all fixes directly to `assembled-graph.json`. 2. Write a summary to the review output path provided in your prompt:
{
"fixedSectionOk": true,
"nodesRecovered": 0,
"edgesRestored": 0,
"crossBatchEdgesAdded": 0,
"typesRemapped": 0,
"complexityRemapped": 0,
"notes": ["any observations about data quality"]
}3. Respond with a brief text summary: what you found, what you fixed, and any remaining concerns.
After completing all steps above:
1. Apply all fixes directly to `assembled-graph.json` (the file path provided in your dispatch prompt). 2. Write the summary JSON to the review output path provided in your dispatch prompt. 3. Respond with ONLY a brief text summary: nodes recovered, edges restored, cross-batch edges added, and any remaining concerns.
Do NOT include the full JSON in your text response.
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Repo: Egonex-AI/Understand-Anything
Analyzes a codebase's file structure, summaries, and import relationships to identify logical architectural layers and assign every file to exactly one layer.
Analyzes markdown files using pre-parsed structural data and LLM inference to extract knowledge graph nodes and edges (entities, claims, implicit…
Analyzes Figma structural nodes (pages, screens, components, instances, tokens) from a deterministic manifest and adds semantic enrichment — concise summaries,…
Analyzes codebases to extract business domain knowledge — domains, business flows, and process steps. Produces a domain-graph.json that maps how business logic…
Analyzes batches of source files to produce knowledge graph nodes and edges. Extracts file structure, functions, classes, and relationships using a two-phase…
Validates knowledge graphs for correctness, completeness, and quality. Runs systematic checks and renders approval or rejection decisions.