feat: add codebase knowledge graphs for all 20 stacks (#029)#304
Open
WhatIfWeDigDeeper wants to merge 10 commits into
Open
feat: add codebase knowledge graphs for all 20 stacks (#029)#304WhatIfWeDigDeeper wants to merge 10 commits into
WhatIfWeDigDeeper wants to merge 10 commits into
Conversation
- Run understand-anything analysis on every stack directory - Add unified monorepo-root merge graph (533 nodes, 1032 edges) - Add domain graph with 5 business domains, 11 flows, 52 steps - Add README section with stack table and domain analysis commands - Add .gitignore rules for intermediate/tmp build artifacts - Add README TOC rule to CLAUDE.md and copilot-instructions.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add bash write loop sandbox gotcha to CLAUDE.md and copilot-instructions - Add reciprocal mirror-rule to copilot-instructions header - Add missing cspell words: subdirs, shutil, mktemp, EBADPLATFORM, libexec Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Dashboard is too overwhelming at the unified level and doesn't distinguish API vs UI stacks. Per-directory graphs remain intact. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove projectRoot and outputPath absolute paths from 10 meta.json files (angular-ui, fastapi, go-api, hono-api, nest-api, nest-history-api, rails-api, react-apollo-ui, spring-api, tanstack-start-ui) — machine-specific paths leak local fs layout and cause noisy diffs on regeneration - Fix spring-api meta.json description: "angular-ui" → "angular-spring-ui" (spring-api pairs with angular-spring-ui on port 3070, not angular-ui) - Fix spec: remove absolute /Users/greg/… paths from Dashboard Usage and Notes sections; replace with portable placeholders - Fix spec: Angular 19 → Angular 21 for angular-ui stack row - Fix spec: angular-spring-ui is a full stack with source, not a pointer dir - Fix spec: Goal section still mentioned unified monorepo merge (removed) - Mirror gitignore slash-anchoring rule to copilot-instructions.md - Clarify README domain analysis section: domain graphs are generated on demand, not committed alongside knowledge graphs Co-authored-by: Copilot <copilot-pull-request-reviewer[bot]@users.noreply.github.com>
- Spec: soften Goal language and update Status to acknowledge angular-spring-ui as deferred (resolves contradiction with the "Not analyzed" stack-table row) - README: add a note to the Codebase Knowledge Graphs section acknowledging angular-spring-ui is not yet covered - nuxt-api/.understandignore: drop tests/ exclusion (the committed knowledge-graph.json already includes a tests/ node, so the exclusion would cause drift on regeneration) - api/.understandignore: drop tests/ exclusion (graph contains 7 tests/** nodes that would silently disappear next regeneration) Co-authored-by: Copilot <copilot-pull-request-reviewer[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 69 out of 70 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
.github/copilot-instructions.md:12
- The “Keep CLAUDE.md in sync” instruction is stated twice (once as a standalone line near the top and again in the How to Use section). Duplicating cross-cutting rules increases the chance they drift over time; consider keeping this guidance in just one place in this file.
**Scope:** Repo-wide guardrails and navigation for GitHub Copilot Chat. Keep changes within this monorepo; respect existing workflows and Claude skills.
Keep `CLAUDE.md` in sync: mirror cross-cutting rule changes back to `CLAUDE.md`.
## How to Use This Guide
- Start here, then jump to the focused partials in `.github/agents/` for on-demand detail.
- For automation recipes, see `.github/agents/skills-index.md` to leverage existing `.claude/skills` instead of duplicating them.
- Honor CLAUDE.md rules: no new docs at repo root; prefer exact version pins; use worktrees for complex work.
- Keep `CLAUDE.md` and `.github/copilot-instructions.md` in sync for cross-cutting rule changes.
Resolves the high-severity Remote Code Execution advisory by bumping the transitive simple-git from 3.35.2 to 3.36.0 (via npm audit fix). Pulled in via nuxt → @nuxt/devtools → simple-git. Other packages in the monorepo do not depend on simple-git, so no other lockfiles change. CI's audit:ci:all step was failing on this advisory.
- Replace `/Users/<you>/...` macOS-style PLUGIN path with `~/...` so the dashboard launch snippet is cross-platform - Clarify that `/understand-anything:understand-domain` accepts either a stack-directory argument (when run from repo root) or no argument (when run inside a stack), matching the existing skill behaviour rather than implying just one invocation form Co-authored-by: Copilot <copilot-pull-request-reviewer[bot]@users.noreply.github.com>
|
|
||
| ### Domain Analysis (Business Flows) | ||
|
|
||
| Run `/understand-anything:understand-domain` in Claude Code to generate a `domain-graph.json` that maps business flows and their steps. Domain graphs are generated on demand and are not committed alongside the knowledge graphs. |
Comment on lines
4058
to
4072
| "node_modules/@simple-git/args-pathspec": { | ||
| "version": "1.0.2", | ||
| "resolved": "https://registry.npmjs.org/@simple-git/args-pathspec/-/args-pathspec-1.0.2.tgz", | ||
| "integrity": "sha512-nEFVejViHUoL8wU8GTcwqrvqfUG40S5ts6S4fr1u1Ki5CklXlRDYThPVA/qurTmCYFGnaX3XpVUmICLHdvhLaA==", | ||
| "version": "1.0.3", | ||
| "resolved": "https://registry.npmjs.org/@simple-git/args-pathspec/-/args-pathspec-1.0.3.tgz", | ||
| "integrity": "sha512-ngJMaHlsWDTfjyq9F3VIQ8b7NXbBLq5j9i5bJ6XLYtD6qlDXT7fdKY2KscWWUF8t18xx052Y/PUO1K1TRc9yKA==", | ||
| "license": "MIT" | ||
| }, | ||
| "node_modules/@simple-git/argv-parser": { | ||
| "version": "1.0.3", | ||
| "resolved": "https://registry.npmjs.org/@simple-git/argv-parser/-/argv-parser-1.0.3.tgz", | ||
| "integrity": "sha512-NMKv9sJcSN2VvnPT9Ja7eKfGy8Q8mMFLwPTCcuZMtv3+mYcLIZflg31S/tp2XCCyiY7YAx6cgBHQ0fwA2fWHpQ==", | ||
| "version": "1.1.1", | ||
| "resolved": "https://registry.npmjs.org/@simple-git/argv-parser/-/argv-parser-1.1.1.tgz", | ||
| "integrity": "sha512-Q9lBcfQ+VQCpQqGJFHe5yooOS5hGdLFFbJ5R+R5aDsnkPCahtn1hSkMcORX65J2Z5lxSkD0lQorMsncuBQxYUw==", | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@simple-git/args-pathspec": "^1.0.2" | ||
| "@simple-git/args-pathspec": "^1.0.3" | ||
| } | ||
| }, |
CI's `Install npm packages` step was failing in tanstack-start-ui with EUSAGE: lockfile out of sync with package.json. The committed package-lock.json was missing fields for many transitive deps (`change <pkg> undefined => <ver>` from `npm ci --dry-run`), so npm refused to use it. Regenerated via `npm install --package-lock-only`; verified with `npm ci`, `audit-ci`, and `npm run build`. Direct deps in package.json are unchanged — only the lockfile is rewritten to a complete, internally consistent v3 lockfile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
understand-anythingplugin — each stack directory gets its own.understand-anything/knowledge-graph.jsonwith architectural layers, node relationships, and a guided tour/understand-anything:understand-domainusage; add.gitignorerules for intermediate build artifacts (using**/.understand-anything/intermediate/glob to match nested dirs); add README TOC rule toCLAUDE.mdandcopilot-instructions.mdTest Plan
cd ~/.claude/plugins/cache/understand-anything/understand-anything/2.5.1/packages/dashboard && GRAPH_DIR=/path/to/application-tracker npx vite --host 127.0.0.1and verify the knowledge graph loads/understand-anything:understand-domainin Claude Code from repo root to verify domain graph regeneration worksintermediate/andtmp/directories are not tracked by git (git check-ignore -v go-api/.understand-anything/intermediate/assembled-graph.json)🤖 Generated with Claude Code
Review Guide
Novel Patterns
*/.understand-anything/knowledge-graph.json(20 files) — First time generated analysis artifacts are committed as tracked files; consider staleness risk as code evolves and whether a CI regeneration step or.gitignoreexclusion is preferable