game-ai
Skill by gamedev-skills
Game AI designs engine-neutral enemy and NPC behavior. It helps choose between FSM, behavior tree, utility and GOAP models and builds perception, steering and A* pathfinding for game developers.
Install game-ai
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/disciplines/game-ai ~/.claude/skills/game-aiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/disciplines/game-ai ~/.gemini/antigravity-cli/skills/game-aiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Game AI is an agent skill for designing enemy and NPC behavior in an engine-neutral way. It helps pick a decision model (FSM, behavior tree, utility scoring or GOAP) and builds perception, steering and A* pathfinding. It covers patrol and chase, paths to the player, agents stuck on corners and AI that sees through walls.
The skill splits each agent into layers: perceive, decide, path, steer and animate. Perception writes facts to a Blackboard on a timer, and decisions read those facts. It lists common bugs such as threshold flicker, diagonal corner cutting and repathing every frame, and suggests runnable checks like comparing A* with Dijkstra and a headless stuck test. It is aimed at game developers building or debugging enemy AI. Unreal and Unity navigation are handled by other skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Decision model choicePicks FSM, hierarchical FSM, behavior tree, utility scoring or GOAP based on the situation.
- Perception designWrites target, last known position and sight facts to a Blackboard on a timer.
- FSM transitionsSets separate enter and exit thresholds and minimum time in state to avoid flicker.
- SteeringUses priority truncation so avoidance runs first and lower behaviors get the remaining force.
- A* pathfindingCovers grid and graph search, heuristic choice and diagonal corner rules.
- Flow fieldsSuggests one flow field from the goal when many agents share a target.
- Stuck and fairness guardsRepaths or changes state when progress stalls, and adds reaction delay to sight.
- Verification checksDescribes A* versus Dijkstra comparison, state flicker logs and a headless stuck test.
Try asking
- Design a patrol and chase FSM for a guard enemy with sight checks
- Why does my enemy AI see through walls? Review my perception code
- Choose between a behavior tree and GOAP for a boss with several attacks
Good to know
- Does not cover behavior tree or utility runtime code, which belongs to another skill.
- Does not cover Unreal or Unity navigation assets, which belong to other skills.
- Engine-specific notes are given for Godot 4.7 only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/disciplines/game-ai/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/fsm-perception-steering.md6 KB -
references/pathfinding.md7 KB
Alternatives to game-ai
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
game-ai: common questions
What does the game AI skill help with?
It helps design enemy and NPC AI by choosing a decision model and building perception, steering and A* pathfinding. The source says it is engine-neutral.
Does it work with Unity or Unreal?
The skill itself is engine-neutral. Unity NavMesh and Unreal AI assets are routed to separate skills named in the source.
How does it handle agents that get stuck?
It suggests repathing when progress stalls for about 2 seconds, and changing state after two failed repaths.
How do I install game-ai?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is game-ai free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is game-ai safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to game-ai?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
