# garinmckayl/anima architecture

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

- Interactive diagram: https://gitdiagram.com/garinmckayl/anima
- Repository: https://github.com/garinmckayl/anima

## Overview

Anima is a Claude Code skill for producing standalone, interactive, sourced biology figures. The documented workflow starts with a biological subject and requested mechanism, gathers sources before drawing, builds a page, then checks it at different zoom levels, themes, and screen sizes. Its drawing kit provides isometric geometry, biological and molecular forms, and optional React interaction helpers. The README documents the main workflow and several kit capabilities; source excerpts clarify selected internal calls, but much of the skill and kit implementation was not sampled.

Main entry points: [`kit/iso-kit.mjs`](https://github.com/garinmckayl/anima/blob/main/kit/iso-kit.mjs) (Isometric geometry), [`kit/turn-build.mjs`](https://github.com/garinmckayl/anima/blob/main/kit/turn-build.mjs) (Turn builder), [`kit/audit.mjs`](https://github.com/garinmckayl/anima/blob/main/kit/audit.mjs) (Scene audit), [`SKILL.md`](https://github.com/garinmckayl/anima/blob/main/SKILL.md) (Anima skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Figure workflow"]
  node_skill["Anima skill<br/>[SKILL.md]"]
  node_research["Source collection"]
  node_figure["Figure construction"]
  node_review["Figure checks"]
  node_page["Standalone page"]
end

subgraph group_drawing["Drawing kit"]
  node_iso["Isometric geometry<br/>[iso-kit.mjs]"]
  node_lathe["Lathed forms<br/>[lathe.mjs]"]
  node_tubes["Biological tubes<br/>[tube.mjs]"]
  node_organic["Organic forms<br/>[blob.mjs]"]
  node_branches["Branching forms<br/>[branch.mjs]"]
  node_molecules["Molecules and ribbons<br/>[chem.mjs]"]
  node_bioaudit["Biology figure audit<br/>[bio-audit.mjs]"]
end

subgraph group_motion["Motion and turning"]
  node_turn["Turn model<br/>[turn.mjs]"]
  node_turnbuild["Turn builder<br/>[turn-build.mjs]"]
  node_audit["Scene audit<br/>[audit.mjs]"]
  node_turnaudit["Turn audit<br/>[turn-audit.mjs]"]
end

subgraph group_interaction["Interactive display"]
  node_reactdraw["React drawing<br/>[draw.tsx]"]
  node_live["Live motion hooks<br/>[live.tsx]"]
end

node_user(("Figure requester"))

node_user -->|"requests figure"| node_skill
node_skill -->|"collects sources"| node_research
node_skill -->|"builds figure"| node_figure
node_figure -->|"writes page"| node_page
node_skill -->|"checks figure"| node_review
node_figure -->|"uses kit"| node_iso
node_lathe -->|"projects forms"| node_iso
node_tubes -->|"uses geometry"| node_lathe
node_organic -->|"uses geometry"| node_iso
node_branches -->|"uses tube geometry"| node_tubes
node_molecules -->|"uses geometry"| node_iso
node_audit -->|"uses projection"| node_iso
node_audit -->|"uses geometry"| node_lathe
node_audit -->|"uses tube runs"| node_tubes
node_turnbuild -->|"builds turns"| node_turn
node_turnbuild -->|"uses geometry"| node_iso
node_turnbuild -->|"uses geometry"| node_lathe
node_turnbuild -->|"uses scene audit"| node_audit
node_turnaudit -->|"audits turns"| node_turn
node_turnaudit -->|"uses build helpers"| node_turnbuild
node_turnaudit -->|"uses scene audit"| node_audit
node_reactdraw -->|"uses projection"| node_iso
node_reactdraw -->|"renders stage"| node_live
node_figure -.->|"audit support"| node_bioaudit

click node_skill "https://github.com/garinmckayl/anima/blob/main/SKILL.md"
click node_figure "https://github.com/garinmckayl/anima/tree/main/examples"
click node_iso "https://github.com/garinmckayl/anima/blob/main/kit/iso-kit.mjs"
click node_lathe "https://github.com/garinmckayl/anima/blob/main/kit/lathe.mjs"
click node_tubes "https://github.com/garinmckayl/anima/blob/main/kit/tube.mjs"
click node_organic "https://github.com/garinmckayl/anima/blob/main/kit/blob.mjs"
click node_branches "https://github.com/garinmckayl/anima/blob/main/kit/branch.mjs"
click node_molecules "https://github.com/garinmckayl/anima/blob/main/kit/chem.mjs"
click node_bioaudit "https://github.com/garinmckayl/anima/blob/main/kit/bio-audit.mjs"
click node_turn "https://github.com/garinmckayl/anima/blob/main/kit/turn.mjs"
click node_turnbuild "https://github.com/garinmckayl/anima/blob/main/kit/turn-build.mjs"
click node_audit "https://github.com/garinmckayl/anima/blob/main/kit/audit.mjs"
click node_turnaudit "https://github.com/garinmckayl/anima/blob/main/kit/turn-audit.mjs"
click node_reactdraw "https://github.com/garinmckayl/anima/blob/main/kit/react/draw.tsx"
click node_live "https://github.com/garinmckayl/anima/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,node_research,node_figure,node_review,node_page toneBlue
class node_iso,node_lathe,node_tubes,node_organic,node_branches,node_molecules,node_bioaudit toneAmber
class node_turn,node_turnbuild,node_audit,node_turnaudit,node_user toneMint
class node_reactdraw,node_live toneRose
```

## Components

### Figure workflow

- [Anima skill](https://github.com/garinmckayl/anima/blob/main/SKILL.md): `SKILL.md`
- **Source collection**
- [Figure construction](https://github.com/garinmckayl/anima/tree/main/examples): `examples`
- **Figure checks**
- **Standalone page**

### Drawing kit

- [Isometric geometry](https://github.com/garinmckayl/anima/blob/main/kit/iso-kit.mjs): `kit/iso-kit.mjs`
- [Lathed forms](https://github.com/garinmckayl/anima/blob/main/kit/lathe.mjs): `kit/lathe.mjs`
- [Biological tubes](https://github.com/garinmckayl/anima/blob/main/kit/tube.mjs): `kit/tube.mjs`
- [Organic forms](https://github.com/garinmckayl/anima/blob/main/kit/blob.mjs): `kit/blob.mjs`
- [Branching forms](https://github.com/garinmckayl/anima/blob/main/kit/branch.mjs): `kit/branch.mjs`
- [Molecules and ribbons](https://github.com/garinmckayl/anima/blob/main/kit/chem.mjs): `kit/chem.mjs`
- [Biology figure audit](https://github.com/garinmckayl/anima/blob/main/kit/bio-audit.mjs): `kit/bio-audit.mjs`

### Motion and turning

- [Turn model](https://github.com/garinmckayl/anima/blob/main/kit/turn.mjs): `kit/turn.mjs`
- [Turn builder](https://github.com/garinmckayl/anima/blob/main/kit/turn-build.mjs): `kit/turn-build.mjs`
- [Scene audit](https://github.com/garinmckayl/anima/blob/main/kit/audit.mjs): `kit/audit.mjs`
- [Turn audit](https://github.com/garinmckayl/anima/blob/main/kit/turn-audit.mjs): `kit/turn-audit.mjs`

### Interactive display

- [React drawing](https://github.com/garinmckayl/anima/blob/main/kit/react/draw.tsx): `kit/react/draw.tsx`
- [Live motion hooks](https://github.com/garinmckayl/anima/blob/main/kit/react/live.tsx): `kit/react/live.tsx`

### Other components

- **Figure requester**

## Connections

- Figure requester → Anima skill: requests figure (evidence: `README.md`)
- Anima skill → Source collection: collects sources (evidence: `README.md`)
- Anima skill → Figure construction: builds figure (evidence: `README.md`)
- Figure construction → Standalone page: writes page (evidence: `README.md`)
- Anima skill → Figure checks: checks figure (evidence: `README.md`)
- Figure construction → Isometric geometry: uses kit (evidence: `README.md`)
- Lathed forms → Isometric geometry: projects forms (evidence: `kit/lathe.mjs`)
- Biological tubes → Lathed forms: uses geometry (evidence: `kit/tube.mjs`)
- Organic forms → Isometric geometry: uses geometry (evidence: `kit/blob.mjs`)
- Branching forms → Biological tubes: uses tube geometry (evidence: `kit/branch.mjs`)
- Molecules and ribbons → Isometric geometry: uses geometry (evidence: `kit/chem.mjs`)
- Scene audit → Isometric geometry: uses projection (evidence: `kit/audit.mjs`)
- Scene audit → Lathed forms: uses geometry (evidence: `kit/audit.mjs`)
- Scene audit → Biological tubes: uses tube runs (evidence: `kit/audit.mjs`)
- Turn builder → Turn model: builds turns (evidence: `kit/turn-build.mjs`)
- Turn builder → Isometric geometry: uses geometry (evidence: `kit/turn-build.mjs`)
- Turn builder → Lathed forms: uses geometry (evidence: `kit/turn-build.mjs`)
- Turn builder → Scene audit: uses scene audit (evidence: `kit/turn-build.mjs`)
- Turn audit → Turn model: audits turns (evidence: `kit/turn-audit.mjs`)
- Turn audit → Turn builder: uses build helpers (evidence: `kit/turn-audit.mjs`)
- Turn audit → Scene audit: uses scene audit (evidence: `kit/turn-audit.mjs`)
- React drawing → Isometric geometry: uses projection (evidence: `kit/react/draw.tsx`)
- React drawing → Live motion hooks: renders stage (evidence: `kit/react/draw.tsx`)
- Figure construction → Biology figure audit: audit support (evidence: `README.md`)
