Skip to content
Content
Skill

/process-library

Process the footage in a library — run analysis (transcripts, contact sheets, summaries) on a new library, resume processing on an existing one, or add and analyze new footage. Use when footage needs analyzing.

From plugin
buttercut
62516 skills

Claude Code

$ npx -y skills add barefootford/buttercut --skill process-library --agent claude-code

SKILL.md

process-library.SKILL.md
name: process-library
description: Process the footage in a library — run analysis (transcripts, contact sheets, summaries) on a new library, resume processing on an existing one, or add and analyze new footage. Use when footage needs analyzing.

Skill: Process Library (parent brief)

This skill is the main thread's playbook for the **Analyze Video** workflow step — processing the footage in a library that already exists. Use it whenever the user wants to:

  • Analyze a newly created library (this is where `create-library` hands off after scaffolding).
  • Return to an existing library and continue from wherever analysis left off.
  • Add new footage to an existing library and analyze just the new clips.

It orchestrates the full `transcribe-audio` → contact sheets → summaries pipeline. The mechanics of each analysis step live in `skills/analyze-video/SKILL.md`; this skill calls into them.

Step 1 — Locate the library

You need an existing library to process. Confirm which one:

ruby lib/buttercut/library.rb <name> exists   # exits 0 if it does, 1 if not

**If it exists:**

  • Read the snapshot — one call gives you top-level metadata plus the clip-completion breakdown (`video_count`, `incomplete_count`, and the list of incomplete clips with their missing fields):
  ruby lib/buttercut/library.rb <name> summary
  • Run any schema migrations from AGENTS.md → Critical Principles before touching anything else.
  • Continue from whatever step is incomplete.

**If the directory exists but `exists` returns 1** (library.yaml missing):

  • Check what files are present (`transcripts/`, `cuts/`, etc.) and inform the user of the current state.
  • The library needs scaffolding — use `create-library` to restore consistency, then return here.

**If no library directory exists:**

  • There's nothing to process. The user wants to start a new project — use the `create-library` skill first, which will hand back here once the library is scaffolded.

To find libraries by recency (for "the library I was just working on" / "resume a recent one" prompts):

ruby lib/buttercut/library.rb recent [N]   # N most-recently-touched libraries (default 10)

Step 2 — Add new footage

If the user is adding new footage to an existing library, append the clips first. `add_media` takes videos and images together — the type is inferred from each file's extension:

ruby lib/buttercut/library.rb <name> add_media /abs/new1.mov /abs/photo.jpg

Each new video entry starts with empty `transcript`, `contact_sheet`, and `summary`; each image entry starts with an empty `summary` only. Empty means "todo." The analysis steps below are idempotent and only touch clips missing an artifact, so they'll process just the new clips — and because the transcript/contact-sheet phases are video-only, images flow straight to the summary step.

If you're simply resuming or processing a freshly created library, skip this step.

Step 3 — Analyze footage

Inform the user: "Found [N] videos ([total size]). Starting footage analysis..."

Follow `skills/analyze-video/SKILL.md` end-to-end. That skill covers keeping the computer awake during processing, footage processing (transcripts then contact sheets, two deterministic `process_footage.rb` runs), optional transcript refinement, summaries (Sonnet sub-agents, batched + rolling), and the post-analysis footage-understanding pass.

As footage gets processed, don't make assumptions about the the footage based on the filename or camera brand. A `dji` clip is not "drone footage" just because of the brand. DJI also makes gimbal and cinema cameras. Sony makes mirrorless cameras as well as action cameras. Don't characterize footage as aerial, drone, etc unless the footage reveals it.

ruby lib/buttercut/library.rb <name> update_metadata footage_summary "subjects/locations/activities/visual style"

The full understanding pass at the end of analyze-video is where this gets refined.

Analyze ALL videos before offering to create rough cuts.

Step 4 — Verify readiness

Before reporting analysis complete, confirm the library passes the same gate the `cut` skill uses:

ruby lib/buttercut/library.rb <name> ready

If it exits non-zero, run `ruby lib/buttercut/library.rb <name> summary` to list the incomplete clips, finish the missing artifacts (loop back into whichever analyze-video step owns them), and re-run `ready` until it passes. Don't claim analysis is done while `Library.ready?` is false.

Step 5 — Backup

After all analysis completes, automatically create a backup using the `backup-library` skill, scoped to just the library you processed: `ruby lib/buttercut/backup_libraries.rb --library <library-name>`. This writes a single archive under `~/Documents/buttercut-video-editor-backups/<library-name>/` (or wherever `backups_dir` in `libraries/settings.yaml` points). If `backups_dir` isn't set yet, the script silently uses the default — don't prompt during process-library.

Notes

  • A single `tmp/` directory inside the buttercut project root is used for all temporary files. Create subdirectories as needed and delete after use.
  • Reprocessing footage: `process_footage.rb` only handles clips missing an artifact. To rebuild ones that already exist, re-run the relevant step (`transcripts` or `contact-sheets`) with `--force` (optionally `--clips a.mov,b.mov`). See analyze-video Step 2.
  • Migrations: every time you read a library.yaml, check its schema against `templates/library_template.yaml`. If anything's missing or renamed, run `ruby lib/buttercut/library.rb migrate` to migrate all libraries at once. See AGENTS.md → Critical Principles for the migration trigger list.
Read more
@barefootford
Ships withbuttercut

This is the source code for the core ButterCut XML generator and video editing agent. If you love or hate Docker, have opinions on types, and have a favorite text editor, this is the spot for you.

Stars on GitHub

Momentum

stars in total
625
Star history of barefootford/buttercut on GitHub, a chart by star-history.com

Other skills on buttercut.

analyze-video

analyze-video

Internal sub-procedure (not a standalone entry point) — the shared footage-analysis pipeline that produces audio transcripts,…

backup-library

backup-library

Backs up user libraries and all their contents (external video excluded). This skill can also be useful when you need to restore…

bc

bc

The ButterCut home menu — welcome the user back, then ask what they'd like to do (start a new cut, add footage to a library, a…

buttercut

buttercut

The ButterCut home menu — welcome the user back, then ask what they'd like to do (start a new cut, add footage to a library, a…

contact-sheet

contact-sheet

Builds a contact sheet from a video clip — evenly spaced frames laid out in a single grid image, each with its hh:mm:ss timestamp…

create-library

create-library

Create a new ButterCut library. Gather library info (name, footage location, language, transcript proofreading) and scaffold the…

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

@iofficeai@iofficeaiInstall Skill

Questions about process-library.

Which coding agents can use process-library?
process-library installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.