# annnguyentt/anatomy-reveal-skill architecture

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

- Interactive diagram: https://gitdiagram.com/annnguyentt/anatomy-reveal-skill
- Repository: https://github.com/annnguyentt/anatomy-reveal-skill

## Overview

Anatomy Reveal is an agent skill and project template for turning an object name or photo into a modeled, interactive anatomy page and a rendered reveal film. The main workflow is request → scaffold or edit object geometry and film settings → build a scene → generate the interactive page and motion page → render frames → encode an MP4. The graph also preserves the template’s geometry, projection, turning, audit, and browser-rendering layers. Some template modules were not excerpted; links to their roles are included only where the README or source index supports them.

Main entry points: [`template/object/scene.mjs`](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/scene.mjs) (Scene assembly), [`template/kit/turn-build.mjs`](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/turn-build.mjs) (Turning build), [`template/kit/audit.mjs`](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/audit.mjs) (Geometry audit), [`template/object/build.mjs`](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/build.mjs) (Anatomy page build)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Skill workflow"]
  node_skill["Skill instructions<br/>[SKILL.md]"]
  node_scaffold["Project scaffolding<br/>[new-project.mjs]"]
end

subgraph group_model["Object modeling"]
  node_geometry["Object geometry<br/>[geometry.mjs]"]
  node_filmconfig["Figure and feature settings<br/>[film.mjs]"]
  node_scene["Scene assembly<br/>[scene.mjs]"]
end

subgraph group_engine["Geometry engine"]
  node_isokit["Isometric projection<br/>[iso-kit.mjs]"]
  node_lathe["Shape primitives<br/>[lathe.mjs]"]
  node_tubes["Tube geometry<br/>[tube.mjs]"]
  node_turnbuild["Turning build<br/>[turn-build.mjs]"]
  node_turn["Turn renderer<br/>[turn.mjs]"]
  node_audit["Geometry audit<br/>[audit.mjs]"]
end

subgraph group_experience["Interactive and film"]
  node_pagebuild["Anatomy page build<br/>[build.mjs]"]
  node_live["Interactive controls<br/>[live.js]"]
  node_motionbuild["Motion page build<br/>[build.mjs]"]
  node_timeline["Reveal timeline<br/>[timeline.mjs]"]
end

subgraph group_output["Rendering output"]
  node_render["Frame rendering<br/>[render.mjs]"]
  node_browser["Headless browser<br/>[browser.mjs]"]
  node_scan["Motion scan<br/>[scan.mjs]"]
  node_encode["MP4 encoding<br/>[encode.mjs]"]
end

node_requester(("Agent user"))
node_ffmpeg["ffmpeg"]

node_requester -->|"requests reveal"| node_skill
node_skill -->|"scaffolds project"| node_scaffold
node_requester -->|"edits model"| node_geometry
node_requester -->|"sets reveal"| node_filmconfig
node_geometry -->|"uses primitives"| node_lathe
node_geometry -->|"defines object for"| node_scene
node_scene -->|"projects scene"| node_isokit
node_scene -->|"records geometry"| node_audit
node_scene -->|"builds turning data"| node_turnbuild
node_turnbuild -->|"uses renderer"| node_turn
node_turnbuild -->|"uses projection"| node_isokit
node_turnbuild -->|"uses geometry"| node_lathe
node_turnbuild -->|"uses audit"| node_audit
node_audit -->|"uses projection"| node_isokit
node_audit -->|"uses geometry"| node_lathe
node_audit -->|"reads tube runs"| node_tubes
node_pagebuild -->|"builds scene"| node_scene
node_pagebuild -->|"reads settings"| node_filmconfig
node_pagebuild -->|"embeds controls"| node_live
node_motionbuild -->|"builds scene"| node_scene
node_motionbuild -->|"reads settings"| node_filmconfig
node_motionbuild -->|"embeds timeline"| node_timeline
node_render -->|"launches browser"| node_browser
node_scan -->|"launches browser"| node_browser
node_requester -->|"renders frames"| node_render
node_render -.->|"provides frames"| node_encode
node_encode -->|"encodes with"| node_ffmpeg

click node_skill "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/SKILL.md"
click node_scaffold "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/scripts/new-project.mjs"
click node_geometry "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/geometry.mjs"
click node_filmconfig "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/film.mjs"
click node_scene "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/scene.mjs"
click node_isokit "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/iso-kit.mjs"
click node_lathe "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/lathe.mjs"
click node_tubes "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/tube.mjs"
click node_turnbuild "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/turn-build.mjs"
click node_turn "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/turn.mjs"
click node_audit "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/audit.mjs"
click node_pagebuild "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/build.mjs"
click node_live "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/live.js"
click node_motionbuild "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/build.mjs"
click node_timeline "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/timeline.mjs"
click node_render "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/render.mjs"
click node_browser "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/scripts/browser.mjs"
click node_scan "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/scan.mjs"
click node_encode "https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/encode.mjs"

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,node_scaffold,node_requester toneBlue
class node_geometry,node_filmconfig,node_scene toneAmber
class node_isokit,node_lathe,node_tubes,node_turnbuild,node_turn,node_audit toneMint
class node_pagebuild,node_live,node_motionbuild,node_timeline toneRose
class node_render,node_browser,node_scan,node_encode,node_ffmpeg toneIndigo
```

## Components

### Skill workflow

- [Skill instructions](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/SKILL.md): `SKILL.md`
- [Project scaffolding](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/scripts/new-project.mjs): `scripts/new-project.mjs`

### Object modeling

- [Object geometry](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/geometry.mjs): `template/object/geometry.mjs`
- [Figure and feature settings](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/film.mjs): `template/object/film.mjs`
- [Scene assembly](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/scene.mjs): `template/object/scene.mjs`

### Geometry engine

- [Isometric projection](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/iso-kit.mjs): `template/kit/iso-kit.mjs`
- [Shape primitives](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/lathe.mjs): `template/kit/lathe.mjs`
- [Tube geometry](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/tube.mjs): `template/kit/tube.mjs`
- [Turning build](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/turn-build.mjs): `template/kit/turn-build.mjs`
- [Turn renderer](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/turn.mjs): `template/kit/turn.mjs`
- [Geometry audit](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/kit/audit.mjs): `template/kit/audit.mjs`

### Interactive and film

- [Anatomy page build](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/build.mjs): `template/object/build.mjs`
- [Interactive controls](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/object/live.js): `template/object/live.js`
- [Motion page build](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/build.mjs): `template/motion/build.mjs`
- [Reveal timeline](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/timeline.mjs): `template/motion/timeline.mjs`

### Rendering output

- [Frame rendering](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/render.mjs): `template/motion/render.mjs`
- [Headless browser](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/scripts/browser.mjs): `template/scripts/browser.mjs`
- [Motion scan](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/scan.mjs): `template/motion/scan.mjs`
- [MP4 encoding](https://github.com/annnguyentt/anatomy-reveal-skill/blob/main/template/motion/encode.mjs): `template/motion/encode.mjs`

### Other components

- **Agent user**
- **ffmpeg**

## Connections

- Agent user → Skill instructions: requests reveal (evidence: `README.md`)
- Skill instructions → Project scaffolding: scaffolds project (evidence: `README.md`)
- Agent user → Object geometry: edits model (evidence: `README.md`)
- Agent user → Figure and feature settings: sets reveal (evidence: `README.md`)
- Object geometry → Shape primitives: uses primitives (evidence: `template/object/geometry.mjs`)
- Object geometry → Scene assembly: defines object for (evidence: `template/object/scene.mjs`)
- Scene assembly → Isometric projection: projects scene (evidence: `template/object/scene.mjs`)
- Scene assembly → Geometry audit: records geometry (evidence: `template/object/scene.mjs`)
- Scene assembly → Turning build: builds turning data (evidence: `template/object/scene.mjs`)
- Turning build → Turn renderer: uses renderer (evidence: `template/kit/turn-build.mjs`)
- Turning build → Isometric projection: uses projection (evidence: `template/kit/turn-build.mjs`)
- Turning build → Shape primitives: uses geometry (evidence: `template/kit/turn-build.mjs`)
- Turning build → Geometry audit: uses audit (evidence: `template/kit/turn-build.mjs`)
- Geometry audit → Isometric projection: uses projection (evidence: `template/kit/audit.mjs`)
- Geometry audit → Shape primitives: uses geometry (evidence: `template/kit/audit.mjs`)
- Geometry audit → Tube geometry: reads tube runs (evidence: `template/kit/audit.mjs`)
- Anatomy page build → Scene assembly: builds scene (evidence: `template/object/build.mjs`)
- Anatomy page build → Figure and feature settings: reads settings (evidence: `template/object/build.mjs`)
- Anatomy page build → Interactive controls: embeds controls (evidence: `template/object/build.mjs`)
- Motion page build → Scene assembly: builds scene (evidence: `template/motion/build.mjs`)
- Motion page build → Figure and feature settings: reads settings (evidence: `template/motion/build.mjs`)
- Motion page build → Reveal timeline: embeds timeline (evidence: `README.md`)
- Frame rendering → Headless browser: launches browser (evidence: `template/motion/render.mjs`)
- Motion scan → Headless browser: launches browser (evidence: `template/motion/scan.mjs`)
- Agent user → Frame rendering: renders frames (evidence: `README.md`)
- Frame rendering → MP4 encoding: provides frames
- MP4 encoding → ffmpeg: encodes with (evidence: `README.md`)
