design-mechanic is a skill from the Summer skill library: a guide your AI agent reads when the task matches, so it builds the good version on the first try. Design one mechanic in detail (input, feedback, failure modes, tunables) as a doc plus a script stub.
When your agent uses it
- Designing one specific game mechanic in detail — input, response, feedback, failure modes, depth, tunables
- Add a grappling hook, dash, double jump, wall run, or parry
Install
summer setup installs every skill for your agent. To add only this one:
claude-code for your agent, such as codex or cursor. See Skills for every option.
The skill
Overview
A “mechanic” is a verb the player performs that produces a meaningful response from the world. Not a system. Not a feature. A verb with feedback. This skill walks the five layers of a real mechanic: input → response → feedback → failure modes → depth — then drops a node-graph sketch + GDScript stub into the project so the next session can implement it. Core principle: a mechanic is only as good as its weakest feedback layer. A perfect parry with no audio cue is broken. A great audio cue with floaty input is broken. Walk all five layers before scaffolding.Steps
1. Pin which mechanic
Ask exactly one question and wait:Which mechanic? (e.g., “double-jump”, “parry”, “stamina-dash”, “pickup”, “lock-on”, “crafting-recipe-craft”).If the user gives a system name (“inventory”, “combat”), push back:
Inventory is a system, not a mechanic. The mechanics inside it are: pickup, equip, drop, use, swap. Which one?
2. Read context if available
If.summer/GameSoul.md exists, read it. The mechanic should fit the game brief, not exist in isolation.
Brief says core loop is “see obstacle, attempt, fail, learn, retry”. A double-jump only matters if it changes which obstacles are reachable. Confirm that’s what we’re solving.
3. Walk the five layers — one at a time
Layer 1: Input. Exactly what does the player press, hold, release, time? State a candidate, ask for refinement:Input candidate: tap Space mid-air. Or: hold-and-release for variable height? Or: requires direction + Space? Pick one.Layer 2: Response. What changes in the world the moment the input fires? State the deltas. For double-jump:
Response: vertical velocity set to (jump_velocity * 0.85). _can_double_jump flag flips false. Visual rig plays “jump_2” anim. Audio cue. Particle burst at feet.
Layer 3: Feedback — and this is where most amateur designs collapse. Three sub-channels, all required:
Force the user to answer all three. If they hand-wave one, name it:
You named visual and audio. Mechanical-feel is missing — what makes the second jump feel different from the first beyond just being a second one?Layer 4: Failure modes. What happens when the input fires but conditions aren’t met? For double-jump:
- Already used? → no input registered? Or denied with a UI shake? Or a small audio cue?
- During wall-slide? → does it count as airborne or grounded?
- During cutscene? → is input gated entirely?
- Spammed input? → buffered or ignored?
Failure rules: (a) already-used → silent ignore. (b) during wall-slide → counts as airborne, can double-jump off wall. (c) cutscene → input fully gated. (d) spam → input buffer of 0.1s. OK?Layer 5: Depth. What makes this mechanic interesting after 5 minutes of play? This is the hardest layer. State the depth-vector explicitly:
Depth: double-jump becomes interesting when level design forces a choice — jump now to clear obstacle A, or save it to escape enemy B coming at you. Without that choice, it’s just a longer jump. The level-design implication: every double-jump gap should pair with a near-future threat that also wants the resource.If the user can’t articulate depth, the mechanic might not be needed. Say it:
If the only purpose is “can reach higher platforms”, that’s just a higher-jumping single-jump. Either change the input shape (give it a cost), or cut it.
4. List the tunables
Every mechanic has 3-7 numbers a designer will tweak. Name them. For double-jump:@export vars in the stub. The user tunes in the inspector, no recompile.
5. Sketch the node graph
Describe what nodes the mechanic touches in the existing scene. Don’t add yet — sketch first.Node-graph plan above. May I addDoubleJumpFXandJumpAudioto./World/Player, and modifyplayer_controller.gdto add the double-jump logic?
6. Scaffold via MCP
Preferred (Summer MCP):scenePathis required onsummer_add_node,summer_set_propandsummer_save_scene. It names the exactres://scene; there is no “current scene” default.summer_set_proptakes namedpath/key/value— not positional.summer_input_map_bindevents are dicts.{"type": "key", "key": "Space"}works; key names go through the engine’s keycode table, soW,Space,Shift,Escaperesolve and typos silently produce no event.summer_get_script_errorschecks one file and requirespath. Usesummer_get_diagnostics()(no args) for a project-wide check.
.tscn snippet for the user to paste:
7. Write the GDScript stub
Stub only — implementation is the next session. Typed GDScript throughout (seegdscript-patterns). For double-jump:
May I write scripts/player_controller.gd (or merge into the existing script if one is attached)?
8. Save the design doc
Always write the design doc — it’s the artifact the next session reads. Path:.summer/mechanics/<mechanic-name>.md.
May I create .summer/mechanics/double-jump.md with this design doc?
Common mistakes
Collaborative protocol
This skill writes scene nodes and one or more files (.gd, .summer/mechanics/<name>.md). Group writes into one ask per phase.
Want a working starter?
For full character mechanics in a runnable starter:- FPS variant →
summer create 3d-fps-old-school - Platformer →
summer create 3d-third-person-controller(jump-capable character; no dedicated 3D platformer template yet)
See also
brainstorm-game— produces.summer/GameSoul.mdthis skill readsdesign-level— design the levels that exercise the mechanicfps-controller— FPS movement scaffoldinggdscript-patterns— state machines and other script patterns for complex mechanicsaudio-direction— defines the SFX vocabulary the mechanic draws from
From a shell
No Summer MCP tools in this session? Run each one as a command; whensummer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.
Related skills
audio-direction: Define the game’s sound (music style, SFX vocabulary, dynamic music) as .summer/audio-bible.md.fps-controller: First-person controller: WASD, mouse look, jump, coyote time, jump buffering, air control.design-level: Design one level (layout, pacing, encounters, secrets) as a design doc plus a node-tree skeleton.brainstorm-game: Turn a vague game idea into a 1-page brief (genre, scope, core loop, mechanics) in .summer/GameSoul.md.gdscript-patterns: GDScript conventions: type hints, signals, exports, onready, lifecycle methods, node paths, naming.
Source:
library/skills/design-mechanic/SKILL.md, rendered from summer-engine@4.3.0 on npm.
