live-tutorial
它能做什么
这个技能帮助 AI 智能体录制一段应用的简短操作演示,并将其制作成教程视频。适合希望获得分步视频、又不想自己录屏的人。
适用场景
- ✓当你希望获得一段展示如何在应用中完成某项任务的教程视频时。
- ✓当你需要为演示的每个步骤添加字幕和注释时。
- ✓当团队成员需要一段关于你应用中某个工作流程的简短视频指南时。
技能链接
https://github.com/leon-ai/leon/blob/develop/skills/agent/live-tutorial/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我录制一段简短的教程视频,展示如何在我们的应用中创建新发票,并为每个步骤添加字幕。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在你的应用中逐步完成工作流程,并在每个步骤截图。然后它会用这些截图制作带注释的 MP4 视频,并检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Live Tutorial
Demonstrate the requested workflow, then return a verified MP4 made from its real screenshots.
Write captions and annotation text in the language of the user's tutorial request, keeping app control names as displayed.
The request already authorizes completing and rendering the tutorial. Do not ask whether to continue or offer screenshots/text instead of the requested video merely because execution paused. Resume with the same recording, captures, and manifest; ask only for genuinely missing information or authorization.
Use PNG paths returned in each observation's artifacts array. The recording output_dir is the destination for the video, not the location of those screenshots; do not search it for frames. The renderer is ready to run with the manifest below: no source inspection, image-processing code, or dependency setup is needed.
Use the live tool results for recording directories, screenshot paths, and current target tokens. After a pause, read a specific saved artifact only if the checkpoint omits a required value; do not scan directories or reread evidence already available. Each new window observation invalidates earlier tokens, so make one observation with any needed query and screenshot, then act immediately from that same result. Use the shell tool only for the final renderer command.
- Select the target application and one short route from its current view to the requested result. Demonstrate only the requested workflow, not every related option. Do not reset the application or visit unrelated settings merely to create a starting frame. If already at the result, show only the navigation needed to teach the requested step; do not claim a pre-existing state was caused by an action you did not perform.
- Start
computer_use.cua.start_recordingwithrecord_video: false; retainoutput_dir. - Use the shortest supported route: a known keyboard shortcut, an accessibility-backed action, or
computer_use.cua.invoke_menufor native menus; never shell automation. Capture the starting state before acting. During recording, supported input actions automatically return a fresh screenshot and element queries include screenshots. Reuse the returned observation for verification and the next step instead of taking another identical screenshot. Observe again only if the result lacks needed evidence. Captions must describe what you actually did, including any shortcut; retain the meaningful intermediate states. - Always stop recording. Select 2–6 distinct captures from the successful route, normally one per action plus the result; omit setup, failed attempts, retries, and polling. Keep valid captures across retries rather than re-recording the workflow. The final result must agree with the demonstrated actions. Use a short instruction for each action and a confirmation caption for the result.
- Write the manifest below with the file tool, then run the bundled renderer through the shell tool. Copy the returned artifact paths verbatim, including profile and session IDs; do not reconstruct them. Satellite results provide server-local copies for rendering. Do not replace this with a raw screen recording or a custom automation/rendering script. Do not inspect or rewrite the renderer unless it reports an error.
- Check the renderer's
resolvedTargetsagainst the intended controls and the source observations. Correct any mismatch before returningfileMarkerverbatim. The returnedpreviewPathsidentify the rendered step frames. If unfinished, explain the obstacle.
Render
"$NODE" "$LEON_CODEBASE_PATH/skills/agent/live-tutorial/scripts/render-tutorial.mjs" --manifest "/exact/path/to/tutorial.json"
Leon supplies NODE and LEON_CODEBASE_PATH. Do not set a working directory or construct executable paths. No system Node, Python, or FFmpeg installation is needed.
On PowerShell, use & $env:NODE "$env:LEON_CODEBASE_PATH/skills/agent/live-tutorial/scripts/render-tutorial.mjs" --manifest "/exact/path/to/tutorial.json".
Manifest:
{
"outputDir": "<output_dir from start_recording>",
"steps": [
{"screenshotPath": "<pre-action PNG path>", "targetToken": "<element_token from this exact capture>", "instruction": "Open the relevant setting."},
{"screenshotPath": "<result PNG path>", "instruction": "Read the displayed value."}
]
}
Use exact current-session paths and captions of at most 240 characters. Prefer targetToken: the renderer reads capture-bound geom
常见问题
这个技能的输出是什么?
它会生成一个经过验证的 MP4 视频,由你应用的真实截图制作而成。
智能体可以暂停并稍后继续吗?
可以。该技能可以恢复录制,并保留相同的截图和备注。
字幕使用我的语言吗?
该技能会使用你教程请求所用的语言撰写字幕,并保留屏幕上显示的应用控件名称。
详情
作者的原始描述
Create an annotated MP4 tutorial from a workflow demonstrated in the owner's actual application. Use when asked for a tutorial video, not merely to watch an action live.
repo: leon-ai/leon
热度
- GitHub 星标
- 18k
- 排名
- #10742
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …