Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

craft-beat-cut

БесплатноБез исполняемых скриптовНе проверен

Cut footage on the beat with ArtCraft FilmCraft - analyse a track, cut it to length on its downbeat grid, pick camera-punch hits, place edits on downbeats and…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

Об этом скилле

craft-beat-cut — music grid → footage cut on downbeats → punches on hits → mp4

Footage-timeline counterpart of hyperframes-showreel's beat-synced composition: here the picture is edited in FilmCraft (filmcraft skill — read it first); for a composition-driven showreel use hyperframes-showreel (see the split in craft-studio). The music side comes from the music-production skills; resumable-job rules are in the craft-studio router, section Craft jobs.

Step table

# Step Tool Input → Output Gate
0 Preflight + job agent request → job.json check: job
1 Analyse music-analysis track → 01-music/track_map.json check: map
2 Cut music music-edit-to-length map → 02-music/edit.wav, edit_edit.json pi-craft verify + check: edit
3 Pick hits beat-sync-video edit → 03-hits/hits.json (music-hits/1) check: hits
4 Conform audio SoundCraft edit.wav → 04-audio/music.wav (PCM 24-bit 48 kHz) pi-craft verify --codec audio=pcm_s24le
5 Cut picture FilmCraft footage + grid + hits → 05-cut/p.fcproj, rough.mp4 pi-craft verify duration
6 Punch + deliver FilmCraft project + music → 06-delivery/final.mp4 pi-craft verify h264 + aac + --frame-diff

Hand-off formats: wav PCM 24-bit 48 kHz, music-edit/1 and music-hits/1 json, mp4 h264 + aac. Write tolerances as ${D}±0.1 — in bash $D±0.1 swallows the ± into the variable name.

Step 0 — Preflight and job

Output: craft-jobs/<slug>/job.json (created or loaded). Gate: check: job.

All three music skills are essential — never guess beat times.

Sibling Package Check If missing
music-analysis music-production skill in the loaded skill list stop: name music-production (pi install npm:@blackbelt-technology/pi-dashboard-music-production)
music-edit-to-length music-production skill in the loaded skill list stop, same package
beat-sync-video music-production skill in the loaded skill list stop, same package — do not invent hit times

Runtime probe: the scripts need the quick-tier venv of music-analysis step 0 — .venv-music/bin/python -c "import librosa" must succeed; a failed probe counts as absent (stop and point to that skill's step 0). "Loaded skill list" is the available-skills list in your own system prompt; its entry location also gives the package directory (PKG). Needs the user's local music file (no ripping from streaming services).

Then set up the job (Craft jobs in craft-studio: slug rule, job-helper) and run Resume.

# run from the directory that contains craft-jobs/ (SLUG set as in step 0)
jq -e '.name and .workflow and (.steps | type == "object")' "craft-jobs/$SLUG/job.json"

Step 1 — Analyse

Output: 01-music/track_map.json (music-map/1). Gate: check: map.

Run music-analysis on the local track; read the sections and drop candidates and confirm the drop by ear.

# run inside the step directory: cd "$JOB/01-music" (the file is named as below)
jq -e '.schema=="music-map/1"' track_map.json

Step 2 — Cut the music

Output: 02-music/edit.wav and 02-music/edit_edit.json (music-edit/1). Gate: pi-craft verify on the wav (duration = target) and check: edit.

music-edit-to-length renders the cut and a preview. Listen before lock: ask the user to approve the preview (ask_user) before any picture is cut to its grid; keep rejected versions with a _vN suffix.

pi-craft verify "$JOB/02-music/edit.wav" --duration "${D}±0.1" --has-audio
# run inside the step directory: cd "$JOB/02-music" (the file is named as below)
jq -e '.schema=="music-edit/1" and .duration > 0 and (.downbeats_video | length) > 0' edit_edit.json

Step 3 — Pick the hits

Output: 03-hits/hits.json (music-hits/1). Gate: check: hits — right schema and at least one hit.

Run beat-sync-video (pick_hits.py) on edit_edit.json. Hits are video time; add hand-placed hits with "source":"manual". An empty or wrong-schema file stops the workflow — do not cut to guessed times.

# run inside the step directory: cd "$JOB/03-hits" (the file is named as below)
jq -e '.schema=="music-hits/1" and (.hits|length>0)' hits.json

Step 4 — Conform the audio

Output: 04-audio/music.wav (PCM 24-bit, 48 kHz). Gate: pi-craft verify --codec audio=pcm_s24le, duration unchanged.

pi-craft soundcraft exec convert "$JOB/02-music/edit.wav" "$JOB/04-audio/music.wav" --bit-depth 24 --rate 48000
pi-craft verify "$JOB/04-audio/music.wav" --duration "${D}±0.05" --codec audio=pcm_s24le

Step 5 — Cut the picture

Output: 05-cut/p.fcproj, 05-cut/rough.mp4 (the retained reference for step 6). Gate: pi-craft verify — duration equals the music, one clip m

Полный SKILL.md на GitHub

Установить craft-beat-cut в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл craft-beat-cut?

Cut footage on the beat with ArtCraft FilmCraft - analyse a track, cut it to length on its downbeat grid, pick camera-punch hits, place edits on downbeats and keyframe punch-ins on the hits, deliver an mp4 with the music. Use for "cut my footage to the beat", "sync the video edit to the music drops", "add camera punches on the hits", "make a beat-synced edit from these clips".

Как установить скилл craft-beat-cut?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл craft-beat-cut запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить craft-beat-cut с