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

Install

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.

agentmods
npx agentmods add instructions/mathruffian-dot/codex-video-specs/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00778 $0.00778
Opus 5 $0.00389 $0.00389
Sonnet 5 $0.00156 $0.00156
Haiku 4.5 $0.00078 $0.00078

Measured 4d ago against content hash 1349c654bd06, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.cjsrender.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. 4d 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 3mo ago), licensed MIT. It adds 778 tokens to every session, about $0.0039 per session on Opus 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

Other instructions, from other repositories