bokuwalily/claude-code-skills/phaser-gameobject-property-conflict

Claude Code and agent skill by bokuwalily/claude-code-skills

Trust tier 2
  • community
LLM review pending
Source check pending

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-conflict

SKILL.md

The same SKILL.md was published earlier as bokuwalily/claude-code-skills/phaser-gameobject-property-conflict.

Procedure

  1. 型チェックを実行してエラー箇所を特定する

``bash npx tsc --noEmit 2>&1 | head -40 ``

  1. エラーメッセージで衝突プロパティ名を確認する
  • 例: Property 'state' in type 'Bot' is not assignable to the same property in base type 'GameObject'
  • Phaser の GameObject が持つ既存プロパティ: state, name, type, data, active, visible
  1. 衝突しているプロパティを一括リネームする(例: 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' ``

  1. 再度型チェックして解消を確認する

``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

bash
npx tsc --noEmit 2>&1 | grep -c "error TS"
# → 0 であれば解消

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bokuwalily/claude-code-skills/phaser-gameobject-property-conflict/badge)](https://verified-skill.com/skills/bokuwalily/claude-code-skills/phaser-gameobject-property-conflict)

Something wrong with this skill or its page? Tell us.