Runner new

From KhaiTrang1995/agentic-awesome-kits · View interactive version

Runner new is an AI agent skill from the GitHub repository KhaiTrang1995/agentic-awesome-kits. Scaffold a new endless-runner game folder from a control template (ski|moto|ski-side|wing|loop). Trigger `/runner-new <slug> --template <id>`.

How to use this skill

Skill file

/runner-new — Scaffold a game

Goal

Create games/{slug}/index.html + game.js from the closest demo/template, with unique storage keys and themed CSS variables.

Input examples

/runner-new skate --template wing --title "SKATE RUSH"
/runner-new toboggan --template ski
/runner-new night-lane --template moto --title "NIGHT LANE"

Process

  1. Resolve --template (required). Unknown → list ids and stop.
  2. Slugify name; refuse if games/{slug}/ already exists unless user confirms overwrite (L2).
  3. L1 plan — list files (@../../rules/approval-gate.md).
  4. Copy structure from:
  1. Replace title, CSS --accent / --bg, storage keys ({slugcompact}-scores, -best, -name).
  2. Ensure game.js imports from ../../kit/index.js (or correct relative path).
  3. Report next steps: npm run dev, open /games/{slug}/, optional hub card.

Output

games/{slug}/
  index.html
  game.js

Mandatory rules

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.