bokuwalily/claude-code-skills/phaser-gameobject-property-conflict
Claude Code and agent skill by bokuwalily/claude-code-skills
- community
Checking that the SKILL.md file is still in the repository.
PhaserのGameObject既存プロパティ(state, name, type等)と自作プロパティが衝突してTypeScriptエラーが出たとき
Install
npx vskill@latest install bokuwalily/claude-code-skills/phaser-gameobject-property-conflictSKILL.md
The same SKILL.md was published earlier as bokuwalily/claude-code-skills/phaser-gameobject-property-conflict.
Procedure
- 型チェックを実行してエラー箇所を特定する
``bash npx tsc --noEmit 2>&1 | head -40 ``
- エラーメッセージで衝突プロパティ名を確認する
- 例:
Property 'state' in type 'Bot' is not assignable to the same property in base type 'GameObject' - Phaser の
GameObjectが持つ既存プロパティ:state,name,type,data,active,visible
- 衝突しているプロパティを一括リネームする(例:
state→mode)
``bash sed -i '' 's/this\.state/this.mode/g; s/private state: State/private mode: State/g' src/entities/Bot.ts ` 複数ファイルにわたる場合: `bash find src -name "*.ts" | xargs sed -i '' 's/\bstate: BotState\b/mode: BotState/g; s/this\.state\b/this.mode/g' ``
- 再度型チェックして解消を確認する
``bash npx tsc --noEmit 2>&1 | head -20 ``
Pitfalls
sedのパターンは厳密に書く。this.stateを置換すると Phaser が内部で使う.stateまで壊れる恐れがあるため、クラス内のthis.stateのみ対象にするprivate stateの宣言行とthis.stateの参照行を別パターンで置換することnameは特に衝突しやすい。Sprite等でも継承されているためbotNameのように prefix を付けるのが安全
Verification
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/phaser-gameobject-property-conflict/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bokuwalily/claude-code-skills/phaser-gameobject-property-conflict)