build-game-monster-system
What it does
This skill guides the agent through building enemy creatures for a Three.js action game as gameplay-ready assets. It is for game developers who want monsters with reliable hit areas, attack timing and a common structure.
When to use it
- ✓When a game needs new monsters with rigs, hit areas and attack animations.
- ✓When monsters are decorative meshes that do not match the combat rules.
- ✓When an existing monster set must follow one shared structure.
Skill link
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-monster-system/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Build a rigged wolf monster for my game with a hit area, a claw attack and a structure the other monsters can share.”
5 new skills a week. 1 minute to read.
How it works
The agent separates the monster's facts, rig, runtime state and view, so combat is decided by game rules rather than by the visible pose. It checks each monster against the same contract.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Does the monster's pose decide whether it hits?
No. The skill says hits are decided by the authoritative combat rules, not by the rendered pose.
Does it work with enemy AI and combat timing?
Yes. The skill points to related skills for enemy behavior, combat timing and hybrid assets.
Does it cover lower-detail versions?
Yes. The skill includes lower-detail versions for distant monsters.
Details
Original description by the author
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
Popularity
- GitHub stars
- 7.2k
- Ranking position
- #13357
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
3d-cloth-material
7.2kHelps your agent build realistic woven fabric in Three.js, with thread weave, soft sheen, natural folds, hems and seams.
3d-falling-leaves
7.2kHelps your agent add realistic falling leaves to a 3D scene, with leaves that tumble, drift with the wind and recycle as the camera moves.
3d-four-seasons
7.2kHelps your agent add spring, summer, fall and winter looks to a 3D scene, changing foliage, light, sky and snow without rebuilding it.
3d-high-poly-models
7.2kHelps your agent build detailed 3D models with smooth shapes and believable edges, then prepare lighter versions that run well on the web.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.