agentleFS
minkhant1996minkhant1996/soemind-forge/skills/revise-content/SKILL.md

revise-content

Skill16 starsChanged 5 months agoMITView on GitHub

Change ONE piece of an already-generated content item without paying to regenerate everything — one scene of a video, the voiceover, the music bed, one carousel slide, a caption. Use when the user says "redo scene 2", "change the voiceover", "swap the music", "fix slide 3", "same video but different ending".

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No manifest? Reconstruct what you can from the output folder + ask the user for the missing context — and create a manifest for the …

    line 35
  2. Very specific:

    Before spending: state the piece's cost vs.

    line 56
  3. Very specific:

    Keep the old files as *-v1.* instead of overwriting — users change their minds back.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Revise Content (edit one piece, not the whole thing)

A finished video is scenes + voiceover + music + captions, each generated separately and assembled locally. So a revision should cost one piece, not the whole render. The generation manifest makes this possible — it recorded every piece's exact prompt, model, and parameters.

Reference: workflows/MANIFEST-GUIDE.md.

STEP 1: Find what was generated

node workflows/cli.cjs loadManifest '["projects/{name}/output-contents/{piece}/manifest.json"]'

Show the user the entries so they can point at the piece:

This item has 6 recorded generations:
  1. video   scene-1 "Student overwhelmed at desk…"      $3.20
  2. video   scene-2 "Opens the app, hopeful…"           $3.20
  3. video   scene-3 "Relaxed, clean schedule…"          $3.20
  4. voiceover (Kore) "Struggling to keep up?…"          $0.02
  5. music   "upbeat lo-fi bed"                          $0.04
  6. assembly (local, free)
Which one changes, and how?

No manifest? Reconstruct what you can from the output folder + ask the user for the missing context — and create a manifest for the revision so the next edit is cheap.

STEP 2: Regenerate ONLY that piece

Take the entry's recorded prompt, model, parameters, and referenceImagePath, apply the user's requested change, and re-run the same workflow command. Everything not mentioned by the user stays IDENTICAL — same character refs, same aspect ratio, same duration — so the new piece drops into place.

ChangeRegenerate withTypical cost
One scene of a videosame video command, edited prompt, same keyframe/refs~$0.40/s for that scene only
Voiceover (words or voice)generateVoiceover with edited script / new voice id~$0.01
Music bedgenerateMusicTrack with edited style~$0.04
One carousel slidegenerateSingleImage with the slide's prompt + style refs~$0.07
Caption / copy onlygenerateCaption — free-ish, no media touched~$0.001
End card / thumbnailgenerateSingleImage / finalizeImage~$0.07–0.10

Before spending: state the piece's cost vs. what a full regeneration would have cost, and checkBudget. For visual pieces, preview cheap first if the change is subjective (/preview-pick Pattern C).

Pipeline-first applies to revisions too: author the revision as a small <content-id>-rev.pipeline.json in the content folder (nodes = CLI commands, {{node.data.field}} refs) and run it with node workflows/cli.cjs runPipeline @<file> — see workflows/pipelines/README.md.

STEP 3: Re-assemble locally (free)

Assembly is ffmpeg, not AI — redoing it costs nothing:

  • Replaced a scene → re-run the concat/assembly used originally (assembleFinal / the recorded assembly step) with the new clip in place.
  • Replaced voiceover or music → mixVideoAudio again on the existing video.
  • Words changed → regenerate captions (generateCaptions) so subtitles match.
  • Then re-package (/package-content) so the publish folders hold the new cut.

Keep the old files as *-v1.* instead of overwriting — users change their minds back.

STEP 4: Record it

addManifestEntry for the regenerated piece (status the old one as superseded in notes), recordCost the actual spend, and append the revision prompt to the folder's existing prompts.txt with a one-line RESULT note (every retry too). Then report:

✅ Revised scene-2 only: $3.20 (full regen would have been $9.60+)
   New cut: output-contents/{piece}/final-v2.mp4  (v1 kept)
   Publish folders updated.

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.