- name
SKILL.md
स्किल फ़ाइल पब्लिशर की रिपॉज़िटरी में ही रहती है।
कॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -a cursor -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -a claude-code -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -a codex -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -a grok -yकॉपी किया गया संदेश Grok Bot चैट में भेजें। Bot यह SKILL.md GitHub से लाता है और उसे उन स्किल में जोड़ देता है जो आपके सभी Bot साझा करते हैं।
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/disciplines/game-aiपब्लिशर से
Split every agent into layers that pass one small value to the next: perceive (facts on a Blackboard) → decide (an intent such as "go to X", "attack Y") → path (waypoints) → steer (a velocity) → animate. Most "dumb AI" bugs are a layer doing another layer's job: a state that raycasts, a pathfinder called every frame, steering that ignores the path.
Not this skill: BT and utility runtimes go to ai-behavior-trees-utility-ai; Unreal
BehaviorTree, EQS and StateTree go to unreal-behavior-trees; Unity NavMeshSurface and
NavMeshAgent go to unity-navmesh. Movement and collision feel go to physics-tuning.
Common shipping mix: an FSM for the top mode (Idle, Combat, Dead) with a BT inside Combat. Start with the FSM; promote a state to a BT when its transitions stop fitting on one screen.
AStarGrid2D,
a tile grid), and how enemies find the player today. Extend what exists.target, last_known_pos,
can_see, heard_at to a Blackboard on a timer (5-10 Hz). Decisions read those facts; they
never raycast.if state == ... checks.h = 0)
cost. Any mismatch means the heuristic or step costs are wrong.FSM
enter() never runs when the agent assigns current = Patrol.new()
without calling it. Route the first state through the same change_state() as every other.enter()/exit() re-enters the machine and runs exits twice.
Queue the next state and apply it after update() returns.Perception
dot(forward, dir) > cos(half_angle)), then one raycast. Only survivors pay for the ray; stagger rays across frames.Steering
speed * dt) makes agents overshoot and
orbit the point. Advance when within max(radius, speed * dt).NavigationAgent2D/3D
velocity and velocity_computed when avoidance is on; Unity: see unity-navmesh).Pathfinding
AStarGrid2D defaults to DIAGONAL_MODE_ALWAYS, which cuts
corners; set DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES (or NEVER for 4-way with Manhattan).AStarGrid2D.update() clears every solid point and weight. Call it after setting
region/cell_size/offset, then mark walls. jumping_enabled ignores weight scales.references/pathfinding.md: read when writing A* or a grid adapter by hand, choosing a
heuristic, or deciding between hand-rolled A*, AStarGrid2D and an engine navmesh.references/fsm-perception-steering.md: read when implementing a hierarchical FSM, a
sight/hearing sensor or priority-truncated steering.ai-behavior-trees-utility-ai: BT and utility runtimes once the model is chosen.unity-navmesh, unreal-behavior-trees: engine navigation and AI assets.physics-tuning: agent radius, movement and collision response.procedural-gen: the level graph the AI navigates.Last verified: 2026-11-11.
AStarGrid2D: default diagonal_mode is DIAGONAL_MODE_ALWAYS, update() clears
point data, and jumping_enabled disables weight scaling
(https://docs.godotengine.org/en/4.7/classes/class_astargrid2d.html).NavigationAgent2D: avoidance_enabled, velocity, velocity_computed
(https://docs.godotengine.org/en/4.7/classes/class_navigationagent2d.html).>
---name: game-aidescription: >---# skills/disciplines/game-ai/SKILL.mdFAQ
पब्लिशर से skills/disciplines/game-ai/SKILL.md डाउनलोड करें, या पाथ कॉपी करके रिपॉज़िटरी खोलें। PlugMCP स्किल को सूचीबद्ध करता है, फ़ाइल होस्ट नहीं करता।
पब्लिशर इसे https://github.com/gamedev-skills/awesome-gamedev-agent-skills पर रखता है।
Claude, Cursor, Codex और Grok Build वह SKILL.md पढ़ सकते हैं जिसे आप पब्लिशर की रिपॉज़िटरी से जोड़ते हैं। जब आप चैट में स्किल के GitHub फ़ोल्डर का लिंक भेजते हैं, तो Grok Bot उसे इंस्टॉल कर देता है।