docvideoer: Instructions file for Claude Code

CLAUDE.md

docvideoer CLAUDE.md is an instructions file for Claude Code from coding-ax/docvideoer. It costs 1,560 tokens per session, scanned A, original, MIT.

Instructions for docvideoer, an AI workflow that turns a web page or pasted document into a narrated explainer video. It creates a storyboard, spoken audio, and a Remotion video project.

In plain words
What is it for?
Use it to make videos from article URLs or text documents, with scenes, narration, visuals, timing, subtitles, and rendered output.
Why use it?
It organizes the many steps between source text and a finished video, including extracting content, planning scenes, generating speech, and rendering the result.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

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.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 docvideoer CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coding-ax/docvideoer/claude-md"><img src="https://agentmods.dev/badge/instructions/coding-ax/docvideoer/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 The same file — it is already loaded in full.
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.01560 $0.01560
Opus 5.5 $0.00624 $0.00624
Sonnet 5.5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

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

Security

Grade A, and why

docvideoer CLAUDE.md 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.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — docvideoer

docvideoer 是一个 AI 驱动的文档转视频工具,将文档内容(URL 或文本)自动转换为讲解视频。它编排了文档抓取、内容分析、分镜生成、TTS 语音合成、Remotion 视频渲染的完整流水线。

触发方式

当用户使用 /docvideo 命令或在对话中说「把这个文档转成视频」「根据这篇文章生成视频」等意图时激活本 skill。

外部 Skill 依赖

Remotion 相关实现依赖官方 remotion-best-practices skill。处理 Remotion 项目、组件、时间线、动画、音频同步、字幕或渲染问题时,优先使用该 skill;如果未安装,提示用户运行:

npx skills add https://github.com/remotion-dev/skills --skill remotion-best-practices

工作目录

所有视频项目在用户当前工作目录的 docvideo-output/ 下创建。每个视频项目有独立的子目录,包含脚本、素材、音频和最终的 Remotion 项目。

核心流水线(6 步)

第 1 步:获取文档内容

  • 如果用户提供 URL,使用 scripts/fetch-doc.mjs 抓取网页内容(自动提取正文、翻译处理)
  • 如果用户直接粘贴文本,直接使用
  • 将内容保存到 docvideo-output/<project-name>/source.md

第 2 步:内容分析与分镜生成

  • 分析文档核心内容,提取关键要点
  • 生成结构化的分镜脚本(storyboard),包含:
    • 场景编号、场景类型(title/content/bullet/image/end)
    • 每段的讲解文案(narration script)
    • 建议的视觉呈现方式(标题、列表、图示等)
    • 预估时长(按中文 ~4 字/秒 计算)
  • 将分镜保存为 docvideo-output/<project-name>/storyboard.json

分镜 JSON 结构:

{
  "title": "视频标题",
  "description": "视频简介(用于社交媒体)",
  "totalDuration": 120,
  "scenes": [
    {
      "id": "scene-1",
      "type": "title",
      "title": "场景标题",
      "narration": "讲解文案……",
      "duration": 8,
      "visuals": {
        "type": "title",
        "title": "大标题",
        "subtitle": "副标题"
      }
    }
  ]
}

第 3 步:TTS 语音合成

  • 使用 scripts/tts.mjs 合成语音(免费方案,无需 API 凭证)
  • 也可以使用统一 CLI:npm run docvideoer -- tts --storyboard <storyboard.json> --audio-dir <audio-dir>
  • 默认使用 Edge TTS(微软在线 TTS,音质好,自动生成字幕)
    • 需要安装:pip3 install edge-tts
  • 备用 macOS say(系统自带,离线可用)
  • 为每个场景分别合成语音(支持并行)
  • 获取每段音频的实际时长,更新分镜时间线
  • 音频保存到 docvideo-output/<project-name>/audio/

第 4 步:Remotion 视频项目搭建

  • 在 docvideo-output/<project-name>/video/ 下创建 Remotion 项目
  • 使用 templates/doc-video/ 作为基础模板
  • 可使用:npm run docvideoer -- setup --storyboard <storyboard.json> --audio-dir <audio-dir> --video-dir <video-dir>
  • 根据分镜信息生成对应的场景组件
  • 实现音频和视觉的精确同步

第 5 步:渲染视频

  • 使用 npm run docvideoer -- render --video-dir <video-dir> --out <output.mp4> --install 或 npx remotion render 命令渲染最终 MP4
  • 输出到 docvideo-output/<project-name>/output.mp4

Read the full file on GitHub · 144 lines

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 · 144 lines · 1,560 tokens per session scan A e8f46cd3f443

Subscribe to this mod's changes

docvideoer CLAUDE.md is an instructions file published in the GitHub repository coding-ax/docvideoer (7 stars, last pushed 6mo ago), licensed MIT. It adds 1,560 tokens to every session, about $0.0062 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

docvideoer CLAUDE.md compared with instructions from other repositories

docvideoer CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docvideoer CLAUDE.mdcoding-ax/docvideoerInstructions file76mo agoMITA1,560Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot