Skip to content

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.

merge: resolve SKILL.md conflict — keep both --auto-update and --review flags

Lum11048c525839b216
diff --cc understand-anything-plugin/packages/core/src/types.ts
index e186c161,da79bdaa..819f17ee
--- a/understand-anything-plugin/packages/core/src/types.ts
+++ b/understand-anything-plugin/packages/core/src/types.ts
@@@ -72,13 -78,9 +78,14 @@@ export interface AnalysisMeta
gitCommitHash: string;
version: string;
analyzedFiles: number;
+ theme?: ThemeConfig;
}
+// Project config (for auto-update opt-in)
+export interface ProjectConfig {
+ autoUpdate: boolean;
+}
+
// Plugin interfaces
export interface StructuralAnalysis {
functions: Array<{ name: string; lineRange: [number, number]; params: string[]; returnType?: string }>;
diff --cc understand-anything-plugin/skills/understand/SKILL.md
index e13e3a16,7c206798..0f8fd0ff
--- a/understand-anything-plugin/skills/understand/SKILL.md
+++ b/understand-anything-plugin/skills/understand/SKILL.md
@@@ -12,8 -12,7 +12,9 @@@ Analyze the current codebase and produc
- `$ARGUMENTS` may contain:
- `--full` — Force a full rebuild, ignoring any existing graph
+ - `--auto-update` — Enable automatic graph updates on commit (writes `autoUpdate: true` to `.understand-anything/config.json`)
+ - `--no-auto-update` — Disable automatic graph updates (writes `autoUpdate: false` to `.understand-anything/config.json`)
+ - `--review` — Run full LLM graph-reviewer instead of inline deterministic validation
- A directory path — Scope analysis to a specific subdirectory
---
@@@ -27,15 -26,11 +28,16 @@@ Determine whether to run a full analysi
```bash
git rev-parse HEAD
```
- 3. Create the intermediate output directory:
+ 3. Create the intermediate and temp output directories:
```bash
mkdir -p $PROJECT_ROOT/.understand-anything/intermediate
+ mkdir -p $PROJECT_ROOT/.understand-anything/tmp
```
+3.5. **Auto-update configuration:**
+ - If `--auto-update` is in `$ARGUMENTS`: write `{"autoUpdate": true}` to `$PROJECT_ROOT/.understand-anything/config.json`
+ - If `--no-auto-update` is in `$ARGUMENTS`: write `{"autoUpdate": false}` to `$PROJECT_ROOT/.understand-anything/config.json`
+ - These flags only set the config — analysis proceeds normally regardless.
+
4. Check if `$PROJECT_ROOT/.understand-anything/knowledge-graph.json` exists. If it does, read it.
5. Check if `$PROJECT_ROOT/.understand-anything/meta.json` exists. If it does, read it to get `gitCommitHash`.
6. **Decision logic:**