build-game-monster-system
できること
このスキルは、Three.jsアクションゲーム用の敵のクリーチャーを、ゲームプレイに使える素材として作る作業をエージェントに案内します。信頼できるヒットボックス、攻撃のタイミング、共通の構造を持つモンスターを作りたいゲーム開発者向けです。
使う場面
- ✓ゲームに、リグ、ヒットボックス、攻撃アニメーションを持つ新しいモンスターが必要なとき。
- ✓モンスターが、戦闘ルールと合わない飾りのメッシュになっているとき。
- ✓既存のモンスター群を、一つの共通の構造に従わせる必要があるとき。
スキルのリンク
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-monster-system/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のゲーム用に、ヒットボックス、爪攻撃、他のモンスターと共有できる構造を持つ、リグ付きのオオカミのモンスターを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、モンスターの事実、リグ、実行時の状態、見た目を分けるので、命中は見えているポーズではなく、ゲームの戦闘ルールで決まります。各モンスターを同じ契約に照らして確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Build Game Monster System
Build monsters as gameplay-compatible runtime assets, not decorative meshes.
Establish the contract
Read references/monster-contract.md before implementation or audit. Check the real game content model, combat events, enemy state machine, collision API, camera distance, and asset loader before extending the contract.
Use related skills when applicable:
- Use
img2threejsfor image-driven procedural reconstruction and its staged visual gates. - Use
build-hybrid-game-assetsto choose procedural versus imported representation and record provenance/budgets. - Use
tune-enemy-aifor perception, intent, movement, and behavior transitions. - Use
design-action-combatfor startup/active/recovery timing and authoritative contact.
Separate four layers
MonsterDefinition: serializable authored facts, tags, scale, stats, attacks, locomotion, asset provenance, and budgets.MonsterRig: semantic transform hierarchy, joints, sockets, secondary-motion anchors, materials, and LOD visuals.MonsterRuntime: current state, timers, target intent, health/posture, cooldowns, and authoritative combat events.MonsterViewAdapter: drives rig poses, VFX, audio, visibility, and LOD from runtime state; never decides hits from rendered pose.
Do not duplicate authored combat values in the rig or UI.
Build the rig
- Use
+Yup,+Zforward, meters, and a ground-contact root. - Keep
root -> motion -> bodystable across every monster and LOD. - Parent limb segments as real joint chains so shoulder/hip motion propagates through elbows/knees to wrists/ankles.
- Name semantic equivalents for nonhumanoids; do not fake absent anatomy.
- Provide sockets for attack origins, VFX, audio, targeting, ground contact, attachments, and death effects.
- Keep visual meshes out of physics by default. Provide simple solid, navigation, hurt, attack, and trigger shapes separately.
- Preserve root, joints, sockets, collision, and animation state across LOD changes.
Connect behavior and combat
Support at least idle, investigate, pursue, reposition, windup, attack, recover, stagger, and defeated. Each attack definition must declare startup, active, recovery, cooldown, contact shape/socket, damage/posture output, facing rule, and interrupt/cancel policy.
Drive contacts from authoritative action IDs and collision events. Animation may expose a normalized phase, but it must not create damage by itself.
Compose testable movesets
- Author movesets as serializable sequences of intent states and attack IDs. Keep attack timing in the attack definitions; the moveset references it instead of copying it.
- Compile attack steps into explicit startup, active, and recovery phases.
- Provide a pure sampler from
(movesetId, elapsed)to state, attack, normalized phase, active flag, interruptibility, and stable action ID. - Give every loop cycle a new action ID while preserving one ID across an attack's startup, active, and recovery phases.
- Expose queryable or seeded fixtures for the midpoint and boundaries of every phase so reviewers can freeze and reproduce them without campaign playthrough.
Verify conformance
- Add deterministic fixtures for all required states, each attack phase, interrupt/stagger, death, LOD switching, and reset.
- Test moveset timeline continuity, exact active-window boundaries, full attack coverage, per-action ID stability, and per-loop ID renewal.
- Test joint propagation, socket stability, collider coverage, single-contact idempotence, and disposal.
- Render the monster at real encounter distance in the in-app browser.
- Measure triangles, draw calls, textures, frame time, and mobile pixel-ratio behavior.
- Fail the asset if it has floating attachments, missing mandatory states, pose-derived damage, LOD socket drift, or unbounded resource cost.
Report whether the monster fully conforms, conforms with documented exceptions, or needs a new archetype capability added to the shared contract.
よくある質問
モンスターのポーズで命中が決まりますか?
いいえ。命中は、描画されたポーズではなく、権威ある戦闘ルールで決まるとスキルで定められています。
敵のAIや戦闘のタイミングとも連携しますか?
はい。敵の行動、戦闘のタイミング、ハイブリッド素材については、関連するスキルを案内します。
軽い詳細度の版も扱いますか?
はい。遠くのモンスター向けに、詳細度を下げた版を含みます。
詳細
作者による元の説明
Build, integrate, audit, or refactor rigged monsters for Three.js and web action games. Use for monster asset contracts, procedural or imported creature rigs, semantic joints and sockets, hurtboxes and attack volumes, combat animation states, enemy-runtime adapters, LODs, deterministic review fixtures, and validating that every monster follows one shared system.
repo: MengTo/Skills
人気
- GitHubのスター
- 7.2k
- ランキング
- #13357
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
3d-cloth-material
7.2kThree.js で、糸の織り、柔らかい光沢、自然な襞、裾、縫い目を持つ、本物の織物らしい布を作るようエージェントを支援します。
3d-falling-leaves
7.2k3D のシーンに、回転し、風に流され、カメラの動きに合わせて再利用される、本物らしい落ち葉を加えるようエージェントを支援します。
3d-four-seasons
7.2k3D のシーンに、春、夏、秋、冬の見た目を加え、シーン全体を作り直さずに、茂み、光、空、雪を変えるようエージェントを支援します。
3d-high-poly-models
7.2k滑らかな形と自然な縁をもつ、詳細な3Dモデルを作り、その後、Web で快適に動く軽いバージョンを準備するようエージェントを支援します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。