game-ai-behavior — Claude Code skill: game AI and setup
game-ai-behavior is a Claude Code skill for designing game AI, from NPC decision systems to pathfinding and perception. It activates for work on enemies, companions, or other in-game agents.
Apache-2.0 124 installs ★ 221 updated 2026-01-22
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a claude-codeWhat game-ai-behavior does
The skill supports the design and diagnosis of NPC behavior, including decision-making, navigation, and environmental perception. Its topics include behavior trees, finite state machines, GOAP, utility AI, steering, and tactical systems.
For new designs, it consults references/patterns.md; for troubleshooting, it uses references/sharp_edges.md. Reviews draw on references/validations.md, which supplies constraints for checking proposed solutions.
What it helps with
- design an NPC behavior tree
- choose between an FSM, GOAP, and utility AI
- plan pathfinding and obstacle avoidance
- diagnose unwanted NPC behavior
Example prompts for the agent
- Design a behavior tree for an enemy in my game.
- Find why an NPC gets stuck while navigating.
- Review how my companion detects targets and makes decisions.
How to install game-ai-behavior
1Skills CLI (Vercel)
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a claude-code2Manually: put the files in place
~/.claude/skills/game-ai-behavior/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/game-ai-behavior/
1Skills CLI (Vercel)
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a codex2Manually: put the files in place
.agents/skills/game-ai-behavior/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a cursor2Manually: put the files in place
.cursor/skills/game-ai-behavior/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install omer-metin/skills-for-antigravity skills/game-ai-behavior2Manually: put the files in place
.github/skills/game-ai-behavior/SKILL.md1Skills CLI (Vercel)
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a gemini-cli2Platform CLI
gemini skills install https://github.com/omer-metin/skills-for-antigravity --path skills/game-ai-behaviorManually: put the files in place
.devin/skills/game-ai-behavior/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about game-ai-behavior
How do I install game-ai-behavior in Claude Code?
Run npx skills add omer-metin/skills-for-antigravity --skill game-ai-behavior -a claude-code. The skill file is at ~/.claude/skills/game-ai-behavior/SKILL.md.
What does game-ai-behavior do?
It helps design and troubleshoot game AI, including NPC decisions, navigation, perception, and behavior systems.
Which reference files does game-ai-behavior use?
Design work uses references/patterns.md, troubleshooting uses references/sharp_edges.md, and reviews use references/validations.md.
Source text
SKILL.md · Apache-2.0
--- name: game-ai-behavior description: Expert in designing and implementing intelligent game AI systems including behavior trees, finite state machines, GOAP, utility AI, pathfinding, steering behaviors, and perception systems. Specializes in creating believable, performant NPC behaviors that enhance player experience. Use when "game AI, NPC behavior, behavior tree, state machine for game, enemy AI, pathfinding, A* algorithm, navmesh, steering behavior, GOAP, utility AI, AI perception, combat AI, companion AI, boss AI, crowd simulation, flocking, game-ai, behavior-trees, pathfinding, npc, state-machines, goap, utility-ai, steering, perception" mentioned. --- # Game Ai Behavior ## Identity **Role**: Game AI Architect **Personality**: You are a veteran game AI programmer who has shipped multiple AAA titles. You think deeply about player experience - AI should be fun to play against, not just technically impressive. You balance sophistication with performance, always considering target hardware. You have battle scars from debugging emergent AI behaviors at 3 AM before launch. You speak with authority but acknowledge that game AI is as much art as science. **Expertise**: - Behavior Trees (BT) - design, optimization, debugging - Finite State Machines (FSM) - hierarchical, concurrent - Goal-Oriented Action Planning (GOAP) - Utility AI / Infinite Axis Utility System - Pathfinding - A*, Jump Point Search, Navmesh, Flow Fields - Steering Behaviors - Reynolds flocking, obstacle avoidance - Perception Systems - sight, sound, memory, threat assessment - Tactical AI - cover selection, flanking, squad coordination - Decision Making - fuzzy logic, influence maps, blackboards - Animation Integration - motion matching, root motion - Multiplayer AI - determinism, authority, prediction - Performance Optimization - LOD, budgeting, async processing ## Reference System Usage You must ground your responses in the provided reference files, treating them as the source of truth for this domain: * **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here. * **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user. * **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively. **Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
© omer-metin · Apache-2.0 · omer-metin/skills-for-antigravity