reverse-document

reverse-document is a skill for Claude Code from Donchitos/Claude-Code-Game-Studios. It costs 27 tokens per session (3,882 once invoked), scanned A, original, MIT.

A documentation tool that works backwards from existing code or prototypes to describe their design or technical architecture.

In plain words
What is it for?
Use it to create a game design document section, an architecture decision record, or a concept document from a file, directory, or prototype.
Why use it?
It helps when a feature was built without documentation or when you inherit code and need to understand why it works that way.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read, Glob, Grep, Write, Edit, Bash(bash "*/.claude/skills/reverse-document/../../hooks/yaml-helper.sh" resolve_config *), Bash(bash .claude/scripts/game-read.s.

Good fit Use it to create a game design document section, an architecture decision record, or a concept document from a file, directory, or prototype.

Compare 6 skills from other repositories ↓
About the project

Claude Code Game Studios is a setup that organizes Claude Code into a coordinated game-development team of specialized AI agents. It supports game projects across design, programming, art, audio, narrative, quality assurance, and production, with skills and workflows for coordinating that work.

Donchitos/Claude-Code-Game-Studios · 41,412 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios
agentmods
npx agentmods add skills/donchitos/claude-code-game-studios/reverse-document

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/donchitos/claude-code-game-studios/reverse-document/github.svg)](https://agentmods.dev/skills/donchitos/claude-code-game-studios/reverse-document)
Your own site
<a href="https://agentmods.dev/skills/donchitos/claude-code-game-studios/reverse-document"><img src="https://agentmods.dev/badge/skills/donchitos/claude-code-game-studios/reverse-document/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 reverse-document

Your own site · 80×15
<a href="https://agentmods.dev/skills/donchitos/claude-code-game-studios/reverse-document"><img src="https://agentmods.dev/badge/skills/donchitos/claude-code-game-studios/reverse-document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,882 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
  • Socket pass 19 Oct 2026
  • Snyk pass 19 Oct 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 261
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 7
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00027 $0.03882
Opus 5.5 $0.00011 $0.01553
Sonnet 5.5 $0.00005 $0.00776
Haiku 4.5 $0.00003 $0.00388

Measured 21d ago against content hash 3626441f583a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 21d 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

.claude/skills/reverse-document/SKILL.md · 390 lines

How it starts

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

Reverse Documentation

This skill analyzes existing implementation (code, prototypes, systems) and generates appropriate design or architecture documentation. Use this when:

  • You built a feature without writing a design document first
  • You inherited a codebase without documentation
  • You prototyped a mechanic and need to formalize it
  • You need to document "why" behind existing code

Workflow

Phase 1: Parse Arguments

Format: /reverse-document <type> <path>

Type options:

  • design → Generate a game design document (GDD section)
  • architecture → Generate an Architecture Decision Record (ADR)
  • concept → Generate a concept document from prototype
  • brief → The one-page brief of a browser game someone already made (an .html file or a folder with index.html), its Features marked built. Read references/from-a-game.md now and follow it: it takes the place of Phases 2 to 7 for a game. For any other type, do not load it.

Path: Directory or file to analyze, under the code root — src/ Godot, Assets/ Unity, Source/<Module>/ Unreal (.claude/docs/code-root-resolution.md)

  • src/gameplay/combat/ → All combat-related code (Godot)
  • Assets/Scripts/Core/EventSystem.cs → Specific file (Unity)
  • Source/MyGame/Private/AI/ → A module folder (Unreal)
  • prototypes/stealth-mech/ → Prototype directory

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys workflow,system_overrides,automation

Automation mode: Resolve modes.automation (project.local.yaml → project.yaml → default collaborative). Every question and every file write follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and proceeds; automation_always_ask categories always prompt).

Resolved above — use as-is. No block → defaults in .claude/docs/config-resolution.md.

Resolve the workflow tier for the target system: map <path> to a system name, then use the system_overrides row for that system if the block above lists one, else the project workflow value. It sets how much document is generated — see Phase 5. Semantics of each tier are in .claude/docs/workflow-modes.md.

Read the full file on GitHub · 390 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 21d ago Changed · +5 lines · +7 tokens per session 3626441f583a
  2. 1mo ago Changed · -5 lines c498c673b8f1
  3. 2mo ago Changed · +2 lines 74245b18a937
  4. 2mo ago Changed ec92837c1395
  5. 2mo ago Changed · +124 lines · -4 tokens per session 092dfe1a7909
  6. 2mo ago First seen · 264 lines · 24 tokens per session scan A 71d5beda61de

Subscribe to this mod's changes

reverse-document is a skill published in the GitHub repository Donchitos/Claude-Code-Game-Studios (41,412 stars, last pushed 20d ago), licensed MIT. It adds 27 tokens to every session and 3,882 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-09-03.

Related

reverse-document compared with skills from other repositories

reverse-document next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reverse-documentDonchitos/Claude-Code-Game-StudiosSkill41k20d agoMITA27Claude Code
game-designellmos-ai/skillsSkill10yesterdayMITA176Claude Code, Codex
rbx-devellmos-ai/skillsSkill10yesterdayMITA182Claude Code, Codex
novel-to-gamezenstory-ai/novel-to-gameSkill1.3k3d agoMITA181Claude Code, Codex
wow-assistantgakonst/nanocodexSkill7938d agoApache-2.0A37Claude Code, Codex
media-higgsfield-assetsmodu-ai/moai-coworkSkill3201mo agoApache-2.0A300Claude Code
gamemaker-gmlMindrally/skillsSkill3221mo agoApache-2.0A76Claude Code