JimLiu/baocut / skills/baocut
baocut
Flagged用 BaoCut 处理视频与音频:转录、字幕、翻译、配音、剪口播、切短视频、分章、总结写稿、从链接下载、压缩转码、导出成片,或从零做一条成片。有媒体文件、视频链接、字幕文件或 BaoCut 视频时用;只翻译纯文本、与视频无关的写作或作图、别的剪辑器与 FFmpeg 的用法、BaoCut 源码开发不用。
references/craft/docs/references/uploads.md
View on GitHub<!-- 由 tools/sync-agent-skill.ts 从 skills/baocut/built-in-skills/docs/references/uploads.md 生成,不要手改:改源文件后运行 npm run build:agent-skill -->
# 上传:图片与文件
字节不走 改文档(只在 BaoCut 的会话里有) 之类的工具:工作目录里的文件 → 上传文档素材(只在 BaoCut 的会话里有) → 文档里一个记录它的 blob → 正文用 `blob/<id>` 引用它。
```
上传文档素材(只在 BaoCut 的会话里有)( doc = "q3-launch-plan", path = "assets/launch-timeline.png" )
→ {blob:"blob/7c2e91d04ab3", id:"7c2e91d04ab3", bytes:48213, contentType:"image/png", next:"…"}
改文档(只在 BaoCut 的会话里有)( doc = "q3-launch-plan", ref = {"object":"node","id":"be1476b2-62c1"}, engine = "prose", container = C, payload = {"ops":[
{"op":"insert","target":{"kind":"blocks","ids":["mq2x81a0kfd.40"]},"side":"after",
"source":{"as":"markdown","from":{"kind":"inline","content":""}}} ]} )
```
- `path` = 工作目录里的文件(相对路径,不含 `..`),最大 20 MB;图片(PNG、JPEG、GIF、WebP、SVG)在正文里显示,其他文件以链接 `[name](blob/<id>)` 引用。
- 图片放在讨论它的地方,写上说明它的 alt 文字;文件名说明不了什么,先看一眼内容。
- blob 不可改:新内容 = 新上传 → 新 blob → 改正文里的引用。
- 用户给的 CSV 或表格数据:这里没有图表,把要的行列写成正文里的 pipe 表格(太长就汇总,或者放进单独的「数据」标签页);原文件需要留存时再上传、链接过去。
- 不支持的文件类型或过大 → 拒绝里说明;照它说的做,或告诉用户。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |