reverse-document
Skill26k starsChanged 2 months agoMITView on GitHub
Generate missing design or architecture docs from existing implementation — works backwards from code and prototypes.
8 other projects use a version of this, 6 of them edited; 6 of 6 edited versions we compared changed its rules.
How people change it
6 of 6 edited versions changed its rules, and some changes recur.
Of the 6 edited versions we compared: 6 made changes of their own.
Rules people drop
- Keep the banner on revision. If a human later confirms the intent and adopts the document as authored design, removing it is their explicit act — not a side effect of the next edit.dropped by 6 of 6
- Use the tier-correct output path in the prompt:
design/gdd/[system-name].mdfor afull/standardGDD, ordesign/[system-name]-brief.mdfor aminimalbrief.dropped by 6 of 6 - Document player fantasy / feeldropped by 1 of 6
- Before drafting, show what you discovered:dropped by 1 of 6
- Wait for user to clarify intent before drafting.dropped by 1 of 6
- Document why it exists (intent clarified with user)dropped by 1 of 6
- When approved, write the file with special markers:dropped by 1 of 6
- After writing, suggest next steps:dropped by 1 of 6
Rules people add
- Wait for approval. User may request changes before writing.added by 5 of 6
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Pluginedited, first seen Oct 5, 2026
- dawn840705/codex-code-studiosedited, first seen Aug 28, 2026
- striderZA/OpenCodeGameStudiosedited, first seen Aug 10, 2026
- cenconq25/claude-code-app-studiotheir own version, first seen May 3, 2026
- tranhieutt/software_development_departmentedited, first seen Apr 30, 2026
- pixel-cellar/Claude-Code-Game-Studiostheir own version, first seen Mar 29, 2026
Who's talking about Donchitos/Claude-Code-Game-Studios
- @woody-ai-tools.bsky.social“【GitHubトレンド調査】 Claude Codeをゲーム開発スタジオに変貌させる「Claude-Code-Game-Studios」が登場。…”Bluesky · Apr 19, 2026 · 10 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 9,860 (+523) 🗒 Shell Turn …”Bluesky · Apr 15, 2026 · 4 likes
- @impossible.bsky.social“This is the project in question. github.com/Donchitos/Cl... Most of these projects feel like toys or …”Bluesky · May 19, 2026 · 3 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 13,024 (+828) 🗒 Shell Turn …”Bluesky · Apr 19, 2026 · 3 likes
- @thestackradar.bsky.social“Claude-Code-Game-Studios — Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, …”Bluesky · Nov 1, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub and Bluesky (53 times).
On GitHub · 41
- Nov 19, 2026GF-ARCH-12: Studio Intelligence inspirado em Graphify, Game Studios e DeepSeek Harness — jogoiarexx-blip/gameforge-ia0 reactions
- Nov 19, 2026chore(architecture): share game-dev agents and skills — OliverRomhagen/vrigstad-joyride0 reactions · 9 comments
- Nov 15, 2026Sync upstream v1.3.0 — spirit986/Claude-Code-Game-Studios0 reactions
- Nov 13, 2026add links — rumca-js/rumca-js.github.io0 reactions
- Nov 12, 2026[추적] GDD 문서 책임과 생성 에이전트 역할 분리 — arch-spatula/isekai-generator0 reactions
36 more on GitHub
- Nov 10, 2026research: GitHub 오픈소스 10종 심층 비교 및 JARVIS 개발 세션 인계 (2026-11-10) — coddddin/jarvis-mcp0 reactions
- Nov 9, 2026feat(chaos-engine): game-studio follow-up from the 2026-11-09 study — ShaftHQ/SHAFT_ENGINE0 reactions · 2 comments
- Nov 9, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.2.0 → 1.3.0 — sudosubin/agents.nix0 reactions
- Nov 9, 2026Research: inventory external Unity game-dev skills for project-local adoption — AlvaGonz/A-B-Revival0 reactions · 1 comment
- Nov 9, 2026PROJECT MASTER DIRECTIVE — Dr-sOuL7/PlayGround0 reactions · 3 comments
- Nov 8, 2026[Future Isles] Reuse and validate upstream GameDev Skills (Phaser, game systems, Blender) — alston-personal/agentmanager0 reactions · 5 comments
- Nov 6, 2026[P1] Save the text of the golden pages to evals/golden/ — minhtran3124/mnemo0 reactions · 1 comment
- Nov 3, 2026[edition] 2026-11-03 18:00 — leoneoo/ai-lianmeng0 reactions · 1 comment
- Nov 3, 2026🔥 GitHub Trending AI 早报 · 2026-11-03 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 3, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49个agent+74技能按真实工作室层级把Claude Code变游戏团队 — web1992/github-trending0 reactions
- Nov 2, 2026🔥 GitHub Trending AI 早报 · 2026-11-03 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 2, 2026🔥 GitHub Trending AI 早报 · 2026-11-02 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 2, 2026day-035: Claude Code Game Studios — CLAUDE.md auto-discoveryを発見 — Matsushima-A-830/ai-100days0 reactions
- Nov 2, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49个agent+74技能按真实工作室层级把Claude Code变游戏团队 — web1992/github-trending0 reactions
- Nov 1, 2026today: Day 035にClaude Code Game Studiosを設定 — Matsushima-A-830/ai-100days0 reactions
- Nov 1, 2026research: 2026-11-01分のネタ候補5件をbacklog.mdに追記 — Matsushima-A-830/ai-100days0 reactions
- Nov 1, 2026🔥 GitHub Trending AI 早报 · 2026-11-02 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 1, 2026🔥 GitHub Trending AI 早报 · 2026-11-01 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 1, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49子代理打造完整游戏工作室 — web1992/github-trending0 reactions
- Oct 31, 2026🔥 GitHub Trending AI 早报 · 2026-11-01 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Oct 30, 2026Donchitos 'Claude-Code-Game-Studios' — 49개 에이전트·74개 스킬로 Claude Code를 게임 개발 스튜디오로, 일간 트렌딩 진입 (10/29, GitHub) — roomedia/ax-trend0 reactions
- Oct 25, 2026Import Claude Code Game Studios into .claude — RoxorLoops1337/Games0 reactions · 1 comment
- Oct 21, 2026Skill mới cho agent: soát cân bằng, chống gian lận, soak/perf, bot chập chờn, phân loại chơi thử — nguyenbinhanltv/soul-land-mmo0 reactions
- Oct 19, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.3 → 1.2.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026研究作者列出的 16 個遊戲引擎與 AI 專案;新增 economy-balance skill — a91453/railway-game-ios0 reactions
- Oct 13, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.2 → 1.1.3 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.0 → 1.1.2 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.donchitos.claude-code-game-studios: init at 1.1.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026Add Game Studios, rohitg00, BaseGold, and MineSwap — CryptoSuess/FoutainOfYouth0 reactions
- Aug 6, 2026技能侦察 2026-08-06 01:00Z:+8 精选(220) — NyphSan/CursorSkill0 reactions
- Aug 5, 2026技能侦察 DIGEST 2026-08-05 21:00Z:+8 一致性/体素/动画与 AngelScript·Art Bible — NyphSan/CursorSkill0 reactions
- Apr 30, 2026docs: add shields.io badges to README.md / README.ja.md — kirin0198/aphelion-agents0 reactions
- Apr 18, 2026📱 SNS 콘텐츠 - 2026-04-18 16:10 KST — leaf468/autothreads0 reactions
- Apr 18, 2026🤖 AI 트렌드 리포트 - 2026-04-18 16:10 KST — leaf468/autothreads0 reactions
- Apr 6, 2026Audit candidate: Donchitos/Claude-Code-Game-Studios — xiaolai/nlpm0 reactions · 2 comments
- Mar 22, 2026Add game studio agent support to agent-tools (adapted from Claude-Code-Game-Studios) — Unwrenchable/agent-tools0 reactions
On Bluesky · 12
- Apr 19, 2026【GitHubトレンド調査】 Claude Codeをゲーム開発スタジオに変貌させる「Claude-Code-Game-Studios」が登場。… — @woody-ai-tools.bsky.social10 likes and reposts
- Apr 15, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 9,860 (+523) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social4 likes and reposts · 1 reply
- May 19, 2026This is the project in question. github.com/Donchitos/Cl... Most of these projects feel like toys or performance art masquerading as useful… — @impossible.bsky.social3 likes and reposts · 2 replies
- Apr 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 13,024 (+828) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Nov 1, 2026Claude-Code-Game-Studios — Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination… — @thestackradar.bsky.social2 likes and reposts
7 more on Bluesky
- Nov 1, 2026An entire game dev studio in one Claude session? 🎮 Claude-Code-Game-Studios turns Claude Code into an AI production studio: 49 agents, 72… — @thestackradar.bsky.social1 likes and repost
- Oct 31, 2026今日のGitHubトレンド Donchitos/Claude-Code-Game-Studios Claude Codeのセッションを擬似的なゲーム開発スタジオとして運用するためのツールです。… — @dailygithubtrends.bsky.social1 likes and repost
- May 19, 2026It was this one: github.com/Donchitos/Cl... — @dphrygian.com1 likes and repost · 1 reply
- Apr 21, 2026https://github.com/Donchitos/Claude-Code-Game-Studios — @tom-doerr.bsky.social1 likes and repost
- Apr 1, 2026Un studio de 48 agents IA spécialisés dans Claude Code : hiérarchie complète (directors, leads, specialists), workflows automatisés et… — @camilleroux.com1 likes and repost
- Nov 2, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 33,084 (+1,380) 🗒 Shell Turn Claude Code into a full game… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 29, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 28,645 (+538) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social0 likes and reposts · 1 reply
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- striderZA/OpenCodeGameStudios★ 9090% same
- tranhieutt/software_development_department★ 7251% same
- CoralGame/Claude-Code-Game-Studios★ 1966% same
- dawn840705/codex-code-studios★ 1791% same
- timjrobinson/Claude-Code-Construction-Manager★ 413% same
- HunLuanZhiZhu/Game-Studios-Plugin★ 190% same
Wrote their own version · 2
- pixel-cellar/Claude-Code-Game-Studios★ 338same name
- cenconq25/claude-code-app-studio★ 41same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository78 other files it gives its agents.
- CCGS Skill Testing Framework/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- design/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- adoptSkill
- architecture-decisionSkill
- architecture-reviewSkill
- art-bibleSkill
- asset-auditSkill
- asset-specSkill
- balance-checkSkill
- brainstormSkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- code-reviewSkill
- consistency-checkSkill
- content-auditSkill
- create-architectureSkill
- create-control-manifestSkill
- create-epicsSkill
- create-storiesSkill
- day-one-patchSkill
- design-reviewSkill
- design-systemSkill
- dev-storySkill
- estimateSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- launch-checklistSkill
- localizeSkill
- map-systemsSkill
- milestone-reviewSkill
- onboardSkill
- patch-notesSkill
- perf-profileSkill
- playtest-reportSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- qa-planSkill
- quick-designSkill
- regression-suiteSkill
- release-checklistSkill
- retrospectiveSkill
- review-all-gddsSkill
- scope-checkSkill
- security-auditSkill
- settingsSkill
- setup-engineSkill
- skill-improveSkill
- skill-testSkill
- smoke-checkSkill
- soak-testSkill
- sprint-planSkill
- sprint-statusSkill
- startSkill
- story-doneSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 9 are common, 1 is distinctive, and 1 is very specific to this project.
9
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 94
Document player fantasy / feel
- Common: line 150
Before drafting, show what you discovered:
- Common: line 185
Wait for user to clarify intent before drafting.
- Common: line 219
Document why it exists (intent clarified with user)
- Distinctive: line 246
Keep the banner on revision.
- Very specific: line 270
Use the tier-correct output path in the prompt: design/gdd/[system-name].md for a full/standard GDD, or design/[system-name]-brief.md for a …
- Common: line 286
When approved, write the file with special markers:
- Common: line 307
After writing, suggest next steps:
- Common: line 380
Analyze First: Read code, understand implementation
- Common: line 381
Question Intent: Ask about "why", not just "what"
- Common: line 384
Draft Document: Create doc based on reality + intent
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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. "Resolve the tier per
workflow-modes.md" with no bootstrap names a resolution it gives no way to perform: that document defines what each tier means, but it cannot say what this project is set to. 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-combatPhase 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 will happily accept invented content, because every section of it is mandatory.
Count what Phase 2 actually found:
| Signal | What counts |
| Mechanics | A named behaviour with observable rules — not a stub, not an empty class |
| Formulas | An expression computing a gameplay value from inputs |
| Values | A tuning constant with a use site |
If all three counts are zero, or the target path holds fewer than ~20 lines of non-boilerplate code, stop and say so:
"
[path]does not contain enough implementation to reverse-document. Found: [N] mechanics, [N] formulas, [N] tuning values. Reverse-documentation infers design from behaviour; with no behaviour to read, anything I produce would be invention wearing the format of a design document. If the design exists only in your head,/design-system [name]is the skill that captures it — it asks rather than infers."
Do not proceed on a partial count by filling the rest. A path with two
mechanics and no formulas gets a document with two mechanics and an explicit
FORMULAS DISCOVERED: none found in the source — see Phase 4.
Phase 4: Present Findings
Before drafting, show what you discovered:
I've analyzed [path]/. Here's what I found:
MECHANICS IMPLEMENTED:
- [mechanic-a] with [property] (e.g. timing windows, cooldowns)
- [mechanic-b] (e.g. interaction between two states)
- [resource] system (depletes on [action], regens on [condition])
- [state] system (builds up, triggers [effect])
FORMULAS DISCOVERED:
- [Output] = [formula using discovered variables]
- [Secondary output] = [formula]
UNCLEAR INTENT AREAS:
1. [Resource] system — pacing or resource management?
2. [Mechanic] — core pillar or supporting feature?
3. [Value] scaling — intentional design or needs tuning?
Before I draft the design doc, could you clarify these points?Every section above may be empty, and an empty one must say so. Write
none found in the sourceunder the heading — never omit the heading (which reads as "not looked for") and never populate it from what a system like this usually has. The bracketed rows are shapes, not quotas: a source with one mechanic yields one row, not four.This matters more here than in a report, because the output of this skill is not a report — it is a design document, and
/design-review,/create-epicsand/create-storieswill read it as a statement of authored intent. A fabricated formula in a GDD does not stay a documentation error; it becomes a requirement, and then a story, and then code written to satisfy it.
Wait for user to clarify intent before drafting.
If the user does not answer the UNCLEAR INTENT AREAS questions, do not draft
the resolved version anyway. Those questions exist because code cannot tell
you why — it records what was built, never what was intended, and the gap
between them is the entire content of a design document. Unanswered items are
carried into the draft verbatim as open questions, in the document, marked
INTENT UNKNOWN — inferred from implementation, not confirmed. An inferred
intent presented as a settled one is the failure mode of this whole skill.
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 |
The design output scales with the workflow tier (resolved in Phase 1):
full— generate a full 8-section GDD.standard— generate a 5-section GDD (Overview, Detailed Design, Edge Cases, Dependencies, Acceptance Criteria; + Formulas when the recovered system defines numeric rules). Skip Player Fantasy and Tuning Knobs.minimal— generate a game brief in the one-page format (.claude/docs/templates/game-brief.md), not a GDD. For the whole game writedesign/game-brief.md; for a single reverse-engineered system writedesign/[system-name]-brief.md.
(architecture and concept outputs are tier-independent.)
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)
Stamp the provenance — required, at the top of every document this skill writes
A document produced here lands at the same path, in the same format, as one a
designer wrote by hand, and every downstream consumer treats the two
identically. /design-review checks it for completeness, /create-epics
derives epics from it, /create-stories turns its lines into acceptance
criteria. Nothing anywhere asks where it came from.
The difference is not cosmetic: an authored GDD states intent, and this one states observed behaviour plus inference. When they disagree, the code is what needs changing in the first case and the document in the second — and a reader cannot tell which they are holding unless the document says.
Emit this immediately under the title:
> **Reverse-documented from implementation** — generated by `/reverse-document`
> from `[path]` on `[date]`, at commit `[short-sha]`.
> This records what the code **does**; intent marked `INTENT UNKNOWN` below was
> inferred, not confirmed by the author. Where this document and the code
> disagree, do not assume the document is the requirement.Keep the banner on revision. If a human later confirms the intent and adopts the document as authored design, removing it is their explicit act — not a side effect of the next edit.
Phase 6: Show Draft and Request Approval
Collaborative protocol:
I've drafted the [system-name] design doc based on your code and clarifications.
[Show key sections: Overview, Mechanics, Formulas, Design Intent]
ADDITIONS I MADE:
- Documented [mechanic] as "[intent]" per your clarification
- Added edge cases not in code (e.g., what if [resource] hits 0 mid-[action]?)
- Flagged balance concern: [scaling type] scaling at [boundary condition]
SECTIONS MARKED AS INCOMPLETE:
- "[System] interaction with [other-system]" (not fully implemented yet)
- "[Variant or feature]" (only [subset] implemented so far)
May I write this to [output path]?Use the tier-correct output path in the prompt: design/gdd/[system-name].md for
a full/standard GDD, or design/[system-name]-brief.md for a minimal brief.
At collaborative — wait for approval; the user may request changes before
writing. At guided — this is a new file, so automation-modes.md:81
still has it asked ("May I write?" is asked for new files only); if the target
already exists, present the diff and proceed without waiting for an explicit
"yes". At autonomous — write and log the decision.
Keep this line scoped to its mode. The skill header defers every file write to
automation-modes.md, so an unconditional "wait for approval" here collides with it at bothguidedandautonomous. Same class as/map-systemsStep 5b.
Phase 7: Write Document with Metadata
When approved, write the file with special markers:
---
status: reverse-documented
source: [path/]
date: [today]
verified-by: [User name]
---
# [System Name] Design
> **Note**: This document was reverse-engineered from the existing implementation.
> It captures current behavior and clarified design intent. Some sections may be
> incomplete where implementation is partial or intent was unclear.
[Rest of document...]Phase 8: Flag Follow-Up Work
After writing, suggest next steps:
✅ Written to design/gdd/combat-system.md
FOLLOW-UP RECOMMENDED:
1. Run /balance-check on combat formulas (exponential scaling concern)
2. Create ADR for stamina system architecture decision
3. Implement missing edge cases:
- Stamina depletion mid-combo behavior
- Stagger state during dodge
4. Extend design doc when weapon variety is implemented
Would you like me to tackle any of these now?Template Selection Logic
| If analyzing... | Use template... | Because... |
<code root>/gameplay/* | design-doc-from-implementation.md | Gameplay mechanics → GDD |
<code root>/core/*, <code root>/ai/* | architecture-doc-from-code.md | Core systems → ADR |
prototypes/* | concept-doc-from-prototype.md | Experiments → concept doc |
<code root>/networking/* | architecture-doc-from-code.md | Technical systems → ADR |
<code root>/ui/* | design-doc-from-implementation.md | UI/UX → design spec |
Example Session: Reverse-Document a System
User: /reverse-document design <code root>/gameplay/[system]
Agent: I'll analyze your [system] implementation to create a design doc.
[Reads code, discovers mechanics, formulas]
Agent: I've analyzed <code root>/gameplay/[system]/. Here's what I found:
[Shows mechanics, formulas, unclear areas]
Before drafting, could you clarify:
1. [Resource] system intent?
2. Is [mechanic] a core pillar?
3. [Value] scaling — intentional or needs tuning?
User: 1. [Resource] is for pacing, prevent [unwanted behavior]
2. [Mechanic] is core — I want [design intent]
3. Yeah, exponential is too much, should be linear
Agent: Perfect, that clarifies the vision. Let me draft the design doc.
[Shows draft with clarified intent]
May I write this to design/gdd/[system-name].md?
User: Yes, write it.
Agent: ✅ Written to design/gdd/[system-name].md
✅ Marked as [REVERSE-DOCUMENTED]
✅ Flagged [value] scaling for rebalancing
Next steps:
- Update [formula] to [corrected scaling]
- Run /balance-check to validate [curve]
- Document [mechanic] as core pillar in game-pillars.mdCollaborative 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".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

