agentleFS
AhmedAl-AshwalAhmedAl-Ashwal/claude-code-global-config/skills/video-production/SKILL.md

video-production

Skill1 starsChanged 52 days agoMITView on GitHub

Produce, revise, subtitle, and resume walkthrough, training, or marketing videos with ffmpeg from recorded screens, generated title cards, and SRT subtitles (for example the AFPPF ERP films). Use for any video, film, فيديو, reel, montage, chapter, subtitle, voice-over timing, contact sheet, or ffmpeg task, and especially when asked to "continue" or "استمر" a video after an interruption, so finished segments are reused instead of re-rendered.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use email-marketing, backend-development and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • claude-office-skillsSkill

    email-marketing

    Email marketing automation - campaign creation, sequence building, A/B testing, deliverability optimization, and analytics

    Also in 3 projects that use this

  • mrgoonieSkill

    backend-development

    Build robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis), APIs (REST, GraphQL, gRPC), authentication (OAuth 2.1, JWT), testing strategies, security best practices (OWASP Top 10), performance optimization, scalability patterns (microservices, caching, sharding), DevOps practices (Docker, Kubernetes, CI/CD), and monitoring. Use when designing APIs, implementing authentication, optimizing database queries, setting up CI/CD pipelines, handling security vulnerabilities, building microservices, or developing production-ready backend systems.

    Also in 3 projects that use this

  • nilssonrSkill

    seo

    Full SEO workflow for auditing pages and creating SEO-optimized content. Provides checklists with educational explanations aligned with Google Search Central documentation.

    Also in 3 projects that use this

  • SupabaseSkill

    copywriting

    Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.

    Also in 3 projects that use this

  • AnthropicSkill

    design-system

    Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look for docs/ARCHITECTURE.md, Video/pipeline/, build/, *.ffmeta, concat_*.txt, parts/, verify.json, parts_results.json.

    line 22
  2. Very specific:

    When a visual check is truly needed, one contact sheet (-vf "fps=1/10,scale=320:-1,tile=6x4") replaces many screenshots.

    line 47
  3. Very specific:

    Never read .mp4 or .png bytes, never paste ffmpeg output.

    line 54
  4. Distinctive:

    Use the project's recorder script (browser automation driven by a step list, usually documented in ARCHITECTURE.md with its environment …

    line 58

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video production, resumable and cheap

Why this playbook exists

Renders are slow and media is opaque: Claude cannot watch a video, and ffmpeg progress or media bytes in the conversation are pure waste. Treat a film as data (a segment list) plus a deterministic build. Then any interruption resumes from the last finished segment, and any change re-renders only what it touches.

First: find the pipeline that already exists

  • Look for docs/ARCHITECTURE.md, Video/pipeline/, build/, *.ffmeta, concat_*.txt, parts/, verify.json, parts_results.json. If they exist the project already has a pipeline: read the pipeline section of ARCHITECTURE.md and reuse it. Do not write a second one.
  • On "continue": python <skill>/scripts/parts_status.py build/parts --expect segments.txt lists what exists, what is missing, and durations. Resume at the first missing or failed segment. Verify finished parts with ffprobe, never by re-rendering.

Structure a film as data

  • One segment list (segments.json or the project's equivalent) with one entry per segment: id, source clip, in and out points, title card text (Arabic and English), lower-third, subtitle cue. This file is the film; everything else derives from it.
  • build/parts/<id>.mp4 per segment, build/concat_<chapter>.txt for ffmpeg -f concat -safe 0, build/chapters.ffmeta for chapter metadata, <name>.srt beside each final mp4.
  • Graphics (title cards, lower-thirds, outro) come from the project's DESIGN.md tokens. Render each once as PNG or HTML and reuse it; never restyle per segment.
  • Arabic text: shape with arabic_reshaper and python-bidi when drawing with PIL. A full ffmpeg build (for example the gyan.dev full build) includes libfribidi and harfbuzz for drawtext; test one frame before rendering a chapter. Fonts follow the design system (Cairo for display, Tajawal for text).

Render rules

  • Quiet ffmpeg: -hide_banner -loglevel error -nostats -y. Run long renders in the background with output to a log and check tail -n 5 render.log; never stream progress into chat.
  • Facts, not eyes: ffprobe -v error -show_entries format=duration:stream=width,height,r_frame_rate -of default=nw=1 file.mp4. When a visual check is truly needed, one contact sheet (-vf "fps=1/10,scale=320:-1,tile=6x4") replaces many screenshots.
  • Idempotent: skip a part whose output exists and is newer than its inputs; keep parts_results.json with status and duration per part.
  • Subtitles: generate the SRT from the segment timings; burn in with the subtitles= filter only for the final export and keep the sidecar .srt too.
  • Portrait and landscape variants share parts: crop or scale at concat time, not by re-recording.
  • Never read .mp4 or .png bytes, never paste ffmpeg output; report durations and file names only.

Recording new footage

Use the project's recorder script (browser automation driven by a step list, usually documented in ARCHITECTURE.md with its environment variables). Script the navigation as steps, record per chapter, and take the screen list from the system inventory. Do not drive the browser manually screen by screen through MCP tools to record; that costs a screenshot per step and is not repeatable.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.