cgs-reverse-document

cgs-reverse-document is a skill for Claude Code from merlinhu1/codex-game-studio. It costs 41 tokens per session (562 once invoked), scanned A, original, MIT.

A procedure for writing design or technical documentation from an existing game implementation. It records what the code and files actually show without filling gaps with guesses.

In plain words
What is it for?
Describing observed behavior, linking it to file evidence, listing unknowns, drafting documentation, and handing the work to the next owner.
Why use it?
It prevents documentation from promising behavior the game does not have. It also makes evidence paths and unknown details visible to future developers.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; installed under .agents/ (shared by several agents).

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 skills/merlinhu1/codex-game-studio/cgs-reverse-document
Any agent
npx skills add merlinhu1/codex-game-studio --skill cgs-reverse-document
Clone the repo
git clone --depth 1 https://github.com/merlinhu1/codex-game-studio

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 cgs-reverse-document

README.md
[![agentmods](https://agentmods.dev/badge/skills/merlinhu1/codex-game-studio/cgs-reverse-document.svg)](https://agentmods.dev/skills/merlinhu1/codex-game-studio/cgs-reverse-document)
Your own site
<a href="https://agentmods.dev/skills/merlinhu1/codex-game-studio/cgs-reverse-document"><img src="https://agentmods.dev/badge/skills/merlinhu1/codex-game-studio/cgs-reverse-document.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00041 $0.00562
Opus 5 $0.00020 $0.00281
Sonnet 5 $0.00008 $0.00112
Haiku 4.5 $0.00004 $0.00056

Measured 6d ago against content hash 9189b7f61a9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cgs-reverse-document 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 6d 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/skills/cgs-reverse-document/SKILL.md · 78 lines

What it actually says

Codex Game Studio Reverse Document

Use this skill for reverse document work in Template Game.

Objective

Create design or technical documentation from existing implementation without inventing unverified behavior.

Inputs

  • AGENTS.md
  • .codex/studio.json
  • task-relevant files named by the user or task record
  • design/gdd.md
  • docs/market-overview.md

Arguments

  • Objective or user request.
  • Target files, scenes, assets, or docs.
  • Constraints, deadlines, acceptance criteria, and verification command when known.

Procedure

  1. Clarify the requested create design or technical documentation from existing implementation without inventing unverified behavior. and identify the current project stage.
  2. Collect evidence for Observed Behavior, Evidence Path, Unknowns.
  3. Draft or review the artifact in small sections, keeping player experience and scope visible.
  4. Produce the requested artifact or review with clear file paths and verification evidence.

Write Targets

  • design/

Output Contract

  • Summary
  • Observed Behavior
  • Evidence Path
  • Unknowns
  • Documentation Draft
  • Risks
  • Changed files or proposed files
  • Verification evidence
  • Next owner or decision

Quality Gates

  • Observed Behavior
  • Evidence Path
  • Unknowns
  • Documentation Draft
  • Scope remains bounded to the current task and project stage.
  • Report labels unverified assumptions separately from evidence.

Decision Gates

  • Continue only when the expected output can be verified or clearly labeled as a plan.
  • Escalate to producer or qa-playtester when scope, ownership, or acceptance evidence is ambiguous.
  • Stop before broad rewrites, generated prompt mirrors, or hidden lifecycle behavior.

Handoff

Report changed files, verification evidence, remaining risks, and the next owner or decision. Do not imply hidden hooks or autonomous background work.

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. 6d ago First seen · 78 lines · 41 tokens per session scan A 9189b7f61a9c

Subscribe to this mod's changes

cgs-reverse-document is a skill published in the GitHub repository merlinhu1/codex-game-studio (53 stars, last pushed 27d ago), licensed MIT. It adds 41 tokens to every session and 562 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

brainstorm

Guided game concept ideation — from zero idea to a structured game concept document. Uses professional studio ideation techniques, player psychology frameworks, and structured creative exploration.

TraftG/opencode-game-studio · 36 tokens

qa-plan

Generate a QA test plan for a sprint or feature. Reads GDDs and story files, classifies stories by test type (Logic/Integration/Visual/UI), and produces a structured test plan covering automated tests required, manual test cases, smoke test scope, and playtest sign-off requirements. Run before sprint begins or when…

striderZA/OpenCodeGameStudios · 73 tokens

asset-audit

Audits game assets for compliance with naming conventions, file size budgets, format standards, and pipeline requirements. Identifies orphaned assets, missing references, and standard violations.

striderZA/OpenCodeGameStudios · 38 tokens

balance-check

Analyzes game balance data files, formulas, and configuration to identify outliers, broken progressions, degenerate strategies, and economy imbalances. Use after modifying any balance-related data or design. Use when user says 'balance report', 'check game balance', 'run a balance check'.

striderZA/OpenCodeGameStudios · 61 tokens

hybrid-prototype

Fast-lane prototype skill for the hybrid workflow. Builds a playable prototype in 2-3 days with minimal process overhead. Designed for discovery phase.

striderZA/OpenCodeGameStudios · 35 tokens

generated-raster-asset-pipeline

Define acceptance, validation, and runtime integration rules for raster assets generated with image models before they become real project content.

MRCalderon3D/everything-game-dev-code · 31 tokens