quick-merge-and-export
Skill6 starsChanged 19 days agoMITView on GitHub
The shortest path from media URLs to a rendered file - merge or concatenate several videos into one with the montage template, sample frames from a scene into a contact sheet, and export any valid scene to a file. Use when asked to merge, join or concatenate clips, to preview a scene as frames, or to render a scene, and no other skill covers the job.
In this repository67 other files it gives its agents.
- ai-presenterSkill
- animate-designSkill
- app-ui-animationSkill
- asset-auditSkill
- assetsSkill
- background-musicSkill
- caption-decorationsSkill
- character-riggingSkill
- custom-transitionsSkill
- design-layer-importSkill
- drama-series-writingSkill
- edit-footageSkill
- edit-on-your-computerSkill
- edit-pipelineSkill
- face-hidingSkill
- figma-storyboard-animationSkill
- film-animaticSkill
- film-cast-designSkill
- film-cuttingSkill
- film-finishingSkill
- film-shot-generationSkill
- film-story-writingSkill
- footage-analysisSkill
- footage-reframingSkill
- generate-mediaSkill
- get-startedSkill
- large-scene-assemblySkill
- linked-element-motionSkill
- make-characterSkill
- make-comicsSkill
- make-screen-videosSkill
- make-short-dramaSkill
- motion-design-craftSkill
- motion-intentSkill
- motion-pattern-librarySkill
- motion-reviewSkill
- motion-scene-continuitySkill
- motion-tracking-from-videoSkill
- movie-producerSkill
- open-picsart-appSkill
- photo-slideshowSkill
- picsart-add-mediaSkill
- picsart-video-rulesSkill
- quality-reviewSkill
- realistic-color-gradeSkill
- recastSkill
- recreate-videoSkill
- reel-structureSkill
- reference-fragment-matchingSkill
- resting-frame-rulesSkill
- retention-hooksSkill
- scene-3d-authoringSkill
- scene-animation-referenceSkill
- scene-building-basicsSkill
- scene-template-remixSkill
- screen-recording-analysisSkill
- screen-recording-layoutsSkill
- screen-recording-zoomSkill
- screen-ui-redesignSkill
- sd25-peSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are 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.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Probe each clip: Call picsart_media_probe once per clip URL for its width, height and duration.
- Very specific: line 27
Build the parameters: Write the clips as JSON, one object per clip with uri, width, height, duration from the probe, and optionally in and …
- Very specific: line 61
Bootstrap the scene: Call picsart_scene_apply_template with those arguments, unchanged.
- Very specific: line 64
Validate: Call picsart_scene_validate on the returned scene.
- Very specific: line 65
Render: Call picsart_scene_export with the scene and mediaType: "mp4".
- Very specific: line 78
Call picsart_scene_validate on it.
- Very specific: line 79
Call picsart_scene_contact_sheet with either times (exact timestamps) or frames (that many evenly spaced), never both, and optionally …
- Very specific: line 89
Call picsart_scene_export with mediaType (mp4, png and the others it lists), and optionally resolution, fps, duration and startTime.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Scene quickstart
Three short jobs, each a fixed chain of tools. Every tool takes media by URL. None reads a local
path, a file:// URI or inlined file bytes, and such a source is refused before anything renders.
For a file the user has only on their device, call picsart_drive_upload_ask: it opens a
drag-and-drop upload. The call itself returns no URL; the file's URL arrives on the user's next
turn, as widget context (or in their message), so read it there before going on. Pass detected_files when you can see the file
name, and known_urls to offer URLs already made in this conversation.
Merge several videos into one
The montage template plays its clips one after another and renders one file.
- Probe each clip. Call
picsart_media_probeonce per clip URL for its width, height and duration. Skip a clip whose exact size and duration an earlier tool result already gave. A missingdurationSecondsmeans the duration is unknown, not zero: follow the probe's own note on that field. Build the parameters. Write the clips as JSON, one object per clip with
uri,width,height,durationfrom the probe, and optionallyinandout(the trim, in seconds),fit(cover,containorfill) andalign(one of nine positions such astop leftorcenter, the default). Then runscripts/montage_params.py:python3 scripts/montage_params.py --transition crossfade --transition-duration 0.4 clips.jsonIt prints the complete
picsart_scene_apply_templatearguments:uri: "scene://montage",mode: "bootstrap", andparameterswithtransition,transitionDurationandclips. Omit--widthand--height: the canvas matches the largest clip and the frame rate follows the clips. Pass both only to deliberately change the aspect or size. For a smaller output file, usepicsart_scene_export'sresolution. Pass--transition ""for a hard cut. Usefitandalignwhen a clip's shape differs from the output's, as with portrait and landscape clips in one montage.Without a shell, write the script's output yourself. The template's clips do not take the input shape above. Each clip becomes
duration(outminusin) plus acontentobject that carries the probed asset, the trim,fitandalign. A hard cut istransition: ""withtransitionDuration: 0. Here clip 1 is trimmed to 0–4 s of a 12 s clip, then a hard cut to all 8 s of clip 2:{"uri": "scene://montage", "mode": "bootstrap", "parameters": { "transition": "", "transitionDuration": 0, "clips": [ {"duration": 4, "content": {"kind": "media", "asset": {"type": "video", "uri": "https://…/a.mp4", "width": 1080, "height": 1920, "duration": 12}, "trim": {"in": 0, "out": 4}, "fit": "cover", "align": "center"}}, {"duration": 8, "content": {"kind": "media", "asset": {"type": "video", "uri": "https://…/b.mp4", "width": 1080, "height": 1920, "duration": 8}, "trim": {"in": 0, "out": 8}, "fit": "cover", "align": "center"}}]}}- Bootstrap the scene. Call
picsart_scene_apply_templatewith those arguments, unchanged. These arguments are complete, so this job needs no schema or template lookup. The composition's duration is the sum of the clip durations: never set it by hand. - Validate. Call
picsart_scene_validateon the returnedscene. - Render. Call
picsart_scene_exportwith the scene andmediaType: "mp4". It replies with a job receipt: follow it as picsart-video-rules says until it reportsurls, one merged file.
The montage is sequential: each clip starts where the one before it ends. For layers that play at
the same time, as in picture-in-picture, write overlapping layers with
picsart_scene_patch instead.
The rendered length is not snapped to the frame grid, so a montage of exact decimal trims can land a frame or two short of the target. That is expected, not an error.
Sample frames from a scene
- Have a valid scene: one a template returned, or one written with
picsart_scene_patch. - Call
picsart_scene_validateon it. - Call
picsart_scene_contact_sheetwith eithertimes(exact timestamps) orframes(that many evenly spaced), never both, and optionallyresolution. It returnsframes, each atimeand aurl: low-resolution previews, not the deliverable.
Render a scene to a file
- Have a valid scene, as above. A scene this skill's merge job built needs no other check.
Otherwise confirm its shape with
picsart_scene_capabilities, sections["schemaSummary"]then["schema:<Name>"], or["template:<uri>"]for a template. - Call
picsart_scene_validateon it. - Call
picsart_scene_exportwithmediaType(mp4,pngand the others it lists), and optionallyresolution,fps,durationandstartTime. PassfileName, a short name from the scene's subject, so a file saved to Drive gets a real name. It replies with a job receipt by default; follow it as picsart-video-rules says until it reportsurls.
Export renders on a server and needs a signed-in user. Follow picsart-video-rules's rule on cost before you call it.
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.

