# nisse-hash/claude-skill-video-to-website architecture

> Architecture diagram of the GitHub repository nisse-hash/claude-skill-video-to-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nisse-hash/claude-skill-video-to-website
- Repository: https://github.com/nisse-hash/claude-skill-video-to-website

## Overview

#### Purpose and Invocation

This repository packages a Claude Code skill, not a standalone web application. Its sole executable artifact is the skill definition at `SKILL.md`, installed into Claude Code’s skills directory and invoked with `/video-to-website` or inferred from natural-language requests. `README.md` documents installation, runtime prerequisites, and generated output.

Paths: `SKILL.md`, `README.md`

#### Skill-Orchestrated Generation

`SKILL.md` defines the agent workflow that collects a source video path plus optional brand/content/style inputs, applies defaults when omitted, and creates a self-contained website project. Claude Code is the control-plane runtime: it interprets the skill, runs local media commands, and writes the generated files.

Paths: `SKILL.md`

#### Video Analysis and Frame Pipeline

The generated-site workflow depends on locally installed `ffprobe` to inspect video metadata and `ffmpeg` to extract a bounded set of optimized WebP frames. Frame count/frequency is selected to keep scroll playback smooth while constraining output size, especially for longer videos. Generated frame files become the primary visual data source for the browser renderer.

Paths: `SKILL.md`, `README.md`

#### Generated Website Boundary

The skill emits a static project: `index.html`, `css/style.css`, `js/app.js`, and `frames/frame_*.webp`. There is no bundler, server-side application, package install, or backend. A local HTTP server is required during testing because browsers cannot reliably load frame assets from `file://` URLs.

Paths: `README.md`, `SKILL.md`

#### Scroll-Driven Rendering Core

The generated HTML hosts a canvas-based frame renderer. Browser scroll progress maps to frame indices, producing video-like playback from extracted images rather than native video controls. A two-phase loader preloads frames and exposes progress before/while the scroll experience becomes interactive.

Paths: `README.md`, `SKILL.md`

#### Animation and Interaction System

Generated `js/app.js` coordinates Lenis smooth scrolling with GSAP and ScrollTrigger. The scroll timeline controls the hero circle wipe, canvas playback, section entrance choreography, stat counters, marquee movement, dark-overlay opacity, and final persistent CTA. Section animations rotate among slide, fade, scale, clip, rotate, and stagger patterns to avoid consecutive repetition.

Paths: `README.md`, `SKILL.md`

#### Presentation and External Dependencies

Generated `css/style.css` owns responsive layout, typography, content-zone positioning, overlays, and mobile collapse behavior. The generated page loads Lenis, GSAP, and GSAP ScrollTrigger directly from jsDelivr CDN; these are the only external browser services. Claude Code plus local `ffmpeg`/`ffprobe` are required at generation time, while an HTTP server is only needed to serve the static result locally.

Paths: `README.md`, `SKILL.md`

Main entry points: [`SKILL.md`](https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/SKILL.md) (Static Project Generation), [`README.md`](https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/README.md) (README)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Claude Code Skill"]
  node_readme["README<br/>documentation<br/>[README.md]"]
  node_skill_definition["Video-to-Website Skill<br/>skill definition<br/>[SKILL.md]"]
  node_claude_code{{"Claude Code<br/>control-plane runtime"}}
end

subgraph group_generation["Generation Pipeline"]
  node_user_request["Video &amp; Brand Inputs<br/>generation input"]
  node_media_probe["ffprobe<br/>media inspector"]
  node_frame_extract["ffmpeg<br/>frame extractor"]
  node_project_emitter["Static Project Generation<br/>agent workflow<br/>[SKILL.md]"]
end

subgraph group_site["Generated Static Site"]
  node_html["Page Shell<br/>HTML"]
  node_styles["Responsive Styles<br/>CSS"]
  node_app["Scroll Experience<br/>browser JavaScript"]
  node_frames["WebP Frame Sequence<br/>visual assets"]
  node_http_server["Local HTTP Server<br/>test serving runtime"]
  node_canvas_renderer["Canvas Frame Renderer<br/>rendering layer"]
  node_loader["Two-Phase Frame Loader<br/>loading layer"]
  node_animation_stack["Lenis + GSAP + ScrollTrigger<br/>CDN browser dependencies"]
end

node_readme -.->|"documents"| node_skill_definition
node_user_request -->|"invokes with inputs"| node_claude_code
node_claude_code -->|"interprets"| node_skill_definition
node_skill_definition -->|"orchestrates"| node_project_emitter
node_project_emitter -->|"inspects video"| node_media_probe
node_media_probe -->|"metadata guides sampling"| node_frame_extract
node_project_emitter -->|"runs extraction"| node_frame_extract
node_project_emitter -->|"writes"| node_html
node_project_emitter -->|"writes"| node_styles
node_project_emitter -->|"writes"| node_app
node_frame_extract -->|"emits WebP frames"| node_frames
node_html -->|"loads"| node_styles
node_html -->|"loads"| node_app
node_app -->|"coordinates"| node_loader
node_loader -->|"preloads"| node_frames
node_app -->|"drives"| node_canvas_renderer
node_canvas_renderer -->|"renders"| node_frames
node_app -->|"loads from CDN"| node_animation_stack
node_animation_stack -->|"maps scroll progress"| node_canvas_renderer
node_http_server -->|"serves locally"| node_html
node_http_server -->|"serves assets"| node_frames

click node_readme "https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/README.md"
click node_skill_definition "https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/SKILL.md"
click node_project_emitter "https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/SKILL.md"

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_readme,node_skill_definition,node_claude_code toneBlue
class node_user_request,node_media_probe,node_frame_extract,node_project_emitter toneAmber
class node_html,node_styles,node_app,node_frames,node_http_server,node_canvas_renderer,node_loader,node_animation_stack toneMint
```

## Components

### Claude Code Skill

- [README](https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/README.md): documentation · Documents installation, prerequisites, and output. · `README.md`
- [Video-to-Website Skill](https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/SKILL.md): skill definition · Defines the agent workflow and generated project. · `SKILL.md`
- **Claude Code**: control-plane runtime · Invokes the skill and executes local generation steps.

### Generation Pipeline

- **Video & Brand Inputs**: generation input · Source video plus optional content, style, and brand direction.
- **ffprobe**: media inspector · Reads source video metadata.
- **ffmpeg**: frame extractor · Extracts a bounded, optimized WebP frame sequence.
- [Static Project Generation](https://github.com/nisse-hash/claude-skill-video-to-website/blob/master/SKILL.md): agent workflow · Applies defaults and writes the self-contained site. · `SKILL.md`

### Generated Static Site

- **Page Shell**: HTML · Hosts the canvas renderer and page sections.
- **Responsive Styles**: CSS · Controls layout, typography, overlays, and mobile collapse.
- **Scroll Experience**: browser JavaScript · Coordinates loading, canvas playback, and section interactions.
- **WebP Frame Sequence**: visual assets · Primary visual source for canvas playback.
- **Local HTTP Server**: test serving runtime · Serves frame assets during local testing.
- **Canvas Frame Renderer**: rendering layer · Maps scroll progress to frame indices.
- **Two-Phase Frame Loader**: loading layer · Preloads frames and exposes loading progress.
- **Lenis + GSAP + ScrollTrigger**: CDN browser dependencies · Drives smooth scrolling and scroll-triggered choreography.

## Connections

- README → Video-to-Website Skill: documents
- Video & Brand Inputs → Claude Code: invokes with inputs
- Claude Code → Video-to-Website Skill: interprets
- Video-to-Website Skill → Static Project Generation: orchestrates
- Static Project Generation → ffprobe: inspects video
- ffprobe → ffmpeg: metadata guides sampling
- Static Project Generation → ffmpeg: runs extraction
- Static Project Generation → Page Shell: writes
- Static Project Generation → Responsive Styles: writes
- Static Project Generation → Scroll Experience: writes
- ffmpeg → WebP Frame Sequence: emits WebP frames
- Page Shell → Responsive Styles: loads
- Page Shell → Scroll Experience: loads
- Scroll Experience → Two-Phase Frame Loader: coordinates
- Two-Phase Frame Loader → WebP Frame Sequence: preloads
- Scroll Experience → Canvas Frame Renderer: drives
- Canvas Frame Renderer → WebP Frame Sequence: renders
- Scroll Experience → Lenis + GSAP + ScrollTrigger: loads from CDN
- Lenis + GSAP + ScrollTrigger → Canvas Frame Renderer: maps scroll progress
- Local HTTP Server → Page Shell: serves locally
- Local HTTP Server → WebP Frame Sequence: serves assets
