unity-behavior

unity-behavior is a skill for Claude Code, Codex from Besty0728/Unity-Skills. It costs 14 tokens per session (2,739 once invoked), scanned A, original, MIT.

A set of tools for Unity Behavior, a Unity package for building NPC and AI decision graphs, and for reading or writing their blackboard variables, which store shared decision data.

In plain words
What is it for?
Use it to discover behavior graphs, inspect agents and blackboards, connect agents to graphs, and create or modify graph-related data when the optional package is installed.
Why use it?
It removes the need to manage behavior graphs and their shared data manually when working with Unity AI logic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to discover behavior graphs, inspect agents and blackboards, connect agents to graphs, and create or modify graph-related data when the optional package is installed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/besty0728/unity-skills/behavior
About the project

UnitySkills is a REST API-based automation engine that lets AI coding agents control Unity Editor projects, including scenes and other editor operations. It is for developers using Unity with supported coding agents and IDEs. The catalogue skills and commands provide the agent workflows used to operate Unity projects through the engine.

Besty0728/Unity-Skills · 1,864 stars · on GitHub · micostar.cc

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Besty0728/Unity-Skills --skill behavior
Clone the repo
git clone --depth 1 https://github.com/Besty0728/Unity-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-behavior

README.md
[![agentmods](https://agentmods.dev/badge/skills/besty0728/unity-skills/behavior/github.svg)](https://agentmods.dev/skills/besty0728/unity-skills/behavior)
Your own site
<a href="https://agentmods.dev/skills/besty0728/unity-skills/behavior"><img src="https://agentmods.dev/badge/skills/besty0728/unity-skills/behavior/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unity-behavior

Your own site · 80×15
<a href="https://agentmods.dev/skills/besty0728/unity-skills/behavior"><img src="https://agentmods.dev/badge/skills/besty0728/unity-skills/behavior.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.02739
Opus 5.5 $0.00006 $0.01096
Sonnet 5.5 $0.00003 $0.00548
Haiku 4.5 $0.00001 $0.00274

Measured 14d ago against content hash c0af817f6595, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SkillsForUnity/unity-skills~/skills/behavior/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.

Triggers

  • Wiring NPC/AI decision logic
  • Working with behavior trees/graphs
  • Reading/writing blackboard variables
  • 搭建 NPC/AI 决策逻辑、使用行为树/行为图、读写黑板变量

Behavior Skills

Unity Behavior (com.unity.behavior, validated against 1.0.16) graph asset discovery, agent wiring, and blackboard variable access.

The package is optional and is not a declared dependency of UnitySkills. Every skill in this module reaches it through reflection; when it is absent each skill returns the same structured PACKAGE_NOT_INSTALLED response pointing at package_install.

Operating Mode

  • Query skills (behavior_status, behavior_graph_list, behavior_graph_info, behavior_agent_get, behavior_agent_list, behavior_blackboard_list) are SkillMode.SemiAuto — they run in all three modes without a grant.
  • Mutators (behavior_graph_create, behavior_agent_add, behavior_agent_set_graph, behavior_blackboard_set) are SkillMode.FullAuto — under Approval they need a user grant; under Auto / Bypass they execute directly.
  • No skill in this module carries SkillOperation.Delete, so none is auto-forbidden in Approval / Auto mode.

Prerequisites

Install the package first if behavior_status reports installed: false:

package_install  packageName="com.unity.behavior"

Installation triggers a Domain Reload; wait for it to finish, then call behavior_status again before using any other skill in this module.

The two asset types (read this before binding graphs)

A "Behavior Graph" .asset file contains two objects, and mixing them up is the most common failure:

Object Role Where it lives
BehaviorAuthoringGraph Editing representation — nodes, blackboard, story. Main asset. The .asset file itself
BehaviorGraph Baked runtime graph. What BehaviorGraphAgent.Graph actually requires. Sub-asset nested inside the same file

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed c0af817f6595
  2. 1mo ago First seen · 165 lines · 14 tokens per session scan A 8d92ee1b059a

Subscribe to this mod's changes

unity-behavior is a skill published in the GitHub repository Besty0728/Unity-Skills (1,864 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 2,739 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pufferlib

Version-aware guidance for PufferLib reinforcement-learning environments, vectorization, policies, PuffeRL training, evaluation, and safe checkpoint review. Covers the native 5.0 build and environment API, published 3.0.0 Gymnasium/PettingZoo adaptation, and a pinned historical 4.0 profile.

K-Dense-AI/scientific-agent-skills · 68 tokens

dotcraft-unity

Use when dotcraft-unity MCP, CLI, or unityexecutecsharp is available, or when the user asks to inspect, automate, capture, or debug Unity Editor state, scenes, assets, Console logs, or GameView output. Provides background-first Unity Editor automation through MCP or CLI.

DotHarness/dotcraft-unity · 64 tokens

unity

Inspect, automate, and debug a running Unity Editor. Use for Unity scenes, assets, project state, Console logs, and Editor C# execution.

DotHarness/dotcraft-unity · 32 tokens

immersive-vibration-response

Provide autonomous, low-power haptic feedback and a playful, opinionated interaction style for players through the local ESP32 vibration bridge. Use for interactive games, embodied-agent play, roleplay, simulations, live narratives, and long-running creative or coding tasks whenever game events, decisions, task…

ra1nyxin/immersive-vibration-response-skill · 99 tokens

2dimg2motion

Use when a user provides one baseline image and requests game animation frames, sprite sequences, attack/walk/idle/hit/death/casting motion, transparent PNG frames, a spritesheet, keyframe prompts, or consistent whole-character pose animation.

WU-HAOTIAN34/2dimg2motion · 55 tokens

img2mo-learn

Learn reusable 2D motion-generation knowledge from user-specified action resources with /img2mo-learn . Use when the user provides videos, extracted frame sequences, spritesheets, Spine assets, generated outputs, failed attempts, or reference motion folders and wants to summarize animation timing, pose beats, style…

WU-HAOTIAN34/2dimg2motion · 104 tokens