# talsiach/take-one architecture

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

- Interactive diagram: https://gitdiagram.com/talsiach/take-one
- Repository: https://github.com/talsiach/take-one

## Overview

1. **Purpose and principal workflow.** Take One is a Claude Code skill and local toolset for producing short films from a user’s creative brief. The user starts the workflow by invoking `/take-one` or asking Claude Code to make a film; Claude Code follows the skill’s creative and production guidance, calls local scripts as needed, and returns a rendered film and accompanying materials. The README describes paid image, video, voice, and music services as optional, user-approved routes—not requirements.

2. **Components**

**Skill and creative direction**
- **Claude Code** — *external caller; path: null.* Receives the user’s request and runs the skill in a Claude Code session.
- **Take One skill instructions** — `SKILL.md`. The documented entry point for the skill; it guides the session through the creative and production workflow.
- **Creative and production references** — `references/pipeline.md`. The reference library covers craft and workflow topics such as brand study, story, timing, sound, review, and delivery; this path is a representative workflow guide.
- **Visual style references** — `references/styles/animated-short.md`. Style guides define visual directions the skill can draw on; this path is one example from the style collection.
- **User** — *external actor; path: null.* Supplies the brief and can choose staged work, approve paid options, and give notes.

**Film production tools**
- **Browser-based frame renderer** — `scripts/serve.mjs`. A local rendering utility; the README identifies local pages among the tools used to draw frames.
- **Frame capture** — `scripts/frames.mjs`. A tool for capturing rendered frames; its source-index references include the local server.
- **Audio/video export** — `scripts/export.mjs`. A tool for export; its source-index references include the local server.
- **Quality gate and audits** — `scripts/gate.mjs`. Checks a film against quality criteria; separate scripts cover text, picture, sound, and other audits.
- **Review room** — `scripts/review-room/server.mjs`. Serves a local review-room page where a user can leave notes on frames, as described in the README.

**Music generation**
- **Music command-line workflow** — `scripts/music.mjs`. The music tool entry point; the source index shows it references the music engine’s export module.
- **Piece planning and validation** — `scripts/music/plan.mjs`. Models musical parts and sections, parses note notation, validates plans, and can reshape sections to fit a duration.
- **Musical theory and style data** — `scripts/music/theory.mjs`. Supplies theory support; `scripts/music/tables.mjs` holds mood, style, and melody data.
- **Performance shaping** — `scripts/music/perform.mjs`. Converts written notes in beats into played key presses in seconds, with timing and expression adjustments.
- **Sound synthesis and mixing** — `scripts/music/render.mjs`. Renders parts into audio stems and a stereo mix, with effects and mastering.
- **Instrument voices** — `scripts/music/piano.mjs`. Synthesizes piano from procedural sound components; `scripts/music/instruments.mjs` and `scripts/music/lofiKit.mjs` implement other voice families.
- **DSP building blocks** — `scripts/music/dsp.mjs`. Provides shared synthesis and signal-processing primitives used by the instrument and rendering layers.
- **Audio measurement** — `scripts/music/meter.mjs`. Implements audio measurements including loudness, true peak, onset, and spectral analysis.

3. **Relationships**
- **User -> Claude Code**: submits a film request; evidence: `README.md`.
- **Claude Code -> Take One skill instructions**: invokes the skill or recognizes a plain-language request; evidence: `README.md`.
- **Take One skill instructions -> Creative and production references**: uses the repository’s reference material to guide the work; evidence: `README.md`.
- **Take One skill instructions -> Film production tools**: directs use of local production tools; evidence: `README.md`.
- **Take One skill instructions -> Music command-line workflow**: can use the music tool as part of production; evidence: `README.md` (music is documented as a production capability; exact invocation is not shown).
- **User -> Review room**: leaves frame-specific notes in the local review room; evidence: `README.md`.
- **Music command-line workflow -> Sound synthesis and mixing**: references the music engine entry module; evidence: `scripts/music.mjs` (read in the SOURCE INDEX).
- **Sound synthesis and mixing -> Performance shaping**: converts the piece to performed keys; evidence: `scripts/music/render.mjs` (excerpt).
- **Sound synthesis and mixing -> Instrument voices**: renders non-piano voices through the instrument modules; evidence: `scripts/music/render.mjs` (excerpt).
- **Sound synthesis and mixing -> DSP building blocks**: uses shared DSP functions and filters; evidence: `scripts/music/render.mjs` (excerpt).
- **Sound synthesis and mixing -> Audio measurement**: relationship not established by the sampled source; evidence: none (inferred).

4. **Coverage limits.** The README documents the skill’s broader workflow, but `SKILL.md` and most production scripts were not excerpted, so their precise orchestration, call order, and data handoffs cannot be verified. The exact use of paid providers, the review-room interaction wiring, and the full music command flow are therefore not asserted.

Main entry points: [`scripts/music/render.mjs`](https://github.com/talsiach/take-one/blob/main/scripts/music/render.mjs) (Sound synthesis and mixing), [`SKILL.md`](https://github.com/talsiach/take-one/blob/main/SKILL.md) (Take One skill), [`scripts/music.mjs`](https://github.com/talsiach/take-one/blob/main/scripts/music.mjs) (Music workflow), [`references/pipeline.md`](https://github.com/talsiach/take-one/blob/main/references/pipeline.md) (Production references)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_actors["External actors"]
  node_user(("User<br/>external actor"))
  node_claude(("Claude Code<br/>external caller"))
end

subgraph group_creative["Creative direction"]
  node_skill["Take One skill<br/>skill instructions"]
  node_pipeline["Production references<br/>workflow guide"]
end

subgraph group_production["Film production"]
  node_production_tools["Film production tools<br/>toolset"]
  node_review["Review room<br/>local review server"]
end

subgraph group_music["Music generation"]
  node_music_cli["Music workflow<br/>command-line tool"]
  node_music_render["Sound synthesis and mixing<br/>audio renderer"]
  node_performance["Performance shaping<br/>music performance"]
  node_instruments["Instrument voices<br/>sound synthesis"]
  node_dsp["DSP building blocks<br/>signal processing"]
  node_meter["Audio measurement<br/>audio analysis"]
end

node_user -->|"submits request"| node_claude
node_claude -->|"invokes skill"| node_skill
node_skill -->|"uses references"| node_pipeline
node_skill -->|"directs use"| node_production_tools
node_skill -->|"can use"| node_music_cli
node_user -->|"leaves frame notes"| node_review
node_music_cli -->|"references engine"| node_music_render
node_music_render -->|"shapes performance"| node_performance
node_music_render -->|"renders voices"| node_instruments
node_music_render -->|"uses DSP"| node_dsp
node_music_render -.-> node_meter

click node_skill "https://github.com/talsiach/take-one/blob/main/SKILL.md"
click node_pipeline "https://github.com/talsiach/take-one/blob/main/references/pipeline.md"
click node_review "https://github.com/talsiach/take-one/blob/main/scripts/review-room/server.mjs"
click node_music_cli "https://github.com/talsiach/take-one/blob/main/scripts/music.mjs"
click node_music_render "https://github.com/talsiach/take-one/blob/main/scripts/music/render.mjs"
click node_performance "https://github.com/talsiach/take-one/blob/main/scripts/music/perform.mjs"
click node_instruments "https://github.com/talsiach/take-one/blob/main/scripts/music/piano.mjs"
click node_dsp "https://github.com/talsiach/take-one/blob/main/scripts/music/dsp.mjs"
click node_meter "https://github.com/talsiach/take-one/blob/main/scripts/music/meter.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_user,node_claude toneBlue
class node_skill,node_pipeline toneAmber
class node_production_tools,node_review toneMint
class node_music_cli,node_music_render,node_performance,node_instruments,node_dsp,node_meter toneRose
```

## Components

### External actors

- **User**: external actor · Supplies the creative brief and can leave review notes.
- **Claude Code**: external caller · Runs the skill in a Claude Code session.

### Creative direction

- [Take One skill](https://github.com/talsiach/take-one/blob/main/SKILL.md): skill instructions · `SKILL.md`
- [Production references](https://github.com/talsiach/take-one/blob/main/references/pipeline.md): workflow guide · Representative guide to craft and production workflow topics. · `references/pipeline.md`

### Film production

- **Film production tools**: toolset · Local frame renderer, frame capture, audio/video export, and quality gate tools.
- [Review room](https://github.com/talsiach/take-one/blob/main/scripts/review-room/server.mjs): local review server · Serves a review page for frame-specific user notes. · `scripts/review-room/server.mjs`

### Music generation

- [Music workflow](https://github.com/talsiach/take-one/blob/main/scripts/music.mjs): command-line tool · `scripts/music.mjs`
- [Sound synthesis and mixing](https://github.com/talsiach/take-one/blob/main/scripts/music/render.mjs): audio renderer · Renders parts into audio stems and a stereo mix. · `scripts/music/render.mjs`
- [Performance shaping](https://github.com/talsiach/take-one/blob/main/scripts/music/perform.mjs): music performance · Converts written notes into timed played key presses. · `scripts/music/perform.mjs`
- [Instrument voices](https://github.com/talsiach/take-one/blob/main/scripts/music/piano.mjs): sound synthesis · Includes piano and other instrument voice families. · `scripts/music/piano.mjs`
- [DSP building blocks](https://github.com/talsiach/take-one/blob/main/scripts/music/dsp.mjs): signal processing · `scripts/music/dsp.mjs`
- [Audio measurement](https://github.com/talsiach/take-one/blob/main/scripts/music/meter.mjs): audio analysis · Measures loudness, true peak, onset, and spectral properties. · `scripts/music/meter.mjs`

## Connections

- User → Claude Code: submits request (evidence: `README.md`)
- Claude Code → Take One skill: invokes skill (evidence: `README.md`)
- Take One skill → Production references: uses references (evidence: `README.md`)
- Take One skill → Film production tools: directs use (evidence: `README.md`)
- Take One skill → Music workflow: can use · Music is documented as a production capability; exact invocation is not shown. (evidence: `README.md`)
- User → Review room: leaves frame notes (evidence: `README.md`)
- Music workflow → Sound synthesis and mixing: references engine (evidence: `scripts/music.mjs`)
- Sound synthesis and mixing → Performance shaping: shapes performance (evidence: `scripts/music/render.mjs`)
- Sound synthesis and mixing → Instrument voices: renders voices (evidence: `scripts/music/render.mjs`)
- Sound synthesis and mixing → DSP building blocks: uses DSP (evidence: `scripts/music/render.mjs`)
- Sound synthesis and mixing → Audio measurement: Inferred; not shown in the code that was read. (evidence: `scripts/music/render.mjs`)
