Repository navigation
feat(docs): architecture-diagram-3d, interactive 3D code-architecture diagrams - #3
Merged
Merged
Conversation
…tecture diagram skill A procedural skill distilled from a published five-view page of a knowledge vertical: floors are layers, blocks name code paths checked against main, translucent walls mark security boundaries, edge colour is the kind of flow, pulses show direction, and status (built, partial, planned, gap) comes from the tracker or the code. Ships the engine as assets/template.html (one generic builder over a DIAGRAMS array, one worked example view), with references for the visual grammar, the data schema and a build checklist. Adds a non-trigger to system-infographic so the two docs skills route apart, and lists the skill in the README docs collection.
…n, keyboard, wall tones Left-drag orbits; right-, middle- and shift-drag translate in screen space with the point under the cursor held still; two-finger drag translates and pinch zooms; arrows/WASD, R/F, PageUp/Down, +/-, 0/Home on a focusable canvas with a focus ring; only a left click picks. Walls take tone, op and dash for package and isolation boundaries, and toned labels take the tone colour. Hint line and the Controls section match. Checklist notes the wrapper to prepend for local opening.
… tells the truth about the wall From a Codex review of the PR: - Read the code at origin/main's SHA, not the working checkout, so unmerged work is never drawn as built; check paths at that SHA. - The template sets window.DIAGRAMS so the checklist's console export works; the path loop now takes any extension and directories. - Worked example: payload crosses the wall twice (the PUT, and the reader resolving a reference); planned reader edges are dashed. - Block labels are focusable buttons (Enter/Space); Q/E orbit; wheel and keyboard zoom switch auto-orbit off; the legend is built from EDGE_TEXT and STATUS_TEXT. - A syntax error leaves an empty stage, not the fallback message.
Contributor
Author
|
Codex review ( Codex found:
Fixed in c2c16db (all of the above):
Left: none. Checks: |
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.
What
A new procedural skill,
skills/docs/architecture-diagram-3d, that teaches how to build an interactive, orbitable 3D diagram of a codebase as one HTML page.Live example it was distilled from (five views of a knowledge vertical): https://claude.ai/artifact/HnENkkWr7qKV23mYB3tnVU
Files
skills/docs/architecture-diagram-3d/SKILL.md: procedural chassis (when to use, input, workflow, output, outcomes, dated recommendations, references).assets/template.html: the full engine (three.js r128 UMD from cdnjs, hand-written orbit with drag / shift-drag pan / wheel / pinch, auto-orbit toggle, reset view, per-frame projected HTML labels scaled by distance, raycast picking, ResizeObserver, prefers-reduced-motion, phone layout, THREE-load fallback) plus one small worked example view. Adding a view is data only.references/visual-grammar.md: floors are layers, walls are boundaries, edge colour is the kind of flow, dashed is reference or planned, pulse shape tells bytes from facts, status strip, glass columns for slices, the room view, and the five-view set.references/data-schema.md: every field of a DIAGRAMS entry, units, camera, sizing guidance.references/build-checklist.md: ground it in the code, check every path withgit cat-file -e origin/main:<path>, keep private content out,node --checkthe extracted script, publish under the host's artifact rules.README.md: listed in the Docs collection.skills/docs/system-infographic/SKILL.md: one added non-trigger so the static poster and the interactive 3D explorable route apart.Checks
node --checkon the extracted template script: pass.scripts/verify-install.sh: install proof passed, docs module now 4 skills in both harnesses.npx skills add ./skills/docs --listdiscovers the skill.Do not merge yet; opened for review.