create-video
Create a new Brollss project from a video or audio file (a file on the user's device, a direct link, or on a local server a path on this machine), wait for the transcription, then hand over to the edit-video skill.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- create-video
- description
- Create a new Brollss project from a video or audio file (a file on the user's device, a direct link, or on a local server a path on this machine), wait for the transcription, then hand over to the edit-video skill.
02 资源文件 1
- 参考文档agents/openai.yaml189 B
03 SKILL.md 正文
Create video
When to use
- The user gives you a video or audio file, or a link to one, and wants it edited in Brollss.
- The user wants a new Brollss project. To edit a project that already exists ("make a full edit of <video>"), use the edit-video skill instead: it finds the project with
list_projectsand edits a fresh copy made byclone_project.
Instructions
- Ask what to import if the user has not said: a file on their device, or a direct link to a media file. A page that plays a video (a YouTube page, a share page) is not a media file. One file per project: import the main recording, then edit.
- Call
import_mediawith one source:- Direct upload.
add_mediawith one entry, keyed by the file name:{"talk.mp4": {"content_type": "video/mp4", "file_size": 734003200}}.content_typeis the file's MIME type,file_sizeits exact size in bytes. See "Uploading a local file" below. - Link.
url, a direct http(s) link to the media file, passed as the user gave it. - Path on this machine.
path, an absolute path to the file or to a folder that holds it. Only the local Brollss server (stdio) reads it; the hosted server refuses it.
- Direct upload.
import_mediareturns at once withjob_id,project_idandproject_url. Showproject_urlto the user. If you asked for a direct upload, finish the upload before you wait.- Wait for the import: call
wait_for_jobwith thejob_idandwait_seconds: 20, and call it again until it answersdone: true. After each call, tell the userprogress.labelandprogress.percent. An answer withtimed_out: truemeans the import is still running: callwait_for_jobagain on the samejob_id. Never import the file a second time because a wait timed out; that makes a second project. - When the job is ready, read the project with
get_project_stateonproject_idand tell the user what was created (length, format, transcript size). - If the user wants an edit, follow the edit-video skill on
project_id. A project you just imported is the user's own copy: edit it directly, no clone needed.
If the job fails, give the user its error as written. A refusal for the number of projects or the file size is the same limit the Brollss app applies: say which one and stop.
Uploading a local file
- Call
import_mediawithadd_mediaas above. - The response includes
upload_urls, keyed by the same file name, withupload_url,asset_idandheaders.PUTthe raw bytes of the file toupload_urlwith those headers (Content-Type: application/octet-stream): no form, no encoding. The size you send must equalfile_size. The address works once, for this job only. - If the
PUTfails, callreport_upload_statuswith thejob_id,media_id(the file name you used inadd_media) andstatus: "failed", so the import stops cleanly. - Then recover: call
import_mediaagain for a new address if the failure looks temporary, or ask the user for a direct link to the file. Never pass a container or sandbox path (such as/mnt/data/...) toimport_media: the hosted server cannot reach it. If nothing works from this environment, tell the user the file cannot be uploaded from here and what they can do instead (share a direct link, or import it in the Brollss app).
04 同仓库更多 Skills
demo
Fixture skill for validator tests.
review-edit
Review a Brollss edit without changing it. Run check_edit and check_audio, look at the final picture where it matters, and report what to fix with montage times.
edit-video
Make a full, publishable edit of a Brollss project with the Brollss tools. Cuts, a hook, drawn scenes, zooms, captions, music and sound effects, then check_edit until it is clean.
captions-and-audio
Add or change the captions, the background music and the sound effects of a Brollss project, then measure the mix with check_audio.
add-scenes
Draw animated scenes (B-rolls) for a Brollss project yourself, measure them on the real video and place them, or redraw, retime and re-layout the scenes already there.