minhln1234/claude-cowork-game-studio/ccgs-reverse-document
Claude Code and agent skill by minhln1234/claude-cowork-game-studio
- community
Checking that the SKILL.md file is still in the repository.
Generate design or architecture documents from existing implementation — works backwards from code or prototypes to create a missing GDD section, ADR, or concept doc. Use for undocumented features or inherited code.
Install
npx vskill@latest install minhln1234/claude-cowork-game-studio/ccgs-reverse-documentSKILL.md
Cowork Adaptation Notes (read first)
Converted from Claude Code Game Studios (github.com/Donchitos/Claude-Code-Game-Studios) for Claude Cowork. Apply these substitutions when following the instructions below:
- Agents: Named agents (e.g.
game-designer,unity-specialist) are not Cowork subagents. When told to "spawn an agent via Task", read the matching file in this skill's bundledroles/folder and either (a) launch a general-purpose subagent via the Agent tool with that role file's content prepended to the brief, or (b) adopt the role inline and continue. If a role file is not bundled, adopt the role inline from its name. - Project paths:
design/,docs/,production/,src/live in the user's connected project folder. Create them there as needed. Bundled reference docs are in this skill'srefs/andtemplates/folders. - Slash commands:
/skill-namemeans "the ccgs-skill-name skill". Installed set: start, brainstorm, map-systems, design-system, consistency-check, create-architecture, create-epics, create-stories, story-readiness, sprint-plan, dev-story, code-review, story-done, propagate-design-change, reverse-document. If a referenced skill is NOT in this set, tell the user it isn't installed and offer to do the equivalent steps manually. - Hooks: Claude Code hooks do not run in Cowork. Do their checks manually: validate JSON files you write, follow naming conventions, no hardcoded magic numbers, and update
production/session-state/active.mdat the start and end of each work session. - Engine: This project targets Unity (C#). Ignore Godot and Unreal routing rows.
- Review mode: If
production/review-mode.txtdoesn't exist in the project folder, default tolean.
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
src/gameplay/combat/→ All combat-related codesrc/core/event-system.cpp→ Specific fileprototypes/stealth-mech/→ Prototype directory
Examples:
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 4: Present Findings
Before drafting, show what you discovered:
Wait for user to clarify intent before drafting.
Phase 5: Draft Document Using Template
Based on type, use appropriate template:
| Type | Template | Output Path | |
|---|---|---|---|
design | templates/design-doc-from-implementation.md | design/gdd/[system-name].md | |
architecture | templates/architecture-doc-from-code.md | docs/architecture/[decision-name].md | |
concept | templates/concept-doc-from-prototype.md | prototypes/[name]/CONCEPT.md or design/concepts/[name].md |
Draft structure:
- Capture what exists (mechanics, patterns, implementation)
- Document why it exists (intent clarified with user)
- Identify what's missing (edge cases not handled, gaps in design)
- Flag follow-up work (balance tuning, missing features)
Phase 6: Show Draft and Request Approval
Collaborative protocol:
Wait for approval. User may request changes before writing.
Phase 7: Write Document with Metadata
When approved, write the file with special markers:
Phase 8: Flag Follow-Up Work
After writing, suggest next steps:
Template Selection Logic
| If analyzing... | Use template... | Because... | |
|---|---|---|---|
src/gameplay/* | design-doc-from-implementation.md | Gameplay mechanics → GDD | |
src/core/*, src/ai/* | architecture-doc-from-code.md | Core systems → ADR | |
prototypes/* | concept-doc-from-prototype.md | Experiments → concept doc | |
src/networking/* | architecture-doc-from-code.md | Technical systems → ADR | |
src/ui/* | design-doc-from-implementation.md | UI/UX → design spec |
Example Session: Reverse-Document a System
Collaborative Protocol
This skill follows the collaborative design principle:
- Analyze First: Read code, understand implementation
- Question Intent: Ask about "why", not just "what"
- Present Findings: Show discoveries, highlight unclear areas
- User Clarifies: Separate intent from accidents
- Draft Document: Create doc based on reality + intent
- Show Draft: Display key sections, explain additions
- Get Approval: "May I write to [filepath]?" On approval: Verdict: COMPLETE — document generated. On decline: Verdict: BLOCKED — user declined write.
- Flag Follow-Up: Suggest related work, don't auto-execute
Never assume intent. Always ask before documenting "why".
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingccgs-reverse-document/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/minhln1234/claude-cowork-game-studio/ccgs-reverse-document)