Files
Claude-Code-Game-Studios/.claude/rules/ai-code.md
T
DonchitosandClaude Opus 5.5 b21fa0f7f2 Release 1.1.2 — the default path works end to end
Fix release for 1.1.1: the minimal path end to end, engine commands that
run on Godot, Unity and Unreal, hook warnings you can see, and verdicts
that say when they could not check. Details in CHANGELOG.md; upgrade
steps in UPGRADING.md (v1.1.1 → v1.1.2).

Fixes #67
Fixes #131

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WuJn2FdynEybfL5KC697nJ
2026-09-29 21:32:19 +10:00

753 B

paths
paths
src/ai/**
Assets/**/{AI,Ai,ai}/**/*.cs
Source/**/{AI,Ai,ai}/**/*.{h,cpp}

AI Code Rules

  • AI update budget: 2ms per frame maximum — profile to verify
  • All AI parameters must be tunable from data files (behavior tree weights, perception ranges, timers)
  • AI must be debuggable: implement visualization hooks for all AI state (paths, perception cones, decision trees)
  • AI should telegraph intentions — players need time to read and react
  • Prefer utility-based or behavior tree approaches over hard-coded if/else chains
  • Group AI must support formation, flanking, and role assignment from data
  • All AI state machines must log transitions for debugging
  • Never trust AI input from the network without validation