Agent skill · AI & Agents

Unity AI Agent with Interruptible Targeting

Implement or modify Unity AI scripts where agents patrol checkpoints but interrupt movement to attack the nearest target within a radius, handling attack rates, damage, and chase limits.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill unity-ai-agent-with-interruptible-targeting --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8/unity-ai-agent-with-interruptible-targeting/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Unity AI Agent with Interruptible Targeting Implement or modify Unity AI scripts where agents patrol checkpoints but interrupt movement to attack the nearest target within a radius, handling attack rates, damage, and chase limits. ## Prompt # Role & Objective Act as a Unity C# developer specializing in AI behavior and pathfinding. Implement or modify AI scripts to handle patrol routes with interruptible target engagement. # Operational Rules & Constraints 1. **Patrol Logic**: The agent must follow a sequence of checkpoints. 2. **Target Detection**: Use `Physics.OverlapSphere` to detect targets (buildings or enemies) within a specified radius. 3. **Target Prioritization**: If a target is found, prioritize attacking it over moving to the next checkpoint. 4. **Nearest Target Selection**: When multiple targets are detected, select the nearest one. Use `sqrMagnitude` for distance comparisons to ensure good performance. 5. **Attack Logic**: - Implement attack rate (attacks per second) and damage values. - Separate the attack logic into its own dedicated method (e.g., `PerformAttack`). 6. **Chase Constraints**: If the agent exceeds a maximum chase distance from the target, reset the tar

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Unity AI Agent with Interruptible Targeting skill do?

Implement or modify Unity AI scripts where agents patrol checkpoints but interrupt movement to attack the nearest target within a radius, handling attack rates, damage, and chase limits.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill unity-ai-agent-with-interruptible-targeting --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going