mediaskills
AGENTS.md1 starsChanged 4 months agoMITView on GitHub
Start here when choosing a mediaskills skill. Install with: Machine-readable catalog: skills/index.json. Regenerate with python scripts/list_ops.py --write. Skills may live under a git checkout (skills/<name>/), $HOME/.agents/skills/<name>/, $HOME/.cursor/skills/<name>/, or a project .agents/skills/<name>/. Always invoke scripts by a real absolute path to the directory that contains that skill's SKILL.md. Do not cd into the skill folder (media --input paths are usually workspace-relative) and do not run scripts/foo.py against the current working directory. <skill_directory> in recipes is a placeholder. Never send that token…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- site/AGENTS.mdAGENTS.md
- site/CLAUDE.mdCLAUDE.md
- audioSkill
- captions-complianceSkill
- downloadSkill
- forced-narrative-exactSkill
- imageSkill
- inspectSkill
- install-media-toolsSkill
- program-masterSkill
- shotsSkill
- speech-captionsSkill
- subtitlesSkill
- timecodeSkill
- video-transformationSkill
- vision-analysisSkill
- audioSkill
- captions-complianceSkill
- downloadSkill
- forced-narrative-exactSkill
- imageSkill
- inspectSkill
- install-media-toolsSkill
- program-masterSkill
- shotsSkill
- speech-captionsSkill
- subtitlesSkill
- timecodeSkill
- video-transformationSkill
- vision-analysisSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Start here when choosing a mediaskills skill.
- Very specific: line 71
If you can run install-media-tools locate-skill.sh --skill <name>, use data.skill_directory from its JSON.
- Distinctive: line 77
Treat these two failures differently.
- Very specific: line 79
If uv, ffmpeg, ffprobe, or another required binary reports No such file or directory or command not found: it is missing or not on PATH.
- Very specific: line 80
Only request sandbox permission escalation when the error is an explicit denial (Operation not permitted, Permission denied).
- Very specific: line 86
Read the target skill's Do not use for and Acceptance checks sections in SKILL.md
- Distinctive: line 90
After every skill step — and again before presenting results to the user — pass these gates.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent routing guide
Start here when choosing a mediaskills skill. Install with:
npx skills add timelapsetech/mediaskills@v0.1.5 --skill <name>Machine-readable catalog: skills/index.json. Regenerate with python scripts/list_ops.py --write.
Decision tree
Need metadata only (no file changes)?
└─ inspect
Need to change video (cut, transcode, resize, mux, GIF, frame grab)?
└─ video-transformation
Need audio-only edits?
└─ audio (mux back to video → video-transformation replace_audio.py)
Need SMPTE timecode math (DF/NDF, fps conversion)?
└─ timecode
Need captions from speech?
└─ speech-captions → captions-compliance / subtitles
Need subtitle file ops (SRT/VTT shift, burn-in)?
└─ subtitles
Need broadcast caption compliance (SCC, SMPTE-TT, validation)?
└─ captions-compliance
Need shot boundaries or midpoint frames?
└─ shots
Need program segmentation (blacks, silence, acts)?
└─ program-master
Need exhaustive frame-accurate burned-in dialogue / forced narrative?
└─ forced-narrative-exact
Need on-screen text / vision analysis workflow?
└─ vision-analysis (agent analyzes frames; scripts merge JSON)
Need to download from URL?
└─ download
Missing ffmpeg / tools?
└─ install-media-tools (doctor.sh first)Running skill scripts
Skills may live under a git checkout (skills/<name>/), $HOME/.agents/skills/<name>/, $HOME/.cursor/skills/<name>/, or a project .agents/skills/<name>/. Always invoke scripts by a real absolute path to the directory that contains that skill's SKILL.md. Do not cd into the skill folder (media --input paths are usually workspace-relative) and do not run scripts/foo.py against the current working directory.
<skill_directory> in recipes is a placeholder. Never send that token to the shell (uv run <skill_directory>/scripts/transcribe.py will fail). Expand it first.
# After SKILL_DIR is a real path, e.g. /home/me/.agents/skills/speech-captions
uv run "$SKILL_DIR/scripts/transcribe.py" --input "<workspace-or-absolute-media>"
bash "$INSTALL_MEDIA_TOOLS_DIR/scripts/doctor.sh"Resolve SKILL_DIR in this order — search yourself; do not ask the user; do not invent a fallback pipeline:
- Path reported when this
SKILL.mdwas loaded (strip/SKILL.md). - Sibling of a skill you already ran: if
.../skills/audio/scripts/extract.pyworked, then speech-captions is.../skills/speech-captions. - Probe standard locations (
$HOME/.agents/skills/<name>,$HOME/.cursor/skills/<name>,$PWD/skills/<name>, …) untilSKILL.mdand the target script exist. - If you can run
install-media-toolslocate-skill.sh --skill <name>, usedata.skill_directoryfrom its JSON.
Companion files (profiles/*.json, references) need the same absolute prefix.
Missing binaries vs permissions
Treat these two failures differently. Escalating sandbox permissions does not install tools.
- If
uv,ffmpeg,ffprobe, or another required binary reportsNo such file or directoryorcommand not found: it is missing or not on PATH. Runcommand -v <tool>. If it does not resolve, useinstall-media-toolsdoctor/install (or tell the user to install/re-link) — do not retry with wider permissions. - Only request sandbox permission escalation when the error is an explicit denial (
Operation not permitted,Permission denied).
Always do first
bash <install-media-tools_skill_directory>/scripts/doctor.sh— confirm binariesinspectprobe/describe — confirm duration, codecs, streams before destructive ops- Read the target skill's Do not use for and Acceptance checks sections in
SKILL.md
Always verify before deliver
After every skill step — and again before presenting results to the user — pass these gates. Do not claim complete, compliant, or exact output until they pass.
- Contract — exit code
0, stdout JSON hasok: true, and every path inoutput_pathsexists and is non-empty. - Probe transforms — for media outputs, re-run
inspectdescribe/compareand assert duration, codec, resolution, and stream presence match the request. - Skill gate — when the skill ships
validate_*,doctor, or QC artifacts, run them and require fail-closed success (passed: true,publication_ready: true, or zero blocking errors). See each skill's Acceptance checks. - Spot-check — sample content appropriate to the skill (first/last cues, PDF pages, midpoint frames, report row coverage). Structural JSON success is not enough for OCR, ASR, or segment labeling.
- On failure — fix or escalate; never present partial or unvalidated bundles as delivery.
Optional helper for path/duration gates (mediaskills git checkout): python <mediaskills_repo>/scripts/verify_output.py --from-json <envelope.json> … (see script --help).
Chaining outputs
Scripts return JSON on stdout. Pass paths from data.output_path or output_paths[] to the next step only after the verify checklist for that step passes.
| From | Field | To |
| any transform | output_paths[0] | next --input (after re-inspect) |
| timecode | data.seconds_realtime | video-transformation --start / --end |
| speech-captions | SRT path | captions-compliance validate/format |
| vision-analysis | manifest_path | agent frame analysis → merge_analysis.py → validate_analysis.py (required before reports) |
| program-master | labeled manifest / report bundle | require QC passed: true → forced-narrative-exact pass scoping |
| forced-narrative-exact | refined JSON / report paths | validate_report → deliver md/json/csv/srt |
Op ID namespaces
| Prefix | Skill |
inspect.* | inspect |
audio.* | audio |
video.* | video-transformation |
image.* | image |
timecode.* | timecode |
speech_captions.* | speech-captions |
caption.* | captions-compliance |
subtitles.* | subtitles |
download.* | download |
shots.* | shots |
program_master.* | program-master |
forced_narrative_exact.* | forced-narrative-exact |
vision.* | vision-analysis |
install-media-tools.* | install-media-tools (bash) |
Full list: python scripts/list_ops.py or docs/OP_NAMESPACES.md.
Workflows
End-to-end recipes: docs/workflows/.
Contract
JSON shape, exit codes, env vars: docs/SCRIPT_CONTRACT.md.
Common errors: docs/ERRORS.md.
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
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.

