One-click install
npx skills add https://github.com/imclab/xrA1-swarm --skill reverse-document-imclab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-document
Source: https://github.com/imclab/xrA1-swarm/tree/main/.claude/skills/reverse-document
Command: npx skills add https://github.com/imclab/xrA1-swarm --skill reverse-document-imclab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the guesswork of writing missing planning documentation by generating design and architecture materials directly from an existing implementation.

Core Features & Use Cases

  • Reverse-engineer design documentation: Produces design artifacts from code or prototypes instead of starting from scratch.
  • Support multiple doc types: Generates GDD-style design documents, ADR architecture decision records, or concept docs derived from prototypes.
  • Clarify intent before writing: Identifies unclear areas and asks targeted questions to avoid documenting the wrong “why.”

Quick Start

Use reverse-document to generate a design doc from the codebase at src/gameplay/magic-system by asking it to create a design document from the existing implementation.

Frequently Asked Questions about reverse-document

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

FAQPage Schema
How do I generate design docs from existing code?

To generate design docs from existing code, use a tool-driven approach to read your codebase, discover mechanics or architectural patterns, clarify intent via questions, and produce a draft for approval before writing.

What is the best way to create architecture decision records from a prototype?

Creating architecture decision records from a prototype involves analyzing the existing implementation to extract patterns and trade-offs, clarifying unclear intent, and generating a structured ADR draft for review.

Can I document gameplay mechanics and ECS patterns without starting from scratch?

Yes, you can document gameplay mechanics and ECS patterns without starting from scratch by reverse-engineering existing code to discover formulas and architecture, then generating a GDD-style design document.

Does reverse documentation work for clarifying the original intent of unclear code?

Reverse documentation clarifies the original intent of unclear code by identifying ambiguous areas during codebase analysis and asking targeted questions to ensure the generated design or architecture documents capture the correct reasoning.

What are the limitations of generating concept docs from prototypes?

A limitation of generating concept docs from prototypes is that the process requires structured discovery and tool-driven file reading; if the prototype code lacks clear mechanics or patterns, the generated documentation may be incomplete.