Music & Photo Slideshow
Combine the structure of the music (buildup and release) with the story of the photos (timeline, event highlights, people) to create a video where transitions sync with the beat.
Write project-specific values in data/show.json and data/selection.csv; scripts are used as-is without modification.
This skill's folder is referred to as SKILL_DIR (e.g., ~/.claude/skills/music-slideshow). Scripts reside in SKILL_DIR/scripts/.
Core Principles
- This is the client's memory video. Never guess the narrative axis, copy, teacher names, or music structure. Release documents at each stage and obtain approval before proceeding (see
references/process.md). - Photos must not leave the local environment. Do not send student or family photos to external services such as image generation AIs. Generated images (backgrounds) must not contain people.
- Beats are the only ground truth. Cuts occur one frame before the beat; the peak of white flashes and shakes fall exactly on the beat. Acceptance criteria: over 90% of transitions are within ±2 frames (actual results: 100% within ±1 frame).
- Let the photos tell the story. Use minimal text, avoid placing text at the beginning of choruses, and limit the use of strong effects.
- Leave it rebuildable. Do not manually edit FilmCraft; instead modify
show.jsonandselection.csvand rebuild with scripts.
Prerequisites
- macOS (photo conversion uses
sips, fonts use Hiragino), Python 3 with Pillow, ffmpeg/ffprobe - librosa (for music analysis only; run
analyze_music.pyandfind_hits.pyusing Python from its virtual environment) filmcraft-cli(headless FilmCraft) and EffectCraft MCP (run_script,command_batch,render_frame,save_project)- Work is done in the project root (the folder containing
data/,work/,project/,specs/,output/). Scripts resolve relative paths from there.
assets/ Music (assets/bpm/), generated images (assets/generated/G-01.jpg …)
data/ show.json, selection.csv, beats.json, hits.json, photos.csv, photo_stats.csv, clips.csv, timeline.json
project/ slideshow.fcproj (FilmCraft), graphics.ecproj (EffectCraft), make_graphics.js and graphics_plan.js (copies)
work/ photos/ (converted), sheets/, graphics/ (.mov and assets), timeline/, review/, song_map.md
specs/ requirements.md, design.md, task.md, review-log.md, acceptance.md
output/ review_vN.mp4, preview_1080p.mp4, deliverables
Workflow
0. Preparation (tasks that can be done before the interview)
- Review assets: photo folders (counts per event), videos, and music. Copy
SKILL_DIR/assets/show.example.jsontodata/show.json, then fill inproject,photos, andmusic.file(other fields come later). - Photos:
convert_photos.py→fix_orientation.py work/photos→make_sheets.py. Videos:list_clips.py - Music:
analyze_music.py(leavesectionsempty) →find_hits.py "<song>"→song_map.py - Use the findings (tempo, length, estimated structure, counts per event, usable videos) as material for the interview.
1. Requirements (G1)
Ask about the purpose, audience, screening environment, mandatory people and scenes, allowable text, sequel plans, privacy scope, and whether commits are needed. Write the results in specs/requirements.md. Present questions in a "Question / Our Assumption" table at once.
2. Design (G2) — The core of this skill
Read references/scenario-design.md before proceeding.
- Estimate the music structure (
work/song_map.md) and have the client verify by ear (whether the first beat is beat 1, section boundaries, beginning of B-melody). Updatesections,chorus_bars,end_black_bar, andmusicinshow.json, then re-runanalyze_music.py. - Define the narrative axis (a phrase where the music theme and photo content overlap).
- Assign roles to sections, create a tempo ramp, and allocate by bar.
- Select effects (see
references/effects-catalog.md). Document where and why each effect is used. - Draft text copy and prompts for generated images (no people, consistent art style).
- Compile everything into
specs/design.md(template inreferences/process.md). The per-bar table must be granular enough to map directly toshow.jsonandselection.csv.
When experimenting with new effects or tool features, validate on a small scale before full implementation (see references/tool-notes.md for known pitfalls).
3. Selection (G4)
Read references/photo-selection.md. Review contact sheets using Read, then write data/selection.csv (columns defined in references/show-json.md). Look up files from IDs using photo_stats.csv. Generate a preview image list with preview_selection.py and have the client confirm it.
4. Implementation
python3 SKILL_DIR/scripts/prep_graphics.py # Prepare grid, collage, and generated image assets
python3 SKILL_DIR/scripts/graphics_plan.py # Generate project/graphics_plan.js, project/make_graphics.js, work/graphics/render_steps.json
EffectCraft (first time, save an empty project as project/graphics.ecproj):
- Pass the code displayed by
graphics_plan.py(two$.evalFilecalls andbuildAll()) torun_script. - Use
render_frameto view chapter titles and text frames one by one. - Pass the content of
work/graphics/render_steps.jsonas steps tocommand_batchfor rendering, thensave_project.
To rebuild only a subset, use graphics_plan.py --only CH7,CH8,GRID and pass the same names to buildAll(["CH7","CH8","GRID"]).
python3 SKILL_DIR/scripts/build_timeline.py # Generate data/timeline.json (fix selection.csv until problems count is 0)
python3 SKILL_DIR/scripts/apply_timeline.py # Generate project/slideshow.fcproj (with burn-in)
python3 SKILL_DIR/scripts/check_cuts.py project/slideshow.fcproj --timeline data/timeline.json
python3 SKILL_DIR/scripts/export.py frames 12,27,46.5,60 work/review/v1_sheet.jpg # Inspect specific bars with Read
python3 SKILL_DIR/scripts/export.py video review output/review_v1.mp4 # Use run_in_background
5. Review (G5)
See "Review Process" in references/process.md. Before showing the client, personally verify beat alignment, frame accuracy, duration, and audio levels. Log every issue in review-log.md, identify the root cause, fix it, and check similar sections. Report findings. Finally, produce a screening version with apply_timeline.py --no-burnin → export.py video screen output/preview_1080p.mp4.
6. Delivery (G6)
Export with export.py video screen and export.py video master, verify duration, format, and audio levels, and document acceptance criteria item by item in specs/acceptance.md.
Script Reference
| Script | Input → Output |
|---|---|
convert_photos.py | show.json's photos → work/photos/・data/photos.csv |
fix_orientation.py | Apply EXIF orientation to pixels in work/photos/ |
make_sheets.py | → work/sheets/・data/photo_stats.csv (ID, blur, brightness, orientation, similar photo groups) |
list_clips.py | → data/clips.csv |
analyze_music.py | Music & show.json → data/beats.json (beats, bars, sections, per-bar intensity) |
find_hits.py | Music → data/hits.json (candidate hit points; confirm by ear) |
song_map.py | → work/song_map.md (music map for scenario design) |
preview_selection.py | selection.csv → work/review/selection_preview_*.jpg |
prep_graphics.py | → work/graphics/grid/・collage_*/・bg/ |
graphics_plan.py | show.json・beats.json → EffectCraft configuration and render steps |
make_graphics.js | Functions to create EffectCraft compositions (copied by graphics_plan.py) |
build_timeline.py | show.json・selection.csv・beats.json → data/timeline.json |
apply_timeline.py | timeline.json → project/slideshow.fcproj (--no-burnin for screening) |
check_cuts.py | Beat alignment inspection |
export.py | Video (review / screen / master) and frame exports |
shake_steps.py | Shake motion table (used by build_timeline.py) |
Reference Materials (read when needed)
references/scenario-design.md— Creating music maps, section roles, tempo ramps, text, group photos, event additions (must read before design)references/effects-catalog.md— When and how to use each effect, values, implementation locations, track structurereferences/show-json.md— Complete reference for show.json and selection.csv fieldsreferences/photo-selection.md— Selection criteria, 16:9 cropping, privacyreferences/tool-notes.md— Known pitfalls in FilmCraft, EffectCraft, and librosa (check when stuck on implementation or export)references/process.md— Stages and approval gates, document templates, review and screeningassets/show.example.json— Proven configuration (130 BPM, 109 bars, 8 events, 3 min 21 sec)