reverse-document

Generate design and architecture documents from existing code and prototypes.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/claretagrapelike32/codex-ai-game-studio --skill reverse-document-claretagrapelike32
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-document
Source: https://github.com/claretagrapelike32/codex-ai-game-studio/tree/main/plugins/ai-game-studio/skills/reverse-document
Command: npx skills add https://github.com/claretagrapelike32/codex-ai-game-studio --skill reverse-document-claretagrapelike32

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often ship features, inherit codebases, or build prototypes without writing design documentation first, leaving the intent behind existing implementation undocumented and hard to maintain. ## Core Features & Use Cases - Reverse-Engineered Documentation: Analyzes existing code or prototypes to produce game design documents (GDD), Architecture Decision Records (ADR), or concept documents. - Intent Clarification Workflow: Asks targeted questions about design intent before drafting, separating deliberate decisions from accidental implementation details. - Approval-Gated Output: Presents findings and drafts for review, then writes the document with reverse-documented metadata markers and follow-up recommendations. - Use Case: You prototyped a combat system without a design doc. Run the skill on src/gameplay/combat/ to extract mechanics, formulas, and state machines, clarify intent, and produce a formal GDD section. ## Quick Start Ask the agent to run $ai-game-studio:reverse-document with a type (design, architecture, or concept) and a path to the code or prototype you want documented.

Frequently Asked Questions about reverse-document

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a design document from existing code?

Run the reverse-document skill with the design type and a path to your implementation, such as src/gameplay/combat/. It analyzes mechanics, formulas, and state machines, asks clarifying questions about intent, then drafts a GDD section for your approval.

What document types can reverse-document generate?

It supports three types: design produces a game design document section, architecture produces an Architecture Decision Record, and concept produces a concept document from a prototype. The type is chosen based on what you are analyzing.

Can I document a prototype that was never formally designed?

Yes, use the concept type with the prototype directory path. The skill identifies the core mechanic, emergent gameplay patterns, and technical feasibility insights, then drafts a concept document after clarifying your design intent.

Does reverse-document write files without my approval?

No, it follows an approval-gated workflow. It presents findings, asks clarifying questions, shows the draft, and only writes the file after you explicitly approve the target path.

What are the limitations of reverse-engineered documentation?

The document captures current behavior plus clarified intent, but sections may be incomplete where implementation is partial or intent was unclear. It flags follow-up work such as balance checks and missing edge cases rather than resolving them automatically.