godot-ai-navigation
БесплатноБез исполняемых скриптовНе проверенAI movement decision router for chase, patrol, crowd, and bake choices on top of NavigationAgent/Server. Use when deciding node agent vs RID server, bake vs…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
Decision Trees (MANDATORY script triggers)
1. Node agent vs NavigationServer RID
| Signal | Choice | Pathfinding script (MANDATORY read) |
|---|---|---|
| 2D top-down / side-scroller, < ~50 agents, editor-tweakable | NavigationAgent2D on CharacterBody2D |
smart_navigation_agent.gd |
| 3D floor/slope nav, < ~50 agents, designer-placed regions | NavigationAgent3D on CharacterBody3D |
Same script (3D branch); pair with godot-physics-3d for body collision |
| Hundreds–thousands of simple movers (2D or 3D) | RID agents on NavigationServer | server_navigation_setup.gd + low_level_avoidance.gd |
| Agents stuck / jittering | Stuck recovery before retarget spam | agent_stuck_detection.gd |
2. Bake vs obstacle
| Signal | Choice | Pathfinding script (MANDATORY read) |
|---|---|---|
| Walkable geometry changed (proc gen, doors) | Async parse + bake | async_dynamic_baking.gd |
| Moving platform / shifting region | Dynamic region manager | dynamic_nav_manager.gd |
| Projectile / rolling hazard pushing agents | RVO obstacle (no full rebake) | moving_obstacle_server.gd |
| Prefer roads over mud/water | Region enter/travel costs | terrain_cost_manager.gd |
3. Layers, links, crowds
| Signal | Choice | Pathfinding script (MANDATORY read) |
|---|---|---|
| Walk / fly / swim (or faction) filters | Navigation layers bitmasks | layer_mask_navigation.gd |
| Jump / teleport / elevator edges | NavigationLink traversal | nav_link_traversal.gd |
| Formation / anti-clump crowds | Leader-relative offsets | group_avoidance_formations.gd |
| Hot-path query allocs | Reuse query parameter/result objects | memory_optimized_queries.gd |
Do NOT Load scripts outside the chosen row (e.g. skip RID/server scripts for a single designer-tuned agent; skip async bake when only RVO obstacles move).
4. Chase / patrol retarget policy (AI layer)
- Chase: Retarget on timer (~0.2s) or distance threshold — never assign
target_positionevery physics frame. - Patrol: Advance waypoint only when
is_navigation_finished()andis_target_reachable(); on unreachable, pick next or repath. - State ownership: Patrol/chase/search transitions belong in godot-state-machine-advanced; this skill only decides how to retarget once a state asks for a destination.
Patrol state handoff (call site): in the patrol state's _physics_process, when the agent finishes a waypoint, call retarget_if_needed(next_waypoint) — do not set target_position directly from the state machine root.
# PatrolState.gd — state machine owns transitions; this skill owns retarget policy
func _physics_process(_delta: float) -> void:
if nav_agent.is_navigation_finished() and nav_agent.is_target_reachable():
_ai_nav.retarget_if_needed(_waypoints[_index])
_index = (_index + 1) % _waypoints.size()
# Threshold retarget — AI policy, not per-frame path spam
const RETARGET_DIST := 1.5
var _last_target: Vector3
func retarget_if_needed(desired: Vector3) -> void:
if desired.distance_to(_last_target) < RETARGET_DIST:
return
nav_agent.target_position = desired
_last_target = desired
NEVER Do in
Установить godot-ai-navigation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-ai-navigation?
AI movement decision router for chase, patrol, crowd, and bake choices on top of NavigationAgent/Server. Use when deciding node agent vs RID server, bake vs obstacle, layer masks, or retarget policy — not for engine navmesh recipes. Keywords: AI navigation, chase retarget, patrol, crowd RVO, bake vs obstacle, NavigationAgent decision tree.
Как установить скилл godot-ai-navigation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-ai-navigation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic