unity-cli

unity-cli is a skill for Codex from Alex-Rachel/TEngine. It costs 68 tokens per session (1,062 once invoked), scanned A, original, MIT.

A command-line tool for checking and operating a Unity project, including its open scenes, game objects, assets, tests, compilation, and build checks. Unity is a game engine and editor.

In plain words
What is it for?
Use it to inspect scenes, Prefabs, components, and the asset database; run Unity tests; compile; and perform build prechecks.
Why use it?
It lets an agent verify real Unity state instead of guessing from source files. It also adds checks before changes and reports blocked or uncertain operations.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .codex/scripts/workflow.py doctor.

Good fit Use it to inspect scenes, Prefabs, components, and the asset database; run Unity tests; compile; and perform build prechecks.

Compare 6 skills from other repositories ↓
About the project

TEngine is a Unity framework for building games, providing modules for asynchronous work, hot updates, asset management, configuration tables, and user interfaces. It is for Unity developers and teams making commercial projects across desktop, mobile, web, and WeChat Mini Game targets, with catalogue skills supporting its AI-assisted development workflow.

Alex-Rachel/TEngine · 2,418 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Alex-Rachel/TEngine
agentmods
npx agentmods add skills/alex-rachel/tengine/unity-cli

Made for: 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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/alex-rachel/tengine/unity-cli/github.svg)](https://agentmods.dev/skills/alex-rachel/tengine/unity-cli)
Your own site
<a href="https://agentmods.dev/skills/alex-rachel/tengine/unity-cli"><img src="https://agentmods.dev/badge/skills/alex-rachel/tengine/unity-cli/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-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/alex-rachel/tengine/unity-cli"><img src="https://agentmods.dev/badge/skills/alex-rachel/tengine/unity-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,062 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.
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.00068 $0.01062
Opus 5.5 $0.00027 $0.00425
Sonnet 5.5 $0.00014 $0.00212
Haiku 4.5 $0.00007 $0.00106

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

Security

Grade A, and why

unity-cli 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 20d 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.

UnityProject/.codex/skills/unity-cli/SKILL.md · 55 lines

How it starts

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

Unity CLI 与 Pipeline

com.unity.pipeline 是本项目 Unity 自动化的执行基础:注册命令、线程调度、对象与资源操作、异步状态和运行结果。 项目 Python 工作流负责绑定工程、执行已审核命令和保留证据;它只封装包的一部分能力。 包的命令参考和当前注册 schema 是操作依据, 不要把其他全局 Unity 技能或网上示例当作本项目接口。

起步

以下命令在 Unity 项目根运行,其他目录可调用脚本的绝对路径:

python .codex/scripts/workflow.py doctor
python .codex/scripts/workflow.py unity list
python .codex/scripts/workflow.py unity describe "scene list_open"
python .codex/scripts/workflow.py unity query "scene list_open"

先确认规范化项目路径、唯一实例、CLI/包/Editor 版本与目标操作允许的 Editor 状态。 服务可连接与 Editor 空闲是两个条件。离线时仍可完成源码和文档工作,但实际 Editor 验证记为 blocked。 本地版本事实和更新检查见 Pipeline 契约。

按任务读取

任务 项目规程 包内权威入口
连接、发现、schema、参数、查询、故障恢复 操作规程 connectivity、pipeline
编译、EditMode/PlayMode、资源和构建证据 验证与证据 build-and-compilation
场景、对象、组件、Prefab、批处理、项目命令 内容操作 authoring、safety
截图、Profiler、内存、Player、方法重载 诊断与运行时 capture、runtime

只加载本次任务相关的规程和包文档,不复制整份命令目录进上下文。

执行边界

  • 使用 <group> <name> 全名,如 script recompile、test list。包装器将全名作为一个带引号的参数接收; 原生 CLI 的 group/name 是两个参数。旧扁平名只作为迁移线索。
  • 包命令多用 dry-run、filter-type;本项目自定义命令仍有 dry_run。按 schema 原样传键,不统一替换命名。
  • 查询不能凭名称判定。新增对象、捕获文件、切换选择、Profiler、Play Mode、脚本和菜单可能改变状态。
  • 源码使用代码编辑工具。eval、script run、MethodReload、菜单及文本写入不能绕过代码审查和 Unity 授权。
  • Unity 写入先展示具体项目、目标、参数、输入和保存范围,取得该范围的明确授权后执行; 删除、覆盖、包/设置、平台切换、真实构建单独确认。confirm 是命令参数,不是用户授权。
  • 编译、导入、测试和写入串行。状态观察不要求 Editor 空闲;超时只重试经过审核的只读观察, 已发送的写入结果未知时先查真实状态,禁止自动重放。
  • dry-run、Undo、authoring root 各有适用范围,不能据此承诺全工程事务回滚或安全沙箱。
  • 缺连接、命令、匹配测试或必需依赖时报告具体阻塞,不自动安装升级或连接其他工程替代。

Read the full file on GitHub · 55 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 20d ago Changed · +12 lines · +3 tokens per session 6386e1a715ab
  2. 2mo ago First seen · 43 lines · 65 tokens per session scan A e51666627e94

Subscribe to this mod's changes

unity-cli is a skill published in the GitHub repository Alex-Rachel/TEngine (2,418 stars, last pushed 12d ago), licensed MIT. It adds 68 tokens to every session and 1,062 once invoked, about $0.0003 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-09-23.

Related

unity-cli compared with skills from other repositories

unity-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unity-cliAlex-Rachel/TEngineSkill2.4k12d agoMITA68Codex
et-codeFlameskyDexive/Legends-Of-HeroesSkill9392mo agoMITA61Claude Code, Codex
godot-csharpgamedev-skills/awesome-gamedev-agent-skillsSkill12k18d agoApache-2.0A111Claude Code
3d-essentialsjame581/GodotPrompterSkill1.0ktodayMITA47Claude Code
ability-systemjame581/GodotPrompterSkill1.0ktodayMITA37Claude Code
addon-developmentjame581/GodotPrompterSkill1.0ktodayMITA24Claude Code
ai-navigationjame581/GodotPrompterSkill1.0ktodayMITA26Claude Code