Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add davidtoby/agent-skills --skill chinese-video-transcribe-pdfgit clone --depth 1 https://github.com/davidtoby/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf)<a href="https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/chinese-video-transcribe-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01465 |
| Opus 5.5 | $0.00024 | $0.00586 |
| Sonnet 5.5 | $0.00012 | $0.00293 |
| Haiku 4.5 | $0.00006 | $0.00146 |
Grade A, and why
chinese-video-transcribe-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chinese Video Transcription to PDF
将中文视频转写为结构化文本并生成专业中文PDF报告。
核心工作流
1. yt-dlp 下载视频
2. ffmpeg 抽出音频(16kHz PCM) ← 关键步骤,避免视频解码问题
3. faster-whisper tiny/medium 模型转写(支持中文,无需字幕)
4. 整理 Markdown 报告内容
5. render_cn_report_pdf.py 生成 PDF
Step 1:下载视频
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
-o "~/Downloads/%(title)s.%(ext)s" "VIDEO_URL"
如下载中断,用 --force-overwrites 或直接重新运行(yt-dlp 自动续传)。
Step 2:抽出音频(关键)
视频编码(AV1等)可能导致 Whisper 卡在43% 解码位置。必须先抽出音频:
ffmpeg -i "INPUT.mp4" -vn -acodec pcm_s16le -ar 16000 -ac 1 /tmp/audio.wav -y
参数说明:
-vn不要视频-acodec pcm_s16le线性PCM,避免压缩编码问题-ar 16000Whisper 推荐的采样率-ac 1单声道
Step 3:转写(faster-whisper)
不要用 openai-whisper CLI(输出 pipe 到 tail 时无法观察进度,且某些视频编码会卡住)。
用 Python API + faster-whisper:
from faster_whisper import WhisperModel
model = WhisperModel("tiny", device="cpu", compute_type="int8")
segments, info = model.transcribe(
"/tmp/audio.wav",
language="zh",
vad_filter=True,
vad_parameters=dict(min_silence_duration_ms=800)
)
results = []
for seg in segments:
results.append({
"start": round(seg.start, 2),
"end": round(seg.end, 2),
"text": seg.text.strip()
})
# 保存为 JSON
import json
with open("/tmp/transcript.json", "w", encoding="utf-8") as f:
json.dump({"segments": results, "language": info.language}, f, ensure_ascii=False, indent=2)
模型选择:
tiny— 最快(3分钟左右转写40分钟),中文识别准确率已很好medium— 更准但更慢,适合关键内容
Step 4:生成 Markdown 报告
根据转写内容整理 Markdown 结构,使用中文标题和自然段落。
Step 5:生成 PDF
重要决策点: ReportLab 渲染器的输出质量偏基础(markdown 直转,无 CSS 精排,层次感弱)。当用户需要专业/咨询风格报告时(如对方明确说"排版太差""咨询风格"),跳过 ReportLab,使用 HTML+CSS+Chrome 导出。
路径 A:基础版 — ReportLab(快速,排版一般)
python3 $SKILL_DIR/../../../openclaw-imports/chinese-pdf-report/scripts/render_cn_report_pdf.py \
--input /tmp/report.md \
--output ~/Downloads/输出报告.pdf
字体自动注册:SongtiSC(正文)、HeitiSC(标题)、KaitiSC(引用)。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 141 lines · 61 tokens per session scan A 71fa6913cd45
chinese-video-transcribe-pdf is a skill published in the GitHub repository davidtoby/agent-skills (11 stars, last pushed 2mo ago), licensed MIT. It adds 61 tokens to every session and 1,465 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
morph-ppt
Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style…
officecli-academic-paper
Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…
officecli-financial-model
Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity / scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value'…
officecli-pptx
Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with…
officecli
Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.
morph-ppt-3d
3D Morph PPT — extends morph-ppt with GLB model insertion, cinematographic camera, model-content layout, and enriched visual design system.