From 867293ebabe7204fa95c3a4deaf539efbf2fd18f Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Sat, 28 Mar 2026 11:45:29 +0800 Subject: [PATCH] feat(understand): add review-only path and clarifying prompt for up-to-date graphs - --review at same commit hash skips to Phase 6, reuses existing graph - Same commit hash without flags now asks user what they'd like to do instead of silently stopping Co-Authored-By: Claude Opus 4.6 --- understand-anything-plugin/skills/understand/SKILL.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/understand-anything-plugin/skills/understand/SKILL.md b/understand-anything-plugin/skills/understand/SKILL.md index cee167a..7c20679 100644 --- a/understand-anything-plugin/skills/understand/SKILL.md +++ b/understand-anything-plugin/skills/understand/SKILL.md @@ -39,9 +39,12 @@ Determine whether to run a full analysis or incremental update. |---|---| | `--full` flag in `$ARGUMENTS` | Full analysis (all phases) | | No existing graph or meta | Full analysis (all phases) | - | Existing graph + unchanged commit hash | Report "Graph is up to date" and STOP | + | `--review` flag + existing graph + unchanged commit hash | Skip to Phase 6 (review-only — reuse existing assembled graph) | + | Existing graph + unchanged commit hash | Ask the user: "The graph is up to date at this commit. Would you like to: **(a)** run a full rebuild (`--full`), **(b)** run the LLM graph reviewer (`--review`), or **(c)** do nothing?" Then follow their choice. If they pick (c), STOP. | | Existing graph + changed files | Incremental update (re-analyze changed files only) | + **Review-only path:** Copy the existing `knowledge-graph.json` to `$PROJECT_ROOT/.understand-anything/intermediate/assembled-graph.json`, then jump directly to Phase 6 step 3. + For incremental updates, get the changed file list: ```bash git diff ..HEAD --name-only