agentleFS
Google CloudKnown publisherGoogleCloudPlatform/devrel-demos/other/antigravity-arcade/games/.agents/skills/improving-game-quality/SKILL.md

improving-game-quality

Skill378 starsChanged 4 months agoApache-2.0View on GitHub

Ensures games created have a good quality user experience and follow best practices. Use when creating or modifying a game.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow these steps when creating or modifying a game:

    line 8
  2. Distinctive:

    Ensure the UI (text, score, lives, etc) is always rendered with a margin within the view port of the game screen – not flush to the edges.

    line 11
  3. Distinctive:

    Ensure the game loop is always running and that the game is always in a state where it can be played.

    line 14
  4. Distinctive:

    Ensure the game loop always contains a reachable "lose" condition.

    line 15
  5. Distinctive:

    Ensure the game always has some kind of background particle that makes sense for the game world (e.g.

    line 18
  6. Distinctive:

    Ensure the game always has some kind of screen shake when things happen (e.g.

    line 21
  7. Distinctive:

    Use smaller particles for less significant events (e.g.

    line 25
  8. Distinctive:

    Use larger particles for more significant events (e.g.

    line 26
  9. Distinctive:

    If useful to explain the game's objective, the objective may be improved to include the new behavior.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Game Quality

Follow these steps when creating or modifying a game:

  1. UI placement: Ensure the UI (text, score, lives, etc) is always rendered with a margin within the view port of the game screen – not flush to the edges.
  2. Game loop:
    • Ensure the game loop is always running and that the game is always in a state where it can be played.
    • Ensure the game loop always contains a reachable "lose" condition.
  3. Background visuals: Ensure the game always has some kind of background particle that makes sense for the game world (e.g. stars in space, rain in a city, wind in a forest, etc.)
  4. Game feel: Ensure the game always has some kind of screen shake when things happen (e.g. explosions, collisions, etc.)
  5. Apply particle effects:
    • Whenever enemies are destroyed, explosions should occur. Use the particle emitter to spawn particles at the location of the explosion. Limit the number of particles to 5-10.
    • Use smaller particles for less significant events (e.g. bullet hitting a wall, or character landing on the ground in a platformer).
    • Use larger particles for more significant events (e.g. enemies being destroyed, or character dying).
  6. Update Game config.json: The game's config.json, found in the game's root folder (e.g. <game-folder>/config.json) contains a controls section that defines the labels for buttons A, B, X, and Y. These arew the only 4 buttons allowed in the config.

When the game is created or modified, this config.json file should be updated to reflect the correct labels for each button. For example, if a code edit adds business logic so that the B enables the player to jump, set the label to "Jump". Labels must be short and limited to one word, or two words at most and MUST be an action (e.g. "Jump", "Run", "Fire", "Crawl", "Climb", etc.). There is limited space where the label will render in the UI so it must remain short.

If useful to explain the game's objective, the objective may be improved to include the new behavior.

Example:

{
  "title": "Space Pilot",
  "objective": "Navigate your spaceship while evading obstacles. Destroy them for points.",
  "controls": {
    "A": "Shoot",
    "B": "Evade",
    "X": "Roll Ship",
    "Y": ""
  }
}

Verification

  • Game has UI layer with score and lives
  • Game has a valid game loop
  • Game has background particles (e.g. stars, rain, etc.)
  • Game has a screen shake effect
  • Game emits particles for effects (e.g. collisions, explosions, etc.)
  • Updated config.json if necessary

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.