Tutorial Video
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install tutorial-videoWhat this does: Create Fireship-quality developer tutorial videos from annotated markdown and terminal recordings. Use when the user asks to turn a tutorial, README, or terminal session into a short developer video, or mentions 'Fireship-style' videos.
Manual setup by platform
Claude Code
~/.claude/skills/tutorial-video/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Tutorial Video
Create polished developer tutorial videos from markdown and terminal recordings. Write your tutorial as annotated markdown, record your terminal with Asciinema, and get a Fireship-quality MP4.
Prerequisites
Requires the video-toolkit skill to be installed (for voiceover, image generation, talking head, cloud GPU endpoints). Also requires the remotion skill for composition patterns.
Setup
Step 1: Check State
TOOLKIT=~/.openclaw/workspace/claude-code-video-toolkit
cd $TOOLKIT
python3 tools/verify_setup.py
Step 2: Install Dependencies
cd $TOOLKIT
pip3 install --break-system-packages -r tools/requirements-tutorial.txt
npm install -g asciinema # Or: brew install asciinema
Step 3: Verify Cloud GPU Endpoints
Confirm .env in $TOOLKIT has Modal endpoint URLs configured (see video-toolkit skill for full setup). At minimum you need MODAL_QWEN3_TTS_ENDPOINT_URL. If using AI avatar, also MODAL_FLUX2_ENDPOINT_URL and MODAL_SADTALKER_ENDPOINT_URL.
Step 4: Verify Code Hike + Shiki
cd $TOOLKIT/templates/tutorial
npm install
npx remotion studio # Should open with sample tutorial
Creating a Tutorial Video
Step 1: Write Annotated Markdown
Create tutorial.md using Code Hike format:
!!steps
## Setting Up the Project
Create a new Hono project with the Cloudflare Workers template.
\`\`\`ts ! src/index.ts
import { Hono } from 'hono'
const app = new Hono()
export default app
\`\`\`
## Adding Your First Route
Add a GET route that returns JSON.
\`\`\`ts ! src/index.ts
import { Hono } from 'hono'
const app = new Hono()
// !mark(1:3)
app.get('/', (c) => {
return c.json({ message: 'Hello Hono!' })
})
export default app
\`\`\`
Each ## Heading becomes a video step. Text below the heading becomes voiceover narration. Code blocks animate between states with Shiki Magic Move.
Step 2: Record Terminal Demos
# Record a terminal session
asciinema rec recordings/01-setup.cast
# Replay to verify
asciinema play recordings/01-setup.cast
Step 3: Create Project
cd $TOOLKIT
cp -r templates/tutorial projects/MY_TUTORIAL
cd projects/MY_TUTORIAL
npm install
Step 4: Write Config
Edit src/config/tutorial-config.ts:
export const tutorialConfig: TutorialConfig = {
meta: {
title: 'Build a REST API with Hono',
fps: 30, width: 1920, height: 1080,
},
steps: [
{
id: 'intro',
type: 'title',
title: 'Build a REST API with Hono',
narration: 'In this tutorial, you will build a REST API with Hono.',
durationSeconds: 6,
transition: 'fade',
},
{
id: 'setup',
type: 'terminal',
title: 'Project Setup',
narration: 'Start by scaffolding a new Hono project.',
terminal: {
castFile: 'recordings/01-setup.cast',
theme: 'dracula',
speed: 1.5,
},
transition: 'slide-left',
},
{
id: 'first-route',
type: 'code',
title: 'Your First Route',
narration: 'Add a GET route that returns JSON.',
code: {
markdownFile: 'tutorial.md',
language: 'typescript',
theme: 'github-dark',
transitionFrames: 25,
},
transition: 'slide-left',
},
],
layout: {
defaultLayout: 'code-only',
padding: 40,
cornerRadius: 12,
showProgressBar: true,
progressBarPosition: 'bottom',
showChapterTitles: true,
webcam: {
enabled: true,
source: 'avatar',
file: 'webcam/avatar.mp4',
position: 'bottom-right',
sizePercent: 15,
borderRadius: 50,
},
},
audio: {
voiceover: {
provider: 'qwen3-tts',
speaker: 'Ryan',
tone: 'tutorial',
stepGap: 0.5,
},
backgroundMusic: {
file: 'audio/bg-music.mp3',
volume: 0.08,
},
},
theme: {
codeTheme: 'github-dark',
terminalTheme: 'dracula',
backgroundColor: '#0a0a0a',
accentColor: '#3b82f6',
textColor: '#ffffff',
fontFamily: 'Inter',
codeFontFamily: 'JetBrains Mono',
},
export: {
formats: [
{ name: 'youtube', width: 1920, height: 1080, fps: 30 },
{ name: 'shorts', width: 1080, height: 1920, fps: 30, maxDuration: 60 },
],
outputDir: 'out/',
},
};
Step types: title, code, terminal, browser, chapter, outro.
Transition types: fade, slide-left, slide-right, slide-up, wipe, zoom-in, none.
Duration rule for narration: ceil(word_count / 2.5) + 2 seconds. Terminal and code steps auto-calculate duration from content + voiceover length.
Asset manifest format, weights, placement rules and example (needed when writing the manifest): read
references/asset-manifest.md. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/tutorial-video/references/asset-manifest.md .
Step 5: Parse Markdown
cd $TOOLKIT
python3 tools/parse_tutorial.py \
--input projects/MY_TUTORIAL/tutorial.md \
--output projects/MY_TUTORIAL/src/config/parsed-steps.json
Step 6: Generate Voiceover
cd $TOOLKIT
python3 tools/generate_voiceover.py \
--config projects/MY_TUTORIAL/src/config/tutorial-config.ts \
--output-dir projects/MY_TUTORIAL/public/audio/voiceover/ \
--provider qwen3-tts --speaker Ryan --tone tutorial \
--cloud modal
Step 7: Generate Focus Regions (optional)
Auto-detect zoom regions from code diffs:
cd $TOOLKIT
python3 tools/detect_focus.py \
--config projects/MY_TUTORIAL/src/config/tutorial-config.ts \
--output projects/MY_TUTORIAL/src/config/focus-regions.json
Step 8: Extract Terminal Timing (optional)
Extract timing keyframes from .cast files for auto-generated pause points:
cd $TOOLKIT
python3 tools/cast_to_keyframes.py \
--input projects/MY_TUTORIAL/recordings/01-setup.cast \
--speed 1.5 \
--max-idle 2.0 \
--output projects/MY_TUTORIAL/src/config/cast-timing.json
Step 9: Generate Background Music (optional)
cd $TOOLKIT
python3 tools/music_gen.py \
--preset lofi \
--duration 300 \
--output projects/MY_TUTORIAL/public/audio/bg-music.mp3 \
--cloud modal
Presets: corporate-bg, upbeat-tech, ambient, dramatic, tension, hopeful, cta, lofi.
Step 10: Preview and Render
cd $TOOLKIT/projects/MY_TUTORIAL
# Real-time preview
npx remotion studio
# Render YouTube format
npx remotion render TutorialVideo out/tutorial-youtube.mp4
# Render TikTok/Shorts format
npx remotion render TutorialVideoVertical out/tutorial-shorts.mp4
# Instagram Square (1:1)
npx remotion render TutorialVideoSquare out/tutorial-square.mp4
Step 11: Post-Process (optional)
# Add intro/outro bumper
ffmpeg -f concat -safe 0 -i concat-list.txt -c copy out/final.mp4
# Optimize for web streaming
ffmpeg -i out/tutorial-youtube.mp4 -movflags +faststart out/tutorial-youtube-web.mp4
Output: out/tutorial-youtube.mp4
If a Step Fails
verify_setup.pyreports missing tools or.envkeys: fix only what it lists (install the package or add the Modal URL) and re-run it before Step 5; don't start generating audio on a half-configured toolkit.- A Modal endpoint times out or returns 5xx during voiceover/music generation: the first call after idle is a cold start, so retry once after ~60s. If it still fails, regenerate only the failed step's audio, not the whole tutorial; skip optional music/avatar rather than block the render.
npx remotion renderfails on a missing asset: check the path is underpublic/and loaded withstaticFile(), then re-render. If it fails on a timeout, re-run with a lower--concurrency.- The rendered MP4 is out of sync (narration overlaps the next step): recompute that step's duration from its word count (rule 6 below) instead of trimming audio.
Layout Modes
| Mode | Description | Use when |
|---|---|---|
code-only | Full-screen animated code | Showing code changes |
terminal-only | Full-screen terminal replay | Running CLI commands |
code-terminal | Side-by-side code + terminal | Showing code and its output |
code-browser | Side-by-side code + browser | Web development tutorials |
fullscreen | Full-screen screenshot/image | Architecture diagrams, UI demos |
split-view | 50/50 configurable split | Comparing before/after |
picture-in-picture | Main content + PiP overlay | Webcam or avatar talking head |
Animated Code Transitions
Code transitions use Shiki Magic Move (token-level FLIP animations):
- Move: Tokens that exist in both states animate to their new position
- Enter: New tokens fade in and slide from the right
- Leave: Removed tokens fade out and slide to the left
Supported annotations in Code Hike markdown:
// !mark(1:3)-- Highlight lines 1-3// !fold(5:10)-- Collapse lines 5-10// !callout[This is important]-- Callout annotation
150+ languages supported via Shiki. Themes: github-dark, github-light, dracula, monokai, one-dark-pro, vitesse-dark, etc.
Terminal Replay
Asciinema recordings play back inside the video with frame-perfect sync:
- Speed control:
speed: 1.5plays back at 1.5x - Idle compression:
maxIdleTime: 2.0caps gaps between keystrokes at 2 seconds - Pause points:
pauseAt: [{ time: 3.2, duration: 2, annotation: 'Note this output' }] - Themes:
dracula,monokai,solarized-dark,solarized-light,tango
Auto-Zoom Effects
Define focus regions per step to zoom into specific code or terminal areas:
focusRegions: [
{ startFrame: 0, x: 10, y: 40, width: 80, height: 30, zoom: 1.8 },
{ startFrame: 90, x: 10, y: 55, width: 80, height: 35, zoom: 1.6 },
]
Zoom transitions use Remotion spring() with high damping for smooth, non-bouncy motion. Auto-zoom regions can also be auto-generated from code diffs using tools/detect_focus.py.
Focus Highlight
Dims everything outside a focus region (spotlight effect):
focusHighlight: {
enabled: true,
opacity: 0.6, // Dim overlay opacity
borderRadius: 8,
featheredEdges: true, // Soft edges via box-shadow blur
}
The spotlight window animates with spring() when the focus region changes. Used automatically when focusRegions are defined on a step.
Smooth Cursor
Animated cursor overlay with Bezier interpolation between keyframe positions:
cursor: {
enabled: true,
keyframes: [
{ frame: 0, x: 50, y: 50 },
{ frame: 30, x: 200, y: 100, click: true },
{ frame: 60, x: 400, y: 300 },
],
showTrail: true,
trailLength: 4,
}
- Bezier interpolation: Smooth curves between positions (no jerky linear movement)
- Click ripple: Expanding ring animation on click events
- Motion trail: 3-5 ghost cursors at decreasing opacity following the main cursor
Webcam / Avatar PiP
Add a talking head overlay:
Option A: Real webcam recording
Record separately, reference in config:
webcam: {
enabled: true,
source: 'file',
file: 'webcam/recording.mp4',
position: 'bottom-right',
sizePercent: 15,
borderRadius: 50,
}
Option B: AI avatar (SadTalker)
Generate from a portrait image + voiceover audio:
cd $TOOLKIT
python3 tools/flux2.py --prompt "Professional developer, dark background" \
--width 1024 --height 576 --output projects/MY_TUTORIAL/public/webcam/presenter.png --cloud modal
python3 tools/sadtalker.py \
--image projects/MY_TUTORIAL/public/webcam/presenter.png \
--audio projects/MY_TUTORIAL/public/audio/voiceover/01-intro.mp3 \
--preprocess full --still --expression-scale 0.8 \
--output projects/MY_TUTORIAL/public/webcam/avatar-01.mp4 --cloud modal
SadTalker rules: ALWAYS use --preprocess full and --still. Generate per-step clips, NEVER one long video.
Step Annotations
Overlay arrows, callouts, and highlights on any step:
annotations: [
{
type: 'arrow',
x: 45, y: 60,
direction: 'down',
text: 'This line is key',
showAtFrame: 30,
durationFrames: 90,
},
{
type: 'highlight',
x: 10, y: 55,
width: 80, height: 8,
color: '#3b82f680',
showAtFrame: 0,
},
]
Types: arrow, callout, highlight, circle, underline, box.
Progress Bar + Chapter Markers
The progress bar fills proportionally to the current frame and shows chapter markers as dots at step boundaries:
layout: {
showProgressBar: true,
progressBarPosition: 'bottom', // 'top' or 'bottom'
showChapterTitles: true,
}
- Chapter markers appear as dots at each step boundary on the progress bar
- Chapter title animates in with a staggered spring at step start, auto-dismisses after 1.5s
- Both components respect theme
accentColorandtextColor
Social Format Export
Export from the same source to multiple formats:
| Format | Resolution | FPS | Max Duration |
|---|---|---|---|
| YouTube | 1920x1080 | 30 | -- |
| TikTok | 1080x1920 | 30 | 180s |
| YouTube Shorts | 1080x1920 | 30 | 60s |
| Square (Instagram) | 1080x1080 | 30 | -- |
Vertical formats auto-reflow: code gets larger font, terminal stacks above narration, PiP moves to top. See Step 10 for render commands.
Composition patterns (per-step audio, music, narrator PiP, transitions), cost estimates and Remotion packages: read
references/reference.md. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/tutorial-video/references/reference.md .
Key Rules
- All animation via
useCurrentFrame()+interpolate()/spring(). No CSS transitions or Tailwind animation classes. - Always
staticFile()for assets. Neverrequire(). - Always
<OffthreadVideo>for webcam/avatar. Never<video>. - Always
--preprocess full --stillfor SadTalker. - Generate voiceover per step, never as one long audio file.
- Duration =
ceil(word_count / 2.5) + 2for narration-driven steps. - Run all tools from
$TOOLKITroot, not from the project directory.
Source: Built on remotion.dev/templates/code-hike, codehike.org, shikijs/shiki-magic-move, asciinema.org
Security
Reviews (0)
Related skills
Browse all →More from Skills Hub
View source →More Build skills
Browse category →Frequently asked questions about tutorial-video
What does the tutorial-video skill do?
Create Fireship-quality developer tutorial videos from annotated markdown and terminal recordings. Use when the user asks to turn a tutorial, README, or terminal session into a short developer video, or mentions 'Fireship-style' videos. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the tutorial-video skill?
Run `npx @skills-hub-ai/cli install tutorial-video` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/tutorial-video/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does tutorial-video work with?
tutorial-video runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the tutorial-video skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use tutorial-video after installing it?
In Claude Code, type `/tutorial-video` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the tutorial-video skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.