game-reverse-document
Generate documentation from existing code or prototypes.
Skill by AlterLab-IEU
Chalk Labs
Need help deploying game-reverse-document?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alterlab-ieu-game-reverse-document
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, design, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/game-reverse-document
Tools it pre-approves 5
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Glob,Grep,Write,AskUserQuestion
What's inside
- Skill name
game-reverse-document- Description
- Generate documentation from existing code or prototypes. Triggers on: "document this", "reverse document", "generate docs from code", "onboard to codebase", "document existing system". Do NOT invoke for writing new design docs from scratch (use game-brainstorm or game-design-review). Part of the AlterLab GameForge collection.
- License
- MIT
- Allowed tools
- Read,, Glob,, Grep,, Write,, AskUserQuestion
- Instructions
- 461 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# AlterLab GameForge -- Reverse Documentation Workflow
Most game projects start with passion, not paperwork. A developer prototypes, iterates, and builds. Weeks later, the codebase works but nobody -- including the original author -- can explain its architecture without reading every file. There is no design document because the design emerged from code. There is no architecture decision record because decisions were made in the moment and never written down. This is the normal state of indie development, and pretending otherwise is dishonest.
This workflow reverses the traditional documentation flow. Instead of document-then-build, it reads existing code and produces the documentation that should have existed from the start. The output is not auto-generated API docs -- it is human-readable design documentation that captures intent, architecture, and game systems in the language of game development, not the language of code.
Reverse documentation serves three critical needs: onboarding (a new team member understands the project in hours, not weeks of code archaeology), preservation (the original developer's decisions are captured before they forget why), and diagnosis (inconsistencies between systems become visible when documented side by side).
### Purpose & Triggers
Use this workflow when:
- A prototype works but has zero documentation
- A new team member needs to understand an existing codebase
- The original developer is leaving and knowledge must be transferred
- The project has grown complex enough that the author loses track of systems
- Someone says "document this" or "what does this code do?"
- A game jam prototype is being promoted to a full project and needs formal docs
- An existing project needs a design document for publishers, investors, or team alignment
Problems this solves:
- Working code that nobody can explain or safely modify
- Onboarding that takes weeks of code-reading instead of hours of doc-reading
- Architectural decisions that are invisible -- embedded in code but never recorded
- Game mechanics that exist in code but are not described in any design document
- Systems that contradict each other because nobody mapped their interactions
- Orphaned code that does nothing but nobody is confident enough to delete
### Critical Rules
1. **Read before writing.** Do not generate documentation from assumptions. Scan the actual
codebase first. Every claim in the output must trace back to a specific file or code
pattern. Include file paths and line references.
2. **Intent over implementation.** Capture WHY the code does something, not just WHAT it does. A function that applies gravity is not "applies downward force" -- it is "enforces the movement constraint that prevents infinite jumping." Celeste's codebase is full of intent-documenting comments like "coyote time: player can still jump for 6 frames after leaving a ledge." That level of intent documentation is the target.
3. **Flag uncertainty.** When the code's intent is ambiguous, say so. Mark sections with `[UNVERIFIED]` and ask the developer to clarify. Guessing intent and documenting the guess as fact is worse than leaving a gap.
4. **Systems, not files.** Organize documentation around game systems (movement, combat, inventory, UI), not around file structure. A movement system might span 5 files across 3 directories. The documentation describes the system, then lists the files. Dead Cells' internal documentation organized everything by game system -- combat, biomes, progression, enemies -- because that is how designers think about the game, not how the file tree is structured.
5. **Detect, do not ignore, inconsistencies.** If the movement code assumes tile-based movement but the collision code assumes continuous movement, that is a documentation finding, not something to paper over. Flag it. Factorio's codebase is a model of internal consistency -- every system agrees on what a "tick" means, what a "belt" can carry, and how entities interact. When your documentation reveals that two systems disagree on fundamentals, you have found the bug before it ships.
6. **Three modes, one pipeline.** The code analysis pipeline is shared across all three
modes. The output format changes, not the analysis depth.
### Workflow
---
🧠 **PHASE 1: Project Scan**
*Goal: Understand the project structure, engine, and organization before reading code.*
```
PROJECT SCAN PROTOCOL
-------------------------------------------------
Step 1: Detect engine and framework
Scan for:
- project.godot, *.gd, *.tscn --> Godot
- *.unity, *.cs, ProjectSettings/ --> Unity
- *.uproject, *.cpp/*.h with UE macros --> Unreal Engine
- package.json with game libs --> Web/JS game framework
- Cargo.toml with game crates --> Rust game framework
- None of the above --> Custom engine or unknown
Step 2: Map directory structure
Produce a tree of the project with annotations:
/project-root/
/src/ or /scripts/ -- Game logic
/assets/ or /art/ -- Visual and audio assets
/scenes/ or /levels/ -- Level/scene data
/ui/ -- User interface
/data/ or /config/ -- Game data, settings
/tests/ -- Test files (if any)
/docs/ -- Existing documentation (if any)
Step 3: Measure project scale
- Total source files: [N]
- Total lines of code: [approximate]
- Number of scenes/levels: [N]
- Number of asset files: [N]
- Estimated project complexity: [small / medium / large]
Step 4: Check for existing documentation
- README present: [Y/N]
- Design document present: [Y/N]
- Inline comments density: [sparse / moderate / thorough]
- Architecture docs present: [Y/N]
-------------------------------------------------
```
---
🎯 **PHASE 2: System Detection**
*Goal: Identify distinct game systems from code patterns.*
Game systems leave recognizable fingerprints in code regardless of engine or language. This
phase identifies which systems exist by scanning for characteristic patterns.
```
SYSTEM DETECTION HEURISTICS
-------------------------------------------------
MOVEMENT SYSTEM:
Signals: velocity variables, position updates per frame, input axis
reading, acceleration/deceleration curves, ground detection, gravity
application, jump state machines, character controller references
Common files: Player.*, CharacterController.*, Movement.*, Locomotion.*
COMBAT SYSTEM:
Signals: damage calculation functions, health/HP variables, hit detection,
attack state machines, weapon data structures, damage types/resistances,
invincibility frames, knockback vectors
Common files: Combat.*, Weapon.*, DamageSystem.*, Health.*, Attack.*
INVENTORY SYSTEM:
Signals: item data structures, add/remove item functions, capacity limits,
item stacking logic, equipment slots, item categories/types
Common files: Inventory.*, Item.*, Equipment.*, ItemDatabase.*From AlterLab-IEU/AlterLab_GameForge, MIT.
More from AlterLab-IEU/AlterLab_GameForge
- 0.431score
game-design-review
AlterLab-IEU
Invoke when the user wants feedback on a game design document, GDD review, design evaluation, or consistency check on an existing design.
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-jam-mode
AlterLab-IEU
Invoke for game jam participation -- 48-72 hour compressed development workflow.
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-analytics-setup
AlterLab-IEU
Invoke when the user needs to set up analytics, define telemetry events, establish KPIs, build dashboards, configure A/B testing, or implement data-driven…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-creative-director
AlterLab-IEU
Invoke when the user asks about creative vision, game pillars, core fantasy, design direction, art style decisions, scope arbitration, or creative conflicts.
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-designer
AlterLab-IEU
Invoke when the user asks about game mechanics, core loop, balance, progression, economy design, reward systems, onboarding, game feel, systems design, or GDD…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-economy-designer
AlterLab-IEU
Invoke when the user asks about game economy, currency design, monetization, virtual currency, inflation, sink/source balance, F2P economy, premium currency…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-accessibility-specialist
AlterLab-IEU
Invoke when the user asks about accessibility, inclusive design, colorblind mode, remappable controls, screen reader support, EAA compliance, CVAA, difficulty…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-producer
AlterLab-IEU
Invoke when the user asks about sprint planning, milestone tracking, scope management, risk assessment, scheduling, resource allocation, team velocity, or…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-qa-lead
AlterLab-IEU
Invoke when the user asks about testing strategy, bug tracking, playtest methodology, regression testing, release certification, QA automation, or bug triage.
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-technical-director
AlterLab-IEU
Invoke when the user asks about game architecture, engine selection, performance budgets, technical debt, build pipeline, cross-platform, rendering pipeline…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-ux-designer
AlterLab-IEU
Invoke when the user asks about game UI, onboarding, HUD design, controller navigation, player feedback, usability testing, colorblind modes, or game-specific…
SkillDFreshness: D★ 46Claude Code +9 - 0.431score
game-localization-manager
AlterLab-IEU
Invoke when the user asks about localization, translation, i18n, internationalization, string extraction, cultural adaptation, RTL support, CJK text, or EFIGS…
SkillDFreshness: D★ 46Claude Code +9
Signals
- Stars
- 46
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Mar 25, 2026 (7 months ago)
- Last release
- Mar 26, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from AlterLab-IEU
- 0.545score
alterlab-blast
AlterLab-IEU
Runs NCBI BLAST+ 2.17.0 sequence searches from the command line: makeblastdb (with -parse_seqids), blastn/blastp/blastx/tblastn with tabular -outfmt 6/7 for…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-alphafold
AlterLab-IEU
Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-anndata
AlterLab-IEU
Build, slice, concatenate, read, and write AnnData annotated data matrices (obs, var, X, layers, obsm, uns) — the scverse data STRUCTURE, not an analysis…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-arboreto
AlterLab-IEU
Infer gene regulatory networks (GRNs) from expression matrices using arboreto's scalable GRNBoost2 and GENIE3 tree-ensemble algorithms with Dask-distributed…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-biopython
AlterLab-IEU
Manipulate biological sequences, parse FASTA/GenBank/PDB files, run phylogenetics, and access NCBI/PubMed programmatically via Biopython (Bio.SeqIO…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-bioservices
AlterLab-IEU
Query 40+ bioinformatics web services through one consistent Python API with bioservices (UniProt, KEGG, ChEMBL, Reactome, Ensembl, NCBI and more).
SkillBFreshness: B★ 78Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get game-reverse-document running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
game-reverse-document skill. Agent Mart. https://agentmart.dev/skills/alterlab-ieu-game-reverse-document (last updated 2026-10-24)