/phaser4-gamedev:phaser-gdd runs instead · from phaser4-gamedev
Generates a structured 13-section Game Design Document for Phaser 4 games, covering mechanics, art, audio, progression, and technical constraints. Useful when planning a game before coding.
This skill never runs in Claude Code
It ships in phaser4-gamedev at skills/, but /phaser4-gamedev:phaser-gdd (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Generate a comprehensive Game Design Document (GDD) for a Phaser 4 game. The GDD captures every design decision — mechanics, art, audio, progression, technical constraints — in a single Markdown file so the entire team (or solo dev) has a shared reference before any code is written.
Every generated GDD must include all 13 sections below. If the user has not specified details for a section, provide sensible defaults based on the genre and scope, and mark assumptions with <!-- ASSUMPTION --> so they are easy to find and revise.
Establish the identity of the game at a glance.
Include:
Define the repeatable cycle that keeps the player engaged.
Include:
Present each loop as an ASCII flow diagram:
[Action] --> [Feedback] --> [Reward] --> [Decision] --+
^ |
+--------------------------------------------------+
Detail every interactive system the player touches.
Include:
| Action | Keyboard | Touch | Gamepad |
|---|---|---|---|
| Move | WASD / Arrows | Virtual joystick | Left stick |
| Jump | Space | Tap right side | A button |
Describe how difficulty, content, and rewards evolve over time.
Include:
Plan the spatial structure of the game.
Include:
[Level 1] --> [Level 2] --> [Level 3]
|
+--> [Bonus Level A]
Catalog every game object with gameplay-relevant detail.
Include:
| Enemy | HP | Speed | Behavior | Attack | Drop |
|---|---|---|---|---|---|
| Slime | 1 | 40px/s | Patrol left-right | Contact damage | Coin (50%) |
Define every screen the player sees.
Include:
+---------------------------------------+
| [Lives: x3] [Score: 00000] |
| |
| |
| GAME AREA |
| |
| |
| [Item1] [Item2] [Item3] [Pause] |
+---------------------------------------+
[Title Screen] --> [Main Menu] --> [Play] --> [Level Select] --> [Game]
| |
+--> [Settings] [Pause Menu]
+--> [Credits] |
[Game Over] --> [Main Menu]
Establish the visual identity and asset pipeline.
Include:
| Role | Hex | Usage |
|---|---|---|
| Primary | #3A86FF | Player, UI highlights |
| Secondary | #FF006E | Enemies, danger |
| Background | #1B1B2F | Sky, menus |
FIT, RESIZE, etc.), pixel-perfect flag.| Asset | Type | Size | Frames | Format |
|---|---|---|---|---|
| player_idle | Spritesheet | 32x32 | 4 | PNG |
| background_forest | Static | 800x600 | 1 | PNG |
Define the soundscape.
Include:
| Scene | Mood | Tempo | Loop? |
|---|---|---|---|
| Main Menu | Mysterious, inviting | 90 BPM | Yes |
| Level 1 | Upbeat, adventurous | 120 BPM | Yes |
| Boss Fight | Intense, urgent | 150 BPM | Yes |
| Game Over | Somber, reflective | 70 BPM | No |
| Action | Sound Description | Priority |
|---|---|---|
| Player jump | Short airy whoosh | High |
| Coin collect | Bright chime ascending | High |
| Enemy hit | Soft thud + squish | Medium |
Pin down the Phaser-specific technical decisions.
Include:
phaser (v4.2.1 stable) unless the user specifies otherwise.Specify where the game will run and how input differs.
Include:
| Platform | Primary Input | Secondary Input |
|---|---|---|
| Desktop | Keyboard + Mouse | Gamepad |
| Mobile | Touch | Gyroscope (optional) |
| Tablet | Touch | Bluetooth gamepad |
Include this section only if the user wants to discuss business aspects. Mark it optional in the output.
Include:
| Milestone | Target Date | Deliverable |
|---|---|---|
| Prototype | Week 2 | Core loop playable |
| Alpha | Week 6 | All levels blocked out |
| Beta | Week 10 | Feature-complete, playtesting |
| Launch | Week 14 | Polished, deployed |
Every other section describes intent. This one is the only part a machine can check, and it is what turns the GDD from a document into a specification.
Write each criterion so that it is observable, numeric, and false when the game is wrong. "The player should feel powerful" is not a criterion. "A charged attack deals 3× base damage" is.
Derive criteria directly from Sections 3 (Mechanics), 4 (Progression), and 6 (Entities) — anywhere the design commits to a number, that number is a criterion.
| Criterion | Observable state | Playtest assertion |
|---|---|---|
| Player jumps 3 tiles (96px) high | player.y at apex | player.y, atMost: spawnY - 96 |
| Basic enemy dies in 3 hits | enemy.active | press attack ×3, then enemy.active, equals: false |
| Score persists into GameOver | registry.get('score') | transition, then atLeast: 10 |
| Coyote time is 100ms | jump succeeds after leaving ledge | walk off, wait 80ms, jump → body.velocity.y < 0 |
| Wave 5 spawns 12 enemies | active enemy count | set wave, then enemies.countActive(true), equals: 12 |
| Holds 60fps with 50 entities | game.loop.actualFps | spawn 50, then atLeast: 55 |
| Boot reaches menu in under 3s | scene key at t=3s | game.scene.isActive('MainMenuScene'), equals: true |
Group criteria under the milestone that must satisfy them:
### Vertical Slice
- [ ] Player spawns at level start and responds to left/right/jump within 1 frame
- [ ] Falling off the map triggers respawn at the last checkpoint within 500ms
- [ ] Collecting a coin increments score by 10 and plays the pickup sound
### Alpha
- [ ] All 8 levels load without console errors
- [ ] Enemy AI pathfinds around static geometry (no wall-clipping over 30s)
Mark anything genuinely subjective as such rather than inventing a fake metric:
### Human review required (not automatable)
- Difficulty curve across levels 1-8 feels fair to a first-time player
- Art reads clearly against every background
- Audio mix is balanced at 50% volume
Save these to docs/acceptance-criteria.md alongside the GDD. The phaser-playtest
skill turns each automatable criterion into a scenario assertion, which is how the
design gets verified rather than merely stated.
Once the GDD is finalized, guide the user to the next steps:
/phaser-new custom reads this GDD to choose physics, resolution and pixel-art settings, and verifies the scaffold boots, plays and builds.docs/ARCHITECTURE.md: scene graph, state plan, and numbered phases, each with observable exit conditions drawn from Section 13./phaser-dev implements one phase at a time: exit conditions become failing playtest scenarios first, then code until they pass, then they stay as regression tests./phaser-playtest at any time; Section 13's automatable criteria are now assertions, which is how the design gets checked rather than merely stated./phaser-release runs the readiness gate and prepares the store presence./phaser-feedback turns their reports into failing playtest scenarios, then fixes, then regression tests.If the user arrived here without a sharpened concept — a genre rather than a hook, or a scope that has not been sized against their available time — send them to /phaser-brainstorm first. A GDD written around an unscoped idea documents a project that will not finish.
Remind the user: the GDD is a living document. Update it as the game evolves during development.
The generated GDD must be a single Markdown document with:
# Game Design Document: [Title] heading.## Section N — Name headings.<!-- ASSUMPTION --> comments next to any detail the generator inferred rather than received from the user.Save the document to docs/GDD.md in the project root. If no project directory exists, print the full GDD inline in the chat.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
game-design-document, gdd, phaser-4, game-planning, game-mechanics
npx claudepluginhub yakoub-ai/phaser4-gamedev --plugin phaser4-gamedev26 skills in this plugin
/phaser-analyzeThis skill should be used when the user asks to "analyze my game", "review my Phaser project", "audit project health", "find bottlenecks", "refactor my game", "improve my code", "optimize my project", "what's wrong with my game", "code review Phaser", or "assess architecture"./phaser-animationThis skill should be used when the user asks to "create animation", "animate sprite", "add tweens", "sprite animation not playing", "character animations", "easing", "tween timeline", "idle animation", "walk animation", "fade in", "fade out", or "scale animation"./phaser-architectThis skill should be used when the user asks to design a Phaser 4 game, plan game architecture, structure scenes, organize game state, define scene flow, choose module boundaries, or review/refactor an existing Phaser project architecture before implementation.Other plugins' skills for the same job