reverse-document
Fungsinya
Skill ini membaca kode game atau prototipe yang sudah ada, lalu menulis dokumen desain atau teknis yang belum pernah dibuat. Cocok untuk tim yang membangun fitur tanpa dokumen, atau mewarisi proyek tanpa dokumentasi.
Kapan dipakai
- βSaat sebuah fitur dibangun tanpa dokumen desain dan tim sekarang membutuhkannya.
- βSaat sebuah tim mewarisi basis kode tanpa dokumentasi dan perlu memahaminya.
- βSaat mekanik prototipe harus diformalkan menjadi desain tertulis.
Link skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/reverse-document/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis dokumen desain untuk kode pertempuran di src/gameplay/combat, berdasarkan apa yang sebenarnya dilakukannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menerima jenis dokumen dan jalur ke kode, membaca implementasinya, lalu menulis dokumen yang sesuai: bagian desain, catatan keputusan arsitektur, atau catatan konsep. Skill meminta konfirmasi sebelum menyimpan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Jenis dokumen apa saja yang bisa dibuat?
Skill bisa membuat bagian desain, catatan keputusan arsitektur, atau dokumen konsep dari prototipe.
Apakah skill ini mendokumentasikan alasan di balik kode?
Skill mendokumentasikan apa yang dilakukan kode, dan alasannya disimpulkan dari implementasinya, jadi tinjau kembali.
Apakah skill ini menyimpan file tanpa bertanya?
Tidak. Penulisan mengikuti pengaturan otomatisasi proyek, yang bisa mengharuskan persetujuan Anda.
Detail
Deskripsi asli dari pembuat
Generate missing design or architecture docs from existing implementation β works backwards from code and prototypes.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8476
- Lisensi
- MIT
- Diperbarui
- 18/10/2026
Komentar
- β¦
Skill lain dari repositori ini
adopt
33kMemeriksa apakah dokumen proyek game yang sudah ada mengikuti format template studio, lalu menulis rencana migrasi bernomor untuk memperbaiki celah yang ditemukan.
architecture-decision
33kMenulis catatan keputusan arsitektur untuk pilihan teknis, mencakup konteks, alternatif, dan konsekuensi, dengan tinjauan dari peran teknis yang tepat.
architecture-review
33kMemeriksa bahwa keputusan teknis Anda mencakup setiap kebutuhan desain, tidak saling bertentangan, dan sesuai versi mesin, dengan vonis lulus atau kekhawatiran yang jelas.
art-bible
33kMenulis art bible yang mendefinisikan identitas visual game Anda, sehingga produksi aset mengikuti satu rangkaian aturan gaya yang jelas.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.