/gamedev-kit:gdd-syncfrom gamedev-kit
Bidirectional sync between a game design document (docs/GDD.md) and game code using ID markers. Detects mismatches, missing, and orphan items, then aligns values in the chosen direction.
Ships in gamedev-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The GDD (docs/GDD.md) and the code record the same facts in two places. Change only one and the other starts lying,
and that lie comes back weeks later as "the doc says 90 seconds, why is it 60?". This skill compares the two and aligns them to one side.
Sync covers only items with an ID in the GDD's Appendix A. Sync table. Tone, dialogue and art direction have no counterpart in code, so they are not handled.
The words below are the ones the script writes. A GDD made before they were English has 부록 A for the heading, 값 · 출처 · 코드 위치 · 상태 · 비고 for the columns
and 동기 · 불일치 · 미구현 · 폐기 for the states — the script reads those the same. Leave such a document's words alone; a state cell the script rewrites comes out in English, and a mixed table is fine.
| Call | Meaning |
|---|---|
/gamedev-kit:gdd-sync | Comparison report only. Changes nothing |
/gamedev-kit:gdd-sync to-code | GDD is the truth. Fix the code of mismatch items to the GDD value |
/gamedev-kit:gdd-sync to-gdd | Code is the truth. Fix the GDD of mismatch items to the code value |
/gamedev-kit:gdd-sync <ID> or /gamedev-kit:gdd-sync to-code BAL.CYCLE.* | Specific items only |
With no direction, produce the report and then ask the user, for each mismatch, which side is right. Whether the design intent changed or the value was changed for convenience during implementation cannot be known from the code alone.
python3 "${CLAUDE_SKILL_DIR}/scripts/sync_report.py"
The script pairs each ID in the table with the GDD: <ID> marker in code and determines the status.
20~25 is synced if the value falls inside.GDD: X but the table has no X. A typo, or a sign that a row must be added to the table.--json output is easier to handle. --only <ID> shows a single item.
Open the code for each synced? item, one by one. If it matches, treat it as synced; if not, as mismatch. Skimming here leaves in place the enum order errors and missing rules the script cannot catch — this is where a human (or Claude) actually adds value in this skill.
missing items are not created, even in to-code mode. Where the matching code should go is a design decision, and this skill is a tool for aligning counterparts that already exist. However, if a natural place already exists (e.g. the balance value file exists and one BAL item is missing), adding one line is fine. The boundary is "does it need a new file or a new system".
to-code: change the value on the marked line to the GDD value. For a range value (20~25), touch the code only if its value is outside the range; leave it if inside.
After changing, check whether anything using that value has derived calculations — if the table's Note says something like "A must equal B+C", align that too.
If the project uses a balance table (xlsx), after fixing the value file also align the table with balance_table.py export (balance-table skill).
to-gdd: change the table's Value column to the code value, and also fix the same number in the body text. Go to the section number in the Source column (e.g. 4.4) and find where the value
appears in prose. Fixing only the table and leaving the body makes the table and body diverge again. Append updated from code YYYY-MM-DD to Note
so that "why this value?" can be answered later.
When a value changes, other items derived from it and computed results in the body (sentences like "about 18 minutes until everything is lost") change with it.
python3 "${CLAUDE_SKILL_DIR}/scripts/sync_report.py" --write
Rewrites the Code location and State columns to the current state. Never touches the Value column — values were judged and fixed in step 3.
synced? is written to the table as synced, so for items judged mismatch in step 2, fix the value before --write or write mismatch in the table by hand.
## GDD sync result
- synced N · mismatch N (→ handled N) · missing N · orphan N
- Changed: <ID>: 50 → 45 (from code; the body of docs/GDD.md 4.4 fixed too)
- Needs a decision: <ID>: GDD 90 / code 60 — looks like a value changed while testing difficulty. Which side is right?
- Missing and needed soon: <ID> (…)
Put the marker on the line that defines the value, not a line that uses it. The script reads = number on the same line, so keep one per line.
Use the engine's comment syntax — the script only looks for the text GDD: <ID>.
Do not put a HUD row's marker on lines that define numeric constants: each such line is compared with the first number in that row's value cell,
so a row marked on several numbers reads as mismatch. And --write does not clear a mismatch that was typed into the table by hand — fix that cell yourself.
static var CREW_START := 12 # GDD: BAL.CREW.START
enum CyclopsState { ACTIVE, EAT, DIGEST } # GDD: ENUM.CYCLOPS_STATE
func _can_stab() -> bool: # GDD: RULE.STAB.WINDOW
Balance.CREW_START = 12 -- GDD: BAL.CREW.START
local CyclopsState = { "Active", "Eat", "Digest" } -- GDD: ENUM.CYCLOPS_STATE
local function canStab() -- GDD: RULE.STAB.WINDOW
public static int CREW_START = 12; // GDD: BAL.CREW.START
public enum CyclopsState { Active, Eat, Digest } // GDD: ENUM.CYCLOPS_STATE
bool CanStab() // GDD: RULE.STAB.WINDOW
A rule (RULE.) goes above the function or branch that decides it. An input (INPUT.) goes on the config or code that maps the input.
gdd-sync.code_ext in kit.config.json sets which extensions are scanned.
If a new item was created in code first, add a row to the GDD table and write one line in the body too. Name the ID in category.target.attribute form,
alongside existing ones. Never change an ID once assigned — it is embedded in both code and document, so changing it means fixing both.
When an item goes away, do not delete the row; write its State as retired.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dudwns0921/claude-gamedev-kit --plugin gamedev-kit9 skills in this plugin
/balance-tableKeeps the balance table (data/balance.xlsx) — an Excel sheet where the game's balance numbers are seen at a glance — in step with the balance value file in code, which is what the game runs on. Code → table (export; a hook does it whenever the value file changes), table → code (bake), are they equal (check). Engine-agnostic (kit.config.json sets the shape of a value line). Use when the user says "밸런스 표" ("balance table"), "엑셀" ("Excel"), "표 구워줘" ("bake the table"), "bake", "표랑 코드 맞춰" ("align the table and the code"), "표 보여줘" ("show me the table"); the user says they changed a number in the table (bake → gdd-sync to-gdd); the table does not exist yet or looks out of date (export); before making a build that goes out to players (check)./boardDraws the game's status board — HTML pages made by a script. First screen: the cycle in hand (its goal in one line, where it stands, its tasks, what waits on the user), then the stages of play in the order the player meets them, each with what is still open in it (problem · not made · placeholder · to judge), counts of what is left. A card opens that stage's page: GDD rows, art, sounds, checks, open questions, the cycle tasks that touched it. Everything is read from the GDD table, the asset folders, cycle and playtest documents. Once drawn, it redraws itself as the documents change — a hook runs the script, no model involved. Use when the user says "현황판" (status board), "보드 보여줘" (show me the board), "지금 어디까지 됐어" (how far along are we), "진행 상황 한눈에" (progress at a glance), "얼마나 만들었어" (how much is made), asks to see progress or the decisions so far as a page, or says the board looks stale or wrong. Also the review page — what waits on the user with a button per answer (decisions, the one thing per built cycle only the user can judge) — and the private claude.ai link that carries board and review to a phone: use when the user says "리뷰 페이지" (review page), "폰으로 보게 해줘" (let me see it on my phone), "링크로 올려줘" (put it on a link), "답 달았어" · "답 읽어줘" (I answered · read the answers). And the dashboard — every game on this machine on one page, run locally: "대시보드 띄워줘" (start the dashboard), "현황판 서버" (board server), "게임 다 같이 보자" (all games together). And the play route — the game's screens shot along one route at the end of every build, seen build by build in the dashboard's Play tab: "플레이 캡처" (play captures), "화면 기록" (screen history), "경로 찍어줘" (shoot the route), "캡처 어떻게 바뀌었어" (how have the screens changed)./ceoRuns a game's cycles for the user in the background — several at once, one headless Claude Code run (a worker) per step — while the user only decides and plays. This window coordinates: it proposes the next goals, starts workers for the cycles that can move, takes the dashboard's answers, and keeps the build turn and the commits in order. It decides nothing: every question stays a decision for the user, on the dashboard. Use when the user says "CEO", "알아서 돌려줘" (run it for me), "사이클 자동으로" (cycles automatically), "병렬로 돌려" (run them in parallel), "뒤에서 진행해" (go on in the background), "다음 뭐 하지" (what next) in a game where they want the cycles run for them; when the first cycle's goal is agreed (the start skill hands over here); when a session starts in a game the CEO runs (its session-start notice says so) and the user says "계속" · "이어서" (go on); or when this window was started for it and is woken by answers or by a worker ending. Not for working on one cycle by hand in this window (→ cycle)./cycleDrives one game-dev cycle — Goal → Spec → Design → Plan → Build → Play — through a single document (docs/cycle/). Systems designer, designer and developer agents work stage by stage; every decision goes back to the user. Use when the user states a bundle of goals ("이번 사이클", "다음 버전 만들자", "이번엔 ○○ 를 넣자" — "this cycle", "let's make the next version", "this time let's add ○○"); says "사이클 이어서", "다음 단계", "어디까지 했지" ("continue the cycle", "next stage", "where were we"); answers a decision ("D2 는 ①로", "D2 is ①"). Also how work crosses sessions — the document holds the state, so there is no separate handoff note: use when the user says "세션 바꾸자", "새 세션에서 이어가자", "인계 메모 남겨줘", "여기까지 정리해줘" ("let's switch sessions", "let's continue in a new session", "leave a handoff note", "wrap up where we are"), or in a new session "이어서 하자", "아까 하던 거" ("let's continue", "what we were doing"). And several cycles at once, one per session — "다른 세션에서 사이클 하나 더", "동시에 돌리자", "병렬로" ("another cycle in another session", "run them at the same time", "in parallel"). Not for one-line fixes. Not in a game the CEO runs (its session-start notice says so) — there "이어서" · "계속" go to the ceo skill, unless the user asks to work on a cycle by hand./feedbackKeeps the user's own rules — what their games taught that would trip them again (a trap, a way to verify), one line each, on this machine and loaded into every game of theirs — and sends them to the kit's repository as GitHub issues, so the kit grows from every game that uses it. Rules are written where the game trips (add), go to the kit by themselves once the user has said so (auto · push), or when the user sends them (preview · send); a script blocks anything that names a game or a date. When the kit has taken a rule in (its issue closed as completed), the user is asked whether to drop their copy. Use when a cycle · playtest step writes down a lesson (add); when the user says "내 규칙 보여줘" ("show my rules"), "이건 내 규칙으로" ("make this one of my rules"), "내 규칙에서 빼줘" ("drop it from my rules"), "피드백 보내줘" ("send the feedback"), "키트에 올려줘" ("send it up to the kit"), "배운 거 올리자" ("let's send what we learned"), "이슈로 올려줘" ("open it as an issue"); also turns the user's ways of working — how they make things, the tools · services · MCP servers they use — into their own skills on this machine, never sent: "앞으로 에셋은 이렇게 만들자" ("from now on, make assets like this"), "이 MCP 로 만들어" ("make it with this MCP"), "내 방식으로 기억해줘" ("remember this as how I do it"); when the session-start notice asks how rules go to the kit, or says some are held back. Not for a problem in the game itself./initSets a game repo up for gamedev-kit, from an empty folder if need be: asks where the game will be played (a phone · a computer · a browser — one or several) and so which engine (the editor and the engine project are made with the engine's own tools), then installs the files the kit uses — engine config (kit.config.json), GDD template, CLAUDE.md rules, the balance value file, the engine's other template files, the engine's .gitignore lines. Ends by offering the dashboard of all games (one question, only where Node.js is) and goes on into the GDD with what the user said about the game. Also aligns the kit rules in CLAUDE.md after the kit bumps its version (rules). Use when starting a new game — "이런 게임 만들고 싶어" ("I want to make a game like …"), "게임 만들자" ("let's make a game") in a folder without kit.config.json — on "gamedev-kit 깔아줘" ("install gamedev-kit"), "엔진 프로젝트 만들어줘" ("create the engine project"), "키트 규칙 맞춰줘" ("align the kit rules"), "init rules", "GDD 동기화 세팅" ("set up GDD sync"), "밸런스 표 세팅" ("set up the balance table"), or when gdd-sync, balance-table or start says it cannot find kit.config.json.Other plugins' skills for the same job