Langsung ke konten
Skillpedia
Dokumentasi33k Β· #8476

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/reverse-document/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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.md defines 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 β€” at full this skill writes an 8-section GDD and at minimal a 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.

repo: Donchitos/Claude-Code-Game-Studios

Popularitas

Bintang GitHub
33k
Peringkat
#8476
Lisensi
MIT
Diperbarui
18/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa