Build and review bracket-lib style Rust 2D game loops, state structs, game modes, input handling, rendering calls, and restart flow.
SkillScore91Maintained
Automatic
◆Coding pack
Last verified 8/16/2026
What it changes
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
Without skill82%
With skill91%
Checks it passed that the model alone missed
The game state uses an enum to route different game modes.
The implementation includes a restart path for the game state.
The response advises inspecting Cargo.toml, edition, engine, and existing architecture before changing dependencies.
2 fixed18 passed either way2 still failing0 broke
Pass-rate lift
+9 pp
Tokens
-16%
Agent turns
0%
Response time
-25%
Model gemini-3.6-flashMeasured 8/16/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 2
Prompt
I want to convert my command-line Rust project into an interactive 2D terminal game. Should I immediately add new dependencies and rewrite main() to handle frames, or what initial check should be done first?
What was checked, without and with the skill
Checked
Without skill
With skill
The response advises inspecting Cargo.toml, edition, engine, and existing architecture before changing dependencies.
Missed
Passed
case-05 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md28 lines2 files
Rust Bracket Game Loop
Use this skill to create or review a small Rust game loop, especially one built
with bracket-lib and an explicit game state. Keep tick as a coordinator:
read input, advance state, render, and dispatch to small helper functions.
Core Workflow
Inspect the target project's Cargo.toml, edition, engine, and existing
architecture before changing dependencies.
Create one state object that contains data preserved between frames.
Implement the engine trait or callback required by the project.
Route modes through an enum rather than scattered booleans.
Keep rendering and state mutation ordered and easy to trace.
Add a restart/reset path before adding many gameplay states.
Read Next
Read references/game-loop-patterns.md for setup patterns, code skeletons,
mode routing, and review checks.
Source Notes
Guidance is transformed and paraphrased from Hands-On Rust Chapter 3 and
the official companion source repository. Current crate context was checked
against bracket-lib documentation on docs.rs and the bracket-lib example
repository. Verify the target project's dependency versions before copying API
details.