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…
от PlayableIntelligence★ 383 звезды на GitHubОб этом скилле
Performance Notes
- Take your time to do this thoroughly
- Quality is more important than speed
- Do not skip validation steps
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.
Instructions
The user wants to add: $ARGUMENTS
Step 1: Understand the codebase
- Read
package.jsonto identify the engine (Three.js or Phaser) - Read
src/core/Constants.jsfor existing configuration - Read
src/core/EventBus.jsfor existing events - Read
src/core/GameState.jsfor existing state - Read
src/core/Game.js(or GameConfig.js) for existing system wiring - Read existing scene and gameplay files to understand what's already built
Step 2: Plan the feature
Before writing code, explain the plan in plain English:
- What it does: Describe the feature from the player's perspective
- How it works: List the new files, events, and settings that will be created
- What it touches: List existing files that need small changes to wire in the feature
Then determine what's needed technically:
- New module file(s) and where they go in the directory structure
- New events to add to the Events enum
- New constants to add to Constants.js
- New state to add to GameState.js
- How to wire it into the Game orchestrator
Step 3: Implement
Follow these rules strictly:
- Create the new module in the correct
src/subdirectory - Add ALL new events to
EventBus.jsEvents enum - Add ALL configuration values to
Constants.js(zero hardcoded values) - Add any new state domains to
GameState.js - Wire the new system into
Game.js(import, instantiate, update in loop) - Use EventBus for ALL communication with other systems
- Follow the existing code style and patterns in the project
Step 4: Verify
- Run
npm run buildto confirm no errors - Confirm the feature integrates without breaking existing systems
- Check that no circular dependencies were introduced
- Ensure event listeners are properly cleaned up if applicable
- Summarize what was added in plain English
Troubleshooting
Game breaks after adding feature
Cause: 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().
Feature works but breaks existing gameplay
Cause: Modified shared constants or collision groups. Fix: Add new constants rather than changing existing ones. Test original gameplay after changes.
Output
Tell the user:
- What the feature does (from the player's perspective)
- What files were created or changed
- How to test it — "Run
npm run devand try [specific action]"
Example Usage
Adding a power-up
/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.
Adding a scoring mechanic
/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.
Tips
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.
Установить add-feature в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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).
Как установить скилл add-feature?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-feature запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic