From game-creator
Adds new gameplay features like double-jump, power-ups, or leaderboards to existing Three.js or Phaser browser games, following EventBus and GameState patterns.
npx claudepluginhub opusgamelabs/game-creator --plugin game-creatorThis skill uses the workspace's default tool permissions.
- Take your time to do this thoroughly
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Add a new feature to your game. Just describe what you want in plain English — for example, "add a double-jump power-up" or "add a high score leaderboard" — and the feature will be built following your game's existing patterns.
The user wants to add: $ARGUMENTS
package.json to identify the engine (Three.js or Phaser)src/core/Constants.js for existing configurationsrc/core/EventBus.js for existing eventssrc/core/GameState.js for existing statesrc/core/Game.js (or GameConfig.js) for existing system wiringBefore writing code, explain the plan in plain English:
Then determine what's needed technically:
Follow these rules strictly:
src/ subdirectoryEventBus.js Events enumConstants.js (zero hardcoded values)GameState.jsGame.js (import, instantiate, update in loop)npm run build to confirm no errorsCause: New code conflicts with existing EventBus events or GameState fields. Fix: Check for event name collisions in EventBus.js. Ensure new state fields have defaults in GameState.reset().
Cause: Modified shared constants or collision groups. Fix: Add new constants rather than changing existing ones. Test original gameplay after changes.
Tell the user:
npm run dev and try [specific action]"/add-feature add a speed boost power-up that spawns randomly
Result: Creates src/entities/PowerUp.js, adds POWER_UP events to EventBus, adds spawn timing and duration to Constants.js, wires into Game.js. Player collects power-up → speed doubles for 8 seconds.
/add-feature add combo multiplier that increases when you score quickly
Result: Adds comboMultiplier and comboTimer to GameState, creates combo logic in scoring system, adds COMBO_CHANGED event for UI updates.
You can run this command as many times as you want to keep adding features. Each one builds on the last.
When you're happy with the gameplay, run
/game-creator:design-gameto polish the visuals,/game-creator:add-audiofor music and sound effects, or/game-creator:review-gamefor a full quality check.