Commit Graph
85 Commits
Author SHA1 Message Date
Lum1104andClaude Opus 4.6 8b5499e8db feat: add Cursor and Claude plugin descriptors for auto-discovery
Add .cursor-plugin/plugin.json with skills/agents paths pointing into
understand-anything-plugin/. Add .claude-plugin/plugin.json alongside
existing marketplace.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 23:16:43 +08:00
Lum1104andClaude Opus 4.6 0f2b710992 refactor: move platform config directories to repo root for discovery
Move .codex/, .opencode/, .openclaw/ from understand-anything-plugin/ to
repo root so each AI coding platform discovers its config at the standard
location. Delete .cursor/ (replaced by .cursor-plugin/plugin.json in next
commit). Plugin source code stays inside understand-anything-plugin/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 23:15:00 +08:00
Lum1104andClaude Opus 4.6 2779408569 docs: revise implementation plan — minimal restructure, move platform configs to root
Replace full flatten approach with minimal restructure: only move platform
config directories (.codex, .opencode, .openclaw) to repo root for discovery.
Add Cursor/Claude plugin descriptors. Remove Gemini extension. Keep all
plugin source code inside understand-anything-plugin/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 23:10:23 +08:00
Lum1104andClaude Opus 4.6 4ea55cd6fc fix: address code review feedback — terminology consistency and URL path
- Replace "agent" with "subagent" in SKILL.md dispatch references (5 locations)
- Add node_modules/.git/dist exclusions to Phase 0 find command
- Fix design doc URL to include understand-anything-plugin/ prefix

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 11:18:39 +08:00
Lum1104andClaude Opus 4.6 aa4df6e987 feat: add per-platform INSTALL.md for AI-driven installation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:51:43 +08:00
Lum1104andClaude Opus 4.6 8e3c0660c9 docs: add multi-platform installation instructions to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:51:25 +08:00
Lum1104andClaude Opus 4.6 2a01d3cc77 refactor: update SKILL.md to dispatch subagents with context injection
Replace all named agent dispatches (project-scanner, file-analyzer,
architecture-analyzer, tour-builder, graph-reviewer) with subagent
dispatches using prompt template files. Add context injection for each
phase including README content, package manifest, directory tree,
framework-specific guidance, and cross-validation data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:35:38 +08:00
Lum1104andClaude Opus 4.6 84d0462e20 feat: add knowledge-graph-guide agent for graph navigation and querying
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:32:03 +08:00
Lum1104andClaude Opus 4.6 5e85a23aa2 refactor: move pipeline agents into skills/understand/ as prompt templates
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:31:22 +08:00
Lum1104andClaude Opus 4.6 4ff36e3dae docs: add context injection to implementation plan
Each subagent dispatch now injects relevant context from the main session:
- Scanner: README + package manifest
- File Analyzer: framework info + project description from Phase 1
- Architecture Analyzer: framework layer hints + directory tree
- Tour Builder: README + entry point
- Graph Reviewer: scan inventory for cross-validation + phase warnings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 22:55:18 +08:00
Lum1104andClaude Opus 4.6 6346972ee5 docs: add simplified multi-platform implementation plan
6 tasks: move agents to prompt templates, update SKILL.md dispatch,
create knowledge-graph-guide agent, add platform INSTALL.md files,
update README, verify.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 22:49:49 +08:00
Lum1104andClaude Opus 4.6 64d901836d docs: add simplified multi-platform skill support design
Follows superpowers pattern: same files everywhere, model: inherit,
AI-driven installation via INSTALL.md, self-contained skills.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 22:47:52 +08:00
Lum1104 e1c3b901c9 Add MIT license 2026-03-17 14:54:57 +08:00
Yuxiang LinandGitHub 6c38510acb Merge pull request #3 from Lum1104/feature/diff-mode
perf(dashboard): skip diff overlay computation when diffMode is off
2026-03-17 11:59:15 +08:00
Yuxiang LinandGitHub 988e73f249 Merge pull request #2 from KyleWMiller/feature/diff-mode
Diff Mode
2026-03-17 11:55:10 +08:00
Lum1104andClaude Opus 4.6 4161d3eba3 perf(dashboard): skip diff overlay computation when diffMode is off
Guard diffNodeIds construction and per-edge lookups behind diffMode
check to avoid unnecessary Set spreads and has() calls on every
graph recompute when diff mode is inactive.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 11:53:08 +08:00
Yuxiang LinandGitHub 449a4f01cb Merge pull request #1 from Lum1104/feat/script-augmented-agents
feat(agents): script-augmented two-phase architecture
2026-03-17 11:29:39 +08:00
Lum1104andClaude Opus 4.6 70b4e6fe0a fix(graph-reviewer): remove duplicated critical checks from warning section
Edge weights, node ID prefix conventions, and tag formatting were listed
in both Check 1 (Schema Validation — Critical) and Check 7 (Quality —
Warning). A deterministic script following check headings would classify
these as warnings, potentially approving invalid graphs. Remove the
duplicates from Check 7 since Check 1 already covers them as critical.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 11:28:29 +08:00
Lum1104andClaude Opus 4.6 3715552875 fix(agents): define .sh as supported source extension in project-scanner
The exclusion rule conditionally kept .sh files for bash-first projects,
but the source-file whitelist and language mapping table had no .sh entry,
causing retained shell files to be dropped or untyped. Add .sh/.bash to
the whitelist and language table (mapped to 'bash'), and remove the
conditional exclusion rule.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 11:13:18 +08:00
Lum1104andClaude Opus 4.6 f5b9eb7d61 fix(graph-reviewer): align duplicate-ID classification as critical
Duplicate node IDs were listed under Check 6 (Warning) but classified as
critical in the Severity Classification section. A script following check
headings would classify duplicates as warnings, letting invalid graphs
pass review. Move duplicate-ID check to its own Check 5 (Critical) and
renumber subsequent checks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 11:12:29 +08:00
Lum1104andClaude Opus 4.6 b9b48466c3 chore: bump version to 1.0.5
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 11:10:14 +08:00
Kyle Miller da8509e2b1 feat: diff mode added 2026-03-16 16:40:19 -07:00
Lum1104andClaude Opus 4.6 6af00c5f85 feat(agents): add script-augmented two-phase architecture to all agents
Redesign all 5 agent prompts with a "Phase 1 — Script" + "Phase 2 — LLM
Reasoning" structure. Agents now write and execute scripts for deterministic
work (validation, file discovery, structure extraction, graph analysis)
before applying LLM judgment for semantic tasks (summaries, tags, pedagogy).

Key changes per agent:
- graph-reviewer: script performs all 6 validation checks deterministically
- project-scanner: script handles file discovery, language detection, line counting
- file-analyzer: script extracts functions/classes/imports via regex patterns
- architecture-analyzer: script computes import adjacency, inter-group frequency
- tour-builder: script calculates fan-in, BFS traversal, cluster detection

Design safeguards:
- scriptCompleted sentinel field guards against partial script output
- Batch-indexed temp paths prevent collision in concurrent file-analyzer agents
- Explicit "trust the script" directives prevent LLM from re-reading raw data
- Up to 2 script retries on failure
- Explicit instructions to strip intermediate fields from final output
- Bash tool added to all agent tool lists

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 18:17:02 +08:00
Lum1104 b82efea88e fix(dashboard): enable click and expand for all node types (function, class, etc.)
Previously only FILE nodes responded to clicks with the code viewer overlay.
Now all node types open the detail viewer on click. Also added a direct click
handler on CustomNode to fix click events not firing for child nodes inside
group layers on Windows.

Bump version to 1.0.4.
2026-03-16 14:34:11 +08:00
Lum1104andClaude Opus 4.6 5c0afb35ff fix: resolve plugin installation failures for workspace resolution and missing dependencies
Add Vite resolve aliases for core subpath exports (schema, search, types)
to fix import resolution on Windows where Node.js package exports are not
properly followed by Vite's import analysis.

Bump version to 1.0.3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:23:48 +08:00
Lum1104andClaude Opus 4.6 4e9539b20d fix(ci): use root pnpm-lock.yaml for cache and install from workspace root
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:34:47 +08:00
Lum1104andClaude Opus 4.6 f57cd9db7b fix(ci): add workflow file to trigger paths so CI changes re-run
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:31:15 +08:00
Lum1104andClaude Opus 4.6 d08eeb072d fix(ci): remove explicit pnpm version to use packageManager field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:29:48 +08:00
Lum1104andClaude Opus 4.6 e862b9a1da feat(homepage): add cinematic project homepage with GitHub Pages deployment
Astro-based static homepage with dark luxury theme, self-hosted fonts,
scroll-reveal animations, and GitHub Actions CI/CD to Pages.

Sections: Nav, Hero, Dashboard Showcase, Feature Cards, Install CTA, Footer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:26:49 +08:00
Lum1104 bdf6cf6856 fix: resolve plugin installation failures for workspace resolution and missing dependencies
- Add pnpm-workspace.yaml to plugin distribution so workspace:* deps resolve on install
- Add devlop and hast-util-to-jsx-runtime as explicit dashboard dependencies (pnpm strict hoisting)
- Make tsconfig.json files self-contained to work outside monorepo root
- Add prepare script to auto-build core package after pnpm install
- Bump version to 1.0.2
2026-03-15 19:12:55 +08:00
Lum1104andClaude Opus 4.6 99840b16a0 fix: remove nested .claude-plugin/plugin.json to fix user-scope marketplace installation
The nested plugin.json inside understand-anything-plugin/.claude-plugin/
conflicted with the root marketplace.json, causing Claude Code to fail
when installing the plugin in user scope with "Source path does not exist" error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 17:21:02 +08:00
Lum1104 dda6547809 docs: add hero image and dashboard screenshot to README 2026-03-15 16:53:55 +08:00
Lum1104andClaude Opus 4.6 ded60f8116 docs: update CLAUDE.md with current architecture and versioning guide
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 12:40:07 +08:00
Lum1104andClaude Opus 4.6 343e94c9a7 feat: redesign dashboard with dark luxury theme, improve agent pipeline
- Remove ChatPanel and @anthropic-ai/sdk dependency (redundant with /understand-chat)
- Replace Monaco editor with styled summary code viewer
- New graph-first layout: 75% graph + 360px right sidebar
- Dark luxury aesthetic: deep blacks, gold/amber accents, DM Serif Display typography
- Add ProjectOverview component for sidebar default state
- Learn persona now shows tour panel directly in sidebar
- Add schema validation on graph load with error banner
- Defensive null checks in store for tour methods
- Agent pipeline: write intermediate results to disk instead of context
- Agent models: sonnet for simple tasks, opus for complex (no haiku)
- Prompt-engineer all 5 agent prompts and SKILL.md
- Auto-trigger /understand-dashboard after /understand completes
- Add dashboard screenshot to README
- Bump version to 1.0.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 12:36:39 +08:00
Lum1104andClaude Opus 4.6 00d9919ba3 feat(skill): add smart graph reading protocol to query skills
Replace "read the whole graph file" instructions with targeted Grep-based
reading in /understand-chat, /understand-diff, /understand-explain, and
/understand-onboard. Each skill now includes a Graph Structure Reference
and extracts only the relevant subgraph (matched nodes + 1-hop edges)
instead of dumping the entire JSON into context. Also update /understand
to reference /understand-dashboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 11:16:55 +08:00
Lum1104andClaude Opus 4.6 fe50941da4 feat(skill): add /understand-dashboard skill to launch visualization
New skill command that starts the Vite dev server to visualize the
knowledge graph in a web dashboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 11:16:48 +08:00
Lum1104andClaude Opus 4.6 b75235919e refactor: restructure monorepo into Claude Code plugin layout
Move packages/{core,dashboard,skill} into understand-anything-plugin/ to
conform to the Claude Code plugin format. Add .claude-plugin/marketplace.json
for plugin discovery. Update workspace config and docs accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 11:16:43 +08:00
Lum1104andClaude Opus 4.6 f69ad5887e fix(dashboard): auto-detect knowledge graph from .understand-anything/
The Vite dev server now looks for .understand-anything/knowledge-graph.json
in the project root, so users don't need to manually copy the graph file
into public/. Also updates README with clearer installation and usage
instructions, and adds dashboard viewing steps to /understand SKILL.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 00:30:34 +08:00
Lum1104andClaude Opus 4.6 8e13f77e23 chore(skill): migrate skills to plugin format and update docs
Move existing skills from .claude/skills/ to skills/*/SKILL.md plugin
format. Update CLAUDE.md to reflect all skill commands. Add phase 2
implementation plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 00:05:14 +08:00
Lum1104andClaude Opus 4.6 58cfb20ac8 feat(skill): add /understand multi-agent command for codebase analysis
Implements the main /understand skill that orchestrates 5 specialized
agents in a 7-phase pipeline to analyze codebases and produce
knowledge-graph.json. Supports full and incremental analysis modes.

- project-scanner (haiku): file discovery, language/framework detection
- file-analyzer (sonnet): code structure extraction, node/edge generation
- architecture-analyzer (sonnet): architectural layer identification
- tour-builder (sonnet): guided learning tour generation
- graph-reviewer (haiku): graph validation and quality checks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 00:04:11 +08:00
Lum1104andClaude Opus 4.6 0c5411e282 feat(dashboard): add fuzzy/semantic search mode toggle
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 23:18:59 +08:00
Lum1104andClaude Opus 4.6 ae5b4de3d9 feat(core): add embedding-based semantic search engine
Add SemanticSearchEngine class that stores pre-computed vector embeddings
for graph nodes and performs cosine similarity search. Enables true semantic
queries (e.g., "find code that handles authentication") even when keywords
don't appear in node data. Returns the same SearchResult type as the
existing Fuse.js-based SearchEngine for compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 23:16:10 +08:00
Lum1104andClaude Opus 4.6 6224761359 feat(core): add plugin configuration and discovery system
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 23:11:28 +08:00
Lum1104andClaude Opus 4.6 f977ce8a48 feat(core): add plugin registry for community analyzer plugins
Introduces PluginRegistry class that discovers, registers, and manages
analyzer plugins. Maps file extensions to languages, provides a unified
analyzeFile entrypoint, and supports plugin priority via registration
order. Foundation for the community plugin system.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 23:04:56 +08:00
Lum1104andClaude Opus 4.6 09fc78f321 feat(skill): add /understand-onboard command for team onboarding guides
Generates a structured markdown onboarding guide from the knowledge graph,
including project overview, architecture layers, key concepts, guided tour,
file map, and complexity hotspots.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:49:37 +08:00
Lum1104andClaude Opus 4.6 eb0d2eaac0 feat(skill): add /understand-explain command for deep-dive file analysis
Adds the explain-builder module that constructs rich context for explaining
a specific file or function. Supports file paths and path:function notation,
gathers child nodes, connected components, layer membership, and formats
a structured prompt for LLM-powered deep-dive explanations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:31:09 +08:00
Lum1104andClaude Opus 4.6 e69acffd06 feat(skill): add /understand-diff command for PR/diff analysis
Adds buildDiffContext and formatDiffAnalysis to map git diffs against
the knowledge graph, identifying changed nodes, affected components,
impacted layers, and risk assessment. Includes 11 tests and skill
definition for Claude Code integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:13:41 +08:00
Lum1104andClaude Opus 4.6 5628c2ed82 feat(dashboard): add persona mode system with adaptive layouts
Three persona modes change the dashboard experience:
- Overview (non-technical): 2-column layout with graph + learn/chat,
  hides CodeViewer, filters graph to concept/module/file nodes only
- Learn (junior): full 4-panel layout with tabbed Details/Tour panel
- Deep Dive (experienced): full 4-panel layout with NodeInfo, tour
  tabs only shown when tour is explicitly active

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 21:11:52 +08:00
Lum1104andClaude Opus 4.6 ccdc4b723f feat(dashboard): upgrade languageNotes to collapsible Language Concepts section
Replace plain blue box with indigo-themed collapsible panel featuring
chevron toggle, matching the indigo design language used in LearnPanel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 21:01:03 +08:00
Lum1104andClaude Opus 4.6 4452fe8e7b feat(dashboard): add tour highlight to graph nodes
Wire tourHighlightedNodeIds from the store into GraphView and CustomNode
so that nodes referenced by the current tour step get a pulsing blue ring,
visually distinct from the white selection ring and yellow search rings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 20:56:38 +08:00