codex-video-specs: Instructions file for Codex

AGENTS.md

codex-video-specs AGENTS.md is an instructions file for Codex, OpenCode from mathruffian-dot/codex-video-specs. It costs 778 tokens per session, scanned A, original, MIT.

A project instruction file for making videos with Codex, written in Traditional Chinese. It defines a five-stage workflow covering requirements, planning documents, implementation, rendering, quality checks, and delivery.

In plain words
What is it for?
Following the specified process for planning, producing, rendering, checking, and handing over Codex video projects.
Why use it?
It keeps video projects from starting before requirements and source files are reviewed, and sets checks for subtitles, audio, layout, timing, and factual accuracy.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

This is mathruffian-dot/codex-video-specs's own configuration. It tells Codex and OpenCode how to work on codex-video-specs 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 codex-video-specs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mathruffian-dot/codex-video-specs. 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/mathruffian-dot/codex-video-specs/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/mathruffian-dot/codex-video-specs

Made for: Codex, OpenCode.

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 codex-video-specs AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mathruffian-dot/codex-video-specs/agents-md/github.svg)](https://agentmods.dev/instructions/mathruffian-dot/codex-video-specs/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mathruffian-dot/codex-video-specs/agents-md"><img src="https://agentmods.dev/badge/instructions/mathruffian-dot/codex-video-specs/agents-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 codex-video-specs AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mathruffian-dot/codex-video-specs/agents-md"><img src="https://agentmods.dev/badge/instructions/mathruffian-dot/codex-video-specs/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 778 This file is loaded in full into every session.
When invoked 778 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.00778 $0.00778
Opus 5.5 $0.00311 $0.00311
Sonnet 5.5 $0.00156 $0.00156
Haiku 4.5 $0.00078 $0.00078

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

Security

Grade A, and why

codex-video-specs AGENTS.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.

AGENTS.md · 94 lines

What it actually says

AGENTS.md - Codex 影片製作入口

你是 Codex agent。使用本 repo 時,請照這份流程做,不要直接開始寫 index.html。

固定回應規則

  • 使用繁體中文。
  • 涉及檔案時,回報完整路徑。
  • Windows 使用 PowerShell 語法。
  • 實作前先展示計畫與檔案清單。
  • 修改或新增檔案前,先說明要做什麼。

五階段流程

階段 0:讀取規範

先讀:

  1. GOTCHAS.md
  2. QUALITY_GATE.md
  3. 使用者選定類型的 spec

只做摘要,不要把整份規範貼給使用者。

階段 1:確認需求

向使用者確認:

  • 影片類型:01 活動紀錄 / 02 教學 / 03 社群科普
  • 主題與受眾
  • 片長
  • 素材來源
  • 是否需要旁白
  • 是否需要 BGM

如果使用者已經給足資訊,直接整理成確認表。

階段 2:前置三文件

先產出:

  • SCRIPT.md:逐頁或逐 beat 腳本、旁白、字幕、畫面描述。
  • DESIGN.md:字體、配色、版面、動畫節奏。
  • ASSETS.md:素材清單、來源、授權、缺口。

必須在對話中摘要展示,等使用者明確確認後才能進入階段 3。

階段 3:實作與渲染

實作順序:

  1. 建立專案結構。
  2. 準備素材與字體。
  3. 合成旁白。
  4. 寫 index.html。
  5. 寫 record.cjs 與 render.py。
  6. 產出 final.mp4。

技術規則:

  • node_modules 必須在 %TEMP%\cvs-render。
  • FFmpeg concat 暫存清單放在純英文 temp 路徑。
  • 合併音訊必須使用 -map 0:v:0 -map 1:a:0。
  • 錄影 URL 必須加 ?render=true。

階段 4:品質閘門

渲染後必須:

  1. 抽至少 6 張關鍵幀截圖。
  2. 填寫 QA.md。
  3. 檢查字幕、字體、重疊、音訊、節奏、事實與數學正確性。
  4. 發現問題就修改並重渲染。

沒有 QA 截圖,不算完成。

階段 5:收尾

交付時回報:

  • final.mp4 路徑
  • SCRIPT.md / DESIGN.md / QA.md 路徑
  • 使用的素材來源
  • 尚未處理的限制或風險

禁止事項

  • 不要未經確認就開始 code / TTS / render。
  • 不要把 Claude / OpenCode / Antigravity 的身份文字留在 Codex 專案。
  • 不要把每日進度寫進 AGENTS.md。
  • 不要在雲端同步資料夾安裝大量依賴。
  • 不要只確認影片能播放就交付。
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 · 94 lines · 778 tokens per session scan A 1349c654bd06

Subscribe to this mod's changes

codex-video-specs AGENTS.md is an instructions file published in the GitHub repository mathruffian-dot/codex-video-specs (5 stars, last pushed 5mo ago), licensed MIT. It adds 778 tokens to every session, about $0.0031 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

codex-video-specs AGENTS.md compared with instructions from other repositories

codex-video-specs AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-video-specs AGENTS.mdmathruffian-dot/codex-video-specsInstructions file55mo agoMITA778Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot