agentleFS
Gemi-TeamGemi-Team/video-to-skill/CLAUDE.md

video-to-skill

CLAUDE.md3 starsChanged 7 days agoMITView on GitHub

This repo turns a video (YouTube URL or file) into a reusable Claude skill. The user has nothing to prepare or run: you install, extract, orchestrate and assemble. Never ask them to run a command. Talk to the user in their language. Write the generated skill in the language of their request unless they ask otherwise. Triggers: a video URL or file, "turn this video into a skill", "learn from this video", "read the repo and do it", /video-to-skill <URL>.

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    If "ok": false: say so in one sentence, then run PY scripts/bootstrap.py --json --no-skill (2 to 10 min: give it a 15-minute timeout or run …

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.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.

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

video-to-skill — instructions for Claude

This repo turns a video (YouTube URL or file) into a reusable Claude skill. The user has nothing to prepare or run: you install, extract, orchestrate and assemble. Never ask them to run a command. Talk to the user in their language. Write the generated skill in the language of their request unless they ask otherwise.

When the user gives a video

Triggers: a video URL or file, "turn this video into a skill", "learn from this video", "read the repo and do it", /video-to-skill <URL>.

  1. Python — PY = python or py -3 on Windows (never python3, often a fake Microsoft Store shortcut there); python3 on macOS/Linux.
  2. Prerequisites — PY scripts/bootstrap.py --check --json (a few seconds). If "ok": false: say so in one sentence, then run PY scripts/bootstrap.py --json --no-skill (2 to 10 min: give it a 15-minute timeout or run it in the background, do not interrupt it). Only if that fails, follow LLM_SETUP.md.
  3. Method — follow SKILL.md with SKILL_DIR = the root of this repo. Always run the scripts with a relative path from the root (PY scripts/extract.py …): those are the commands the repo's permission rules allow. Working folder: v2s_work/<short-id>/ (e.g. the YouTube id).
  4. Video longer than 45 min — long-video mode of SKILL.md:
    • one general-purpose sub-agent per part, all launched in parallel, with the instruction: "Read and carry out <absolute path>/part_NN/AGENT_PROMPT.md. Write the notes in <the user's language>. Only write the notes file it names. Reply in 3 lines.";
    • then PY scripts/assemble.py v2s_work/<id> --check: a failing part (incomplete visual log, missing notes) → relaunch its sub-agent with the reason;
    • then plan → assemble.py --plan … --out skills_out/<name> → merges → the skill's SKILL.md.
  5. Delivery — automatic, no question — the final skill goes to skills_out/<name>/, then install it with PY scripts/install_skill.py skills_out/<name>: it validates the skill, installs it in ~/.claude/skills/<name>/ and backs up any previous version. Don't ask for confirmation (the user chose automatic install). If validation fails, fix the skill and run it again. Only install elsewhere (--project) or skip installing if the user asked for it. The only question you may ask during the whole run is about cookies, if YouTube requires them.
  6. Final message, short: skill name, where it is installed (and that deleting that folder removes it), number of methods, coverage (parts, contact sheets reviewed, densified passages), main uncertainties.

Other requests

  • Just download: PY scripts/download.py <URL> [--out downloads] (JSON on stdout; on failure, read hint).
  • Install / repair the environment: LLM_SETUP.md.
  • Change the tool itself: scripts live in scripts/, sub-agent templates in references/. After a change, run PY scripts/bootstrap.py --no-skill --skip-model (its self-test covers extraction, splitting and validation).

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.