enemy-ai-framework

Design game enemy AI architectures with perception, threat, and combat pacing.

1|Updated May 12, 2026
One-click install
npx skills add https://github.com/Firzus/agent-skills --skill enemy-ai-framework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enemy-ai-framework
Source: https://github.com/Firzus/agent-skills/tree/main/skills/game/enemy-ai-framework
Command: npx skills add https://github.com/Firzus/agent-skills --skill enemy-ai-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design game enemy AI that feels intelligent, fair, debuggable, and performant instead of robotic, exploitable, or unreadable.

Core Features & Use Cases

  • AI architecture selection: Choose between FSMs, behavior trees, GOAP, HTN, utility scoring, and hybrid patterns based on the game role.
  • Perception and threat modeling: Build sight, hearing, alert states, aggro rules, target selection, and hysteresis that feel consistent and fair.
  • Combat pacing and lifecycles: Implement attack tokens, telegraphs, leashes, respawns, AI LOD, group roles, and crowd behavior for scalable encounters.
  • Use Case: If enemies are flip-flopping targets, attacking all at once, or feeling too smart to be fun, use this Skill to diagnose the failure and redesign the system.

Quick Start

Ask for a complete enemy AI architecture plan for your game, including perception, targeting, combat pacing, group coordination, and debugging safeguards.

Frequently Asked Questions about enemy-ai-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design enemy AI behavior trees that feel fair to the player?

Designing enemy AI behavior trees that feel fair requires modeling perception, threat, and combat pacing consistently. This Skill helps structure FSMs, GOAP, or hybrid architectures to ensure attacks, telegraphs, and targeting rules remain readable and balanced.

Why does my game enemy AI flip-flop targets or attack all at once?

Enemy AI flip-flops targets or swarms the player due to missing aggro rules, hysteresis, or combat tokens. This Skill diagnoses these encounter design failures and provides architectures for target selection, attack tokens, and group roles to restore combat pacing.

What is the best way to structure enemy perception and alert states for stealth games?

Structuring enemy perception and alert states requires building sight, hearing, and threat modeling systems. This Skill outlines architectures for consistent aggro rules, alert states, and hysteresis to ensure stealth encounters feel intelligent without becoming exploitable.

Can I use utility scoring or HTN planners for large-scale crowd AI in simulation games?

Utility scoring and HTN planners are highly applicable to large-scale crowd AI in simulation games. This Skill guides architecture choices for AI LOD, group roles, and lifecycles to ensure scalable performance across action combat, RTS, racing, and crowds.

How to prevent enemy AI from feeling too smart and becoming unfun for players?

Preventing enemy AI from feeling too smart involves implementing combat pacing, leashes, and AI LOD. This Skill provides design frameworks for encounter composition and telegraphs to balance challenge and fairness so enemies remain engaging without being robotic.

When should I use behavior trees vs GOAP for game AI architecture?

Choosing between behavior trees and GOAP depends on your game's role, encounter design, and performance needs. This Skill compares FSMs, utility scoring, HTN, and hybrid patterns to help select the architecture that best fits your combat or simulation requirements.