npx skills add ...
npx skills add playableintelligence/game-creator --skill add-feature
Add a new gameplay feature to an existing browser game following its architecture patterns. Use when the user says "add a feature", "add double-jump", "add a power-up", "add a leaderboard", or describes a specific game mechanic to implement. Do NOT use for visual-only changes (use design-game) or replacing shapes with sprites (use add-assets).
npx skills add playableintelligence/game-creator --skill add-feature
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]"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.
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.