reverse-document

Generates design, architecture, or concept documents by analyzing existing code and prototypes.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/onemanking/the-operator --skill reverse-document-onemanking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-document
Source: https://github.com/onemanking/the-operator/tree/main/.github/skills/reverse-document
Command: npx skills add https://github.com/onemanking/the-operator --skill reverse-document-onemanking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often ship features, prototypes, or entire systems without writing design or architecture documentation first, leaving the intent behind the code undocumented and hard to maintain. This Skill works backwards from the implementation to produce the missing planning documents. ## Core Features & Use Cases - Reverse-engineered documentation: Analyzes source directories or files to extract mechanics, formulas, patterns, and dependencies, then drafts a GDD section, Architecture Decision Record, or concept document. - Collaborative intent clarification: Asks targeted questions about why design decisions were made before drafting, so documents capture intent rather than just describing code. - Traceable output: Writes approved documents with reverse-documented metadata markers and flags follow-up work such as balance checks or missing edge cases. - Use Case: You prototyped a combat system without a design doc; run the Skill on src/gameplay/combat to produce a formal GDD section capturing mechanics, formulas, and clarified design intent. ## Quick Start Ask the assistant to reverse-document the combat code by running /reverse-document design src/gameplay/combat and answer its clarifying questions.

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 /reverse-document design followed by the path to the code, such as src/gameplay/combat. The Skill analyzes the implementation, asks clarifying questions about design intent, then drafts a GDD-style document for your approval before writing it.

What document types can reverse-document generate?

It supports three types: design documents (GDD sections) for gameplay and UI code, architecture documents (ADRs) for core systems and networking, and concept documents for prototypes. The type is chosen via the first argument.

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 capturing what worked and what did not.

Does reverse-document write files without my approval?

No. It presents findings, asks clarifying questions about intent, shows a draft with additions and incomplete sections, and only writes the file after you explicitly approve the target path.

What are the limitations of reverse-engineered documentation?

It can only document what exists in the code plus intent you clarify in conversation. Sections covering unimplemented features are marked incomplete, and the document is flagged as reverse-documented so readers know it was derived from implementation.