Reverse Document
Generate missing design or architecture docs from existing implementation, works...
Install
npx skills add Donchitos/Claude-Code-Game-Studios --skill reverse-document -g -a claude-code -y- Repository
- Donchitos/Claude-Code-Game-Studios32.1k
- Category
- Design
- Updated
- 17d ago
- License
- MIT
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
Generate missing design or architecture docs from existing implementation, works backwards from code and prototypes.
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.


