reverse-document
Qué hace
Esta skill lee código de juego existente o un prototipo y escribe el documento de diseño o técnico que nunca se redactó. Sirve para equipos que construyeron funcionalidades sin documentos, o que heredaron un proyecto sin ninguno.
Cuándo usarla
- ✓Cuando una funcionalidad se construyó sin documento de diseño y el equipo necesita uno ahora.
- ✓Cuando un equipo hereda una base de código sin documentación y necesita entenderla.
- ✓Cuando una mecánica de prototipo debe formalizarse en un diseño escrito.
Link de la skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/reverse-document/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Escribe un documento de diseño para el código de combate en src/gameplay/combat, basándote en lo que hace realmente.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill recibe un tipo de documento y la ruta del código, lee la implementación y escribe el documento correspondiente: una sección de diseño, un registro de decisión de arquitectura o una nota de concepto. Pide confirmación antes de guardar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 doc 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
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 AskUserQuestion call 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.
Resolve the tier — do not assume it.
workflow-modes.mddefines what each tier means, but it cannot say what this project is set to; take that from the block above. The consequence is large here — atfullthis skill writes an 8-section GDD and atminimala one-page brief, so a wrong tier produces the wrong artifact entirely.
Examples:
/reverse-document design src/gameplay/magic-system
/reverse-document architecture Source/MyGame/Private/EntityComponent
/reverse-document concept prototypes/vehicle-combat
Phase 2: Analyze Implementation
Read and understand the code/prototype:
For design docs (GDD):
- Identify mechanics, rules, formulas
- Extract gameplay values (damage, cooldowns, ranges)
- Find state machines, ability systems, progression
- Detect edge cases handled in code
- Map dependencies (what systems interact?)
For architecture docs (ADR):
- Identify patterns (ECS, singleton, observer, etc.)
- Understand technical decisions (threading, serialization, etc.)
- Map dependencies and coupling
- Assess performance characteristics
- Find constraints and trade-offs
For concept docs (prototype analysis):
- Identify core mechanic
- Extract emergent gameplay patterns
- Note what worked vs what didn't
- Find technical feasibility insights
- Document player fantasy / feel
Phase 3: Ask Clarifying Questions
DO NOT just describe the code. ASK about intent:
Design questions:
- "I see a [resource] system that depletes during [activity]. Was this for:
- Pacing (prevent spam)?
- Resource management (strategic depth)?
- Or something else?"
- "The [mechanic] seems central. Is this a core pillar, or supporting feature?"
- "[Value] scales exponentially with [factor]. Intentional design, or needs rebalancing?"
Architecture questions:
- "You're using a service locator pattern. Was this chosen for:
- Testability (mock dependencies)?
- Decoupling (reduce hard references)?
- Or inherited from existing code?"
- "I see manual memory management instead of smart pointers. Performance requirement, or legacy?"
Concept questions:
- "The prototype emphasizes stealth over combat. Is that the intended pillar?"
- "Players seem to exploit the grappling hook for speed. Feature or bug?"
Phase 3b: Sufficiency Check — is there enough here to document?
Run this before Phase 4, and stop here if it fails. This skill infers a design from an implementation, so when the implementation is thin there is nothing to infer from — and the template below wi
Preguntas frecuentes
¿Qué tipos de documento puede escribir?
Puede escribir una sección de diseño, un registro de decisión de arquitectura o un documento de concepto a partir de un prototipo.
¿Documenta las razones detrás del código?
Documenta lo que hace el código, y las razones se infieren de la implementación, así que conviene revisarlas.
¿Guarda archivos sin preguntar?
No. Las escrituras siguen el ajuste de automatización del proyecto, que puede exigir tu aprobación.
Detalles
Descripción original del autor
Generate missing design or architecture docs from existing implementation — works backwards from code and prototypes.
Popularidad
- Estrellas en GitHub
- 33 mil
- Posición en el ranking
- #8476
- Licencia
- MIT
- Actualizada
- 18/10/2026
Comentarios
- …
Más skills de este repositorio
adopt
33 milComprueba si los documentos de un juego existente siguen los formatos de la plantilla del estudio y escribe un plan de migración numerado para corregir las lagunas.
architecture-decision
33 milRedacta un registro de decisión de arquitectura para una elección técnica, con contexto, alternativas y consecuencias, revisado por los roles técnicos adecuados.
architecture-review
33 milComprueba que tus decisiones técnicas cubren todos los requisitos de diseño, no entran en conflicto y encajan con el motor, con un veredicto claro.
art-bible
33 milRedacta una biblia de arte que define la identidad visual de tu juego, para que la producción de recursos siga un único conjunto claro de reglas de estilo.
Skills parecidas
technical-documentation
394 milAyuda a tu agente a escribir y revisar documentación técnica clara y archivos de instrucciones para agentes, para que personas y herramientas de IA puedan seguirlos fácilmente.
architecture-decision-records
280 milHace que tu agente registre las decisiones importantes sobre la estructura del proyecto. Así se entiende el motivo de cada elección y se mantiene un historial claro.
code-tour
280 milPermite que tu agente cree recorridos paso a paso por el código, con referencias exactas a archivos y líneas. Útil para introducciones, explicaciones y revisiones.