# wheresryan22/anatomy architecture

> Architecture diagram of the GitHub repository wheresryan22/anatomy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wheresryan22/anatomy
- Repository: https://github.com/wheresryan22/anatomy
- Video tour (about a minute): https://gitdiagram.com/wheresryan22/anatomy/video

## Overview

Anatomy is an agent skill for explaining technical ideas through crafted, interactive isometric figures. The main workflow turns a user’s request into a designed figure, renders it with the shared kit, and delivers it in a usable format. The README documents SVG, SVG+WebGL, 3D, standalone, print, and React capabilities. Source excerpts establish several kit dependencies; links for broader authoring stages follow README descriptions, since the skill instructions and some implementations were not sampled.

Main entry points: [`SKILL.md`](https://github.com/wheresryan22/anatomy/blob/main/SKILL.md) (Figure design), [`kit/turn-build.mjs`](https://github.com/wheresryan22/anatomy/blob/main/kit/turn-build.mjs) (3D scene builder), [`kit/iso-kit.mjs`](https://github.com/wheresryan22/anatomy/blob/main/kit/iso-kit.mjs) (Isometric projection), [`examples`](https://github.com/wheresryan22/anatomy/tree/main/examples) (Example figures)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Skill workflow"]
  node_skill_instructions["Skill instructions<br/>[SKILL.md]"]
  node_figure_design["Figure design<br/>[SKILL.md]"]
  node_example_figures["Example figures"]
end

subgraph group_render["Figure rendering"]
  node_iso_projection["Isometric projection<br/>[iso-kit.mjs]"]
  node_lathe_geometry["Solid geometry<br/>[lathe.mjs]"]
  node_tube_geometry["Tube geometry<br/>[tube.mjs]"]
  node_svg_figure["SVG figures<br/>[iso-kit.mjs]"]
  node_webgl_effects["WebGL effects<br/>[gl.mjs]"]
  node_shader_shared["Shader utilities<br/>[gl-shared.mjs]"]
  node_canvas_painter["Canvas painter<br/>[canvas-painter.mjs]"]
end

subgraph group_three_d["3D figures"]
  node_turn_builder["3D scene builder<br/>[turn-build.mjs]"]
  node_turn_runtime["3D animation runtime<br/>[turn.mjs]"]
  node_fixed_turn["Fixed-turn geometry<br/>[turn-fixed.mjs]"]
end

subgraph group_delivery["Delivery and checks"]
  node_audit["Geometry audit<br/>[audit.mjs]"]
  node_turn_audit["3D audit<br/>[turn-audit.mjs]"]
  node_print["Print sheets<br/>[print-sheet.mjs]"]
  node_capture["Browser capture<br/>[capture.mjs]"]
  node_drive["Figure interaction<br/>[drive.mjs]"]
end

subgraph group_react["React integration"]
  node_react_draw["React drawing<br/>[draw.tsx]"]
  node_react_live["React motion<br/>[live.tsx]"]
end

node_user(("Figure requester"))
node_webgl_canvas["WebGL canvas"]

node_user -->|"requests figure"| node_skill_instructions
node_skill_instructions -->|"guides design"| node_figure_design
node_figure_design -->|"produces examples"| node_example_figures
node_figure_design -->|"uses shared kit"| node_svg_figure
node_iso_projection -->|"projects geometry"| node_lathe_geometry
node_iso_projection -->|"projects tubes"| node_tube_geometry
node_lathe_geometry -->|"supplies geometry"| node_tube_geometry
node_svg_figure -.->|"layers effects"| node_webgl_effects
node_webgl_effects -->|"renders shaders"| node_webgl_canvas
node_webgl_effects -.->|"uses utilities"| node_shader_shared
node_figure_design -->|"defines 3D scene"| node_turn_builder
node_turn_builder -->|"builds runtime data"| node_turn_runtime
node_turn_builder -->|"uses projection"| node_iso_projection
node_turn_builder -->|"uses geometry"| node_lathe_geometry
node_turn_builder -->|"uses audit helpers"| node_audit
node_turn_runtime -.->|"supports fixed turns"| node_fixed_turn
node_figure_design -.->|"checks geometry"| node_audit
node_turn_builder -.->|"audits 3D scene"| node_turn_audit
node_figure_design -.->|"exports print sheets"| node_print
node_example_figures -->|"captures pages"| node_capture
node_example_figures -->|"drives interaction"| node_drive
node_figure_design -->|"exports React figures"| node_react_draw
node_react_draw -->|"uses projection"| node_iso_projection
node_react_draw -->|"renders stage"| node_react_live

click node_skill_instructions "https://github.com/wheresryan22/anatomy/blob/main/SKILL.md"
click node_figure_design "https://github.com/wheresryan22/anatomy/blob/main/SKILL.md"
click node_example_figures "https://github.com/wheresryan22/anatomy/tree/main/examples"
click node_iso_projection "https://github.com/wheresryan22/anatomy/blob/main/kit/iso-kit.mjs"
click node_lathe_geometry "https://github.com/wheresryan22/anatomy/blob/main/kit/lathe.mjs"
click node_tube_geometry "https://github.com/wheresryan22/anatomy/blob/main/kit/tube.mjs"
click node_svg_figure "https://github.com/wheresryan22/anatomy/blob/main/kit/iso-kit.mjs"
click node_webgl_effects "https://github.com/wheresryan22/anatomy/blob/main/kit/gl.mjs"
click node_shader_shared "https://github.com/wheresryan22/anatomy/blob/main/kit/gl-shared.mjs"
click node_canvas_painter "https://github.com/wheresryan22/anatomy/blob/main/kit/canvas-painter.mjs"
click node_turn_builder "https://github.com/wheresryan22/anatomy/blob/main/kit/turn-build.mjs"
click node_turn_runtime "https://github.com/wheresryan22/anatomy/blob/main/kit/turn.mjs"
click node_fixed_turn "https://github.com/wheresryan22/anatomy/blob/main/kit/turn-fixed.mjs"
click node_audit "https://github.com/wheresryan22/anatomy/blob/main/kit/audit.mjs"
click node_turn_audit "https://github.com/wheresryan22/anatomy/blob/main/kit/turn-audit.mjs"
click node_print "https://github.com/wheresryan22/anatomy/blob/main/scripts/print-sheet.mjs"
click node_capture "https://github.com/wheresryan22/anatomy/blob/main/scripts/capture.mjs"
click node_drive "https://github.com/wheresryan22/anatomy/blob/main/scripts/drive.mjs"
click node_react_draw "https://github.com/wheresryan22/anatomy/blob/main/kit/react/draw.tsx"
click node_react_live "https://github.com/wheresryan22/anatomy/blob/main/kit/react/live.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill_instructions,node_figure_design,node_example_figures toneBlue
class node_iso_projection,node_lathe_geometry,node_tube_geometry,node_svg_figure,node_webgl_effects,node_shader_shared,node_canvas_painter toneAmber
class node_turn_builder,node_turn_runtime,node_fixed_turn,node_user toneMint
class node_audit,node_turn_audit,node_print,node_capture,node_drive toneRose
class node_react_draw,node_react_live,node_webgl_canvas toneIndigo
```

## Components

### Skill workflow

- [Skill instructions](https://github.com/wheresryan22/anatomy/blob/main/SKILL.md): `SKILL.md`
- [Figure design](https://github.com/wheresryan22/anatomy/blob/main/SKILL.md): `SKILL.md`
- [Example figures](https://github.com/wheresryan22/anatomy/tree/main/examples): `examples`

### Figure rendering

- [Isometric projection](https://github.com/wheresryan22/anatomy/blob/main/kit/iso-kit.mjs): `kit/iso-kit.mjs`
- [Solid geometry](https://github.com/wheresryan22/anatomy/blob/main/kit/lathe.mjs): `kit/lathe.mjs`
- [Tube geometry](https://github.com/wheresryan22/anatomy/blob/main/kit/tube.mjs): `kit/tube.mjs`
- [SVG figures](https://github.com/wheresryan22/anatomy/blob/main/kit/iso-kit.mjs): `kit/iso-kit.mjs`
- [WebGL effects](https://github.com/wheresryan22/anatomy/blob/main/kit/gl.mjs): `kit/gl.mjs`
- [Shader utilities](https://github.com/wheresryan22/anatomy/blob/main/kit/gl-shared.mjs): `kit/gl-shared.mjs`
- [Canvas painter](https://github.com/wheresryan22/anatomy/blob/main/kit/canvas-painter.mjs): `kit/canvas-painter.mjs`

### 3D figures

- [3D scene builder](https://github.com/wheresryan22/anatomy/blob/main/kit/turn-build.mjs): `kit/turn-build.mjs`
- [3D animation runtime](https://github.com/wheresryan22/anatomy/blob/main/kit/turn.mjs): `kit/turn.mjs`
- [Fixed-turn geometry](https://github.com/wheresryan22/anatomy/blob/main/kit/turn-fixed.mjs): `kit/turn-fixed.mjs`

### Delivery and checks

- [Geometry audit](https://github.com/wheresryan22/anatomy/blob/main/kit/audit.mjs): `kit/audit.mjs`
- [3D audit](https://github.com/wheresryan22/anatomy/blob/main/kit/turn-audit.mjs): `kit/turn-audit.mjs`
- [Print sheets](https://github.com/wheresryan22/anatomy/blob/main/scripts/print-sheet.mjs): `scripts/print-sheet.mjs`
- [Browser capture](https://github.com/wheresryan22/anatomy/blob/main/scripts/capture.mjs): `scripts/capture.mjs`
- [Figure interaction](https://github.com/wheresryan22/anatomy/blob/main/scripts/drive.mjs): `scripts/drive.mjs`

### React integration

- [React drawing](https://github.com/wheresryan22/anatomy/blob/main/kit/react/draw.tsx): `kit/react/draw.tsx`
- [React motion](https://github.com/wheresryan22/anatomy/blob/main/kit/react/live.tsx): `kit/react/live.tsx`

### Other components

- **Figure requester**
- **WebGL canvas**

## Connections

- Figure requester → Skill instructions: requests figure (evidence: `README.md`)
- Skill instructions → Figure design: guides design (evidence: `README.md`)
- Figure design → Example figures: produces examples (evidence: `README.md`)
- Figure design → SVG figures: uses shared kit (evidence: `README.md`)
- Isometric projection → Solid geometry: projects geometry (evidence: `kit/lathe.mjs`)
- Isometric projection → Tube geometry: projects tubes (evidence: `kit/tube.mjs`)
- Solid geometry → Tube geometry: supplies geometry (evidence: `kit/tube.mjs`)
- SVG figures → WebGL effects: layers effects (evidence: `README.md`)
- WebGL effects → WebGL canvas: renders shaders (evidence: `README.md`)
- WebGL effects → Shader utilities: uses utilities
- Figure design → 3D scene builder: defines 3D scene (evidence: `README.md`)
- 3D scene builder → 3D animation runtime: builds runtime data (evidence: `kit/turn-build.mjs`)
- 3D scene builder → Isometric projection: uses projection (evidence: `kit/turn-build.mjs`)
- 3D scene builder → Solid geometry: uses geometry (evidence: `kit/turn-build.mjs`)
- 3D scene builder → Geometry audit: uses audit helpers (evidence: `kit/turn-build.mjs`)
- 3D animation runtime → Fixed-turn geometry: supports fixed turns
- Figure design → Geometry audit: checks geometry (evidence: `README.md`)
- 3D scene builder → 3D audit: audits 3D scene (evidence: `README.md`)
- Figure design → Print sheets: exports print sheets (evidence: `README.md`)
- Example figures → Browser capture: captures pages (evidence: `README.md`)
- Example figures → Figure interaction: drives interaction (evidence: `README.md`)
- Figure design → React drawing: exports React figures (evidence: `README.md`)
- React drawing → Isometric projection: uses projection (evidence: `kit/react/draw.tsx`)
- React drawing → React motion: renders stage (evidence: `kit/react/draw.tsx`)
