docvideoer: Command for Claude Code

.claude/commands/docvideo.md

docvideo is a command for Claude Code from coding-ax/docvideoer. It costs 17 tokens per session (388 once invoked), scanned A, original, MIT.

A command for turning a public web page or pasted text into a narrated video. It uses Remotion, a tool for building videos with code, to create and render the result.

In plain words
What is it for?
Use it with a document URL or text when you need a Chinese explainer video. You can review the storyboard and choose voice or background-music preferences before rendering.
Why use it?
It groups web-page extraction, key-point and scene planning, text-to-speech, video creation, and MP4 rendering into one workflow.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is coding-ax/docvideoer's own configuration. It tells Claude Code how to work on docvideoer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything docvideoer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to coding-ax/docvideoer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/coding-ax/docvideoer/main/.claude/commands/docvideo.md
Clone the repo
git clone --depth 1 https://github.com/coding-ax/docvideoer

Made for: Claude Code.

Wrote 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.

agentmods badge for docvideo

README.md
[![agentmods](https://agentmods.dev/badge/commands/coding-ax/docvideoer/docvideo/github.svg)](https://agentmods.dev/commands/coding-ax/docvideoer/docvideo)
Your own site
<a href="https://agentmods.dev/commands/coding-ax/docvideoer/docvideo"><img src="https://agentmods.dev/badge/commands/coding-ax/docvideoer/docvideo/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.

agentmods 80×15 button for docvideo

Your own site · 80×15
<a href="https://agentmods.dev/commands/coding-ax/docvideoer/docvideo"><img src="https://agentmods.dev/badge/commands/coding-ax/docvideoer/docvideo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00388
Opus 5.5 $0.00007 $0.00155
Sonnet 5.5 $0.00003 $0.00078
Haiku 4.5 $0.00002 $0.00039

Measured 2mo ago against content hash 3ae0cb5cf051, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docvideo 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 2mo 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.

.claude/commands/docvideo.md · 50 lines

What it actually says

/docvideo — 文档转视频

使用方法

/docvideo <文档URL或文本内容>

参数

  • <url> — 文档的 URL 地址(支持任何公开网页)
  • <text> — 直接粘贴的文档文本内容

示例

/docvideo https://example.com/article
/docvideo 这是一段关于 AI 技术的介绍文章……

执行流程

  1. 获取内容:如果提供 URL,抓取网页正文;如果提供文本,直接使用
  2. 分析分镜:提取要点,生成分镜脚本(展示给用户确认)
  3. 语音合成:使用 scripts/tts.mjs 为每段文案生成语音
  4. 视频制作:搭建 Remotion 项目,生成场景组件
  5. 渲染输出:渲染 MP4 视频文件
  6. 结果展示:显示视频路径、描述文案、渲染统计

用户需要确认的事项

  • 分镜脚本(可以修改场景顺序、文案、时长等)
  • 视频风格偏好(音色、是否需要背景音乐等)

首次使用 TTS

默认使用 Edge TTS,推荐先安装:

pip3 install edge-tts

也可以复制 .env.example 为 .env,按需调整 TTS_BACKEND、TTS_VOICE、TTS_RATE。如果 Edge TTS 不可用,macOS 可回退到系统 say。

Changes

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.

  1. 2mo ago First seen · 50 lines · 17 tokens per session scan A 3ae0cb5cf051

Subscribe to this mod's changes

docvideo is a command published in the GitHub repository coding-ax/docvideoer (7 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 388 once invoked, about $0.0001 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.

Related

docvideo compared with commands from other repositories

docvideo next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docvideocoding-ax/docvideoerCommand76mo agoMITA17Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code