constraints

constraints is a skill for Claude Code, Codex from AlexeyPerov/Unity-Open-MCP. It costs 0 tokens per session (2,110 once invoked), scanned A, original, MIT.

A connector for Unity animation constraints and level-of-detail groups. Constraints make objects follow positions, rotations, parents, or scales; level of detail shows simpler versions of objects when they are farther away.

In plain words
What is it for?
Setting up Position, Rotation, Aim, Parent, and Scale constraints, and configuring LOD groups in a Unity project.
Why use it?
It reduces manual setup of object relationships and distance-based model detail in the Unity Editor. These features are built into Unity and do not require an extra package.

Skill for Claude CodeCodex

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

Good fit Setting up Position, Rotation, Aim, Parent, and Scale constraints, and configuring LOD groups in a Unity project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexeyperov/unity-open-mcp/constraints
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 AlexeyPerov/Unity-Open-MCP --skill constraints
Clone the repo
git clone --depth 1 https://github.com/AlexeyPerov/Unity-Open-MCP

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 constraints

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexeyperov/unity-open-mcp/constraints"><img src="https://agentmods.dev/badge/skills/alexeyperov/unity-open-mcp/constraints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,110 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.00000 $0.02110
Opus 5 $0.00000 $0.01055
Sonnet 5 $0.00000 $0.00422
Haiku 4.5 $0.00000 $0.00211

Measured 9d ago against content hash 25c441192029, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

constraints 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 9d 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.

skills/extensions/constraints/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.

Unity Open MCP — Constraints & LOD Extension

Skill for AI agents driving Unity animation constraints (PositionConstraint / RotationConstraint / AimConstraint / ParentConstraint / ScaleConstraint) and Level-of-Detail groups (LODGroup) in a project through the unity-open-mcp MCP server.

This domain is embedded in the bridge and opt-in. Its tools use the built-in engine modules (UnityEngine.AnimationModule for the constraint components, UnityEngine.CoreModule for LODGroup) — no Unity package install is required, and they compile into every bridge build. Its tool group is hidden from ListTools until the connected session activates it.

Preconditions

  • Unity Editor is open with the target project.
  • unity_open_mcp_ping returns connected: true.
  • The constraints tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="constraints") before invoking any Constraints & LOD tool. Fresh sessions start with two default-on groups (core and gate-and-verify); activate the other groups you need on demand. Because these types are built-in, capabilities always reports the constraints group as available: true (no domainDefine).

Tool prefixes

Two prefixes share the constraints group (one group covers both concerns — they are small and closely related):

  • unity_open_mcp_constraint_add — add an animation constraint component to a host GameObject.
  • unity_open_mcp_lod_group_configure — configure a LODGroup on a host.
  • unity_open_mcp_lod_add_level — add or replace a LOD entry at an index.

All three tools are mutating and accept the standard paths_hint; they run the full gate path. There are no read-only members in this group — read constraint / LODGroup state with unity_open_mcp_component_get.

Every mutating tool requires a non-empty paths_hint scoped to the host scene path — the gate has no whole-project fallback.

Canonical workflow: an aim constraint

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. 9d ago First seen · 165 lines · 0 tokens per session scan A 25c441192029

Subscribe to this mod's changes

constraints is a skill published in the GitHub repository AlexeyPerov/Unity-Open-MCP (12 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,110 tokens. 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-31.

Related

Other skills, from other repositories

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

peer-review

Structured manuscript/grant review with checklist-based evaluation. Use when writing formal peer reviews with specific criteria methodology assessment, statistical validity, reporting standards compliance (CONSORT/STROBE), and constructive feedback. Best for actual review writing, manuscript revision. For evaluating…

xintaofei/codeg · 71 tokens

scientific-critical-thinking

Evaluate scientific claims and evidence quality. Use for assessing experimental design validity, identifying biases and confounders, applying evidence grading frameworks (GRADE, Cochrane Risk of Bias), or teaching critical analysis. Best for understanding evidence quality, identifying flaws. For formal peer review…

xintaofei/codeg · 63 tokens

scientific-schematics

Create publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.1 Pro Preview for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways…

xintaofei/codeg · 68 tokens

hypothesis-generation

Structured hypothesis formulation from observations. Use when you have experimental observations or data and need to formulate testable hypotheses with predictions, propose mechanisms, and design experiments to test them. Follows scientific method framework. For open-ended ideation use scientific-brainstorming; for…

xintaofei/codeg · 69 tokens

scientific-brainstorming

Creative research ideation and exploration. Use for open-ended brainstorming sessions, exploring interdisciplinary connections, challenging assumptions, or identifying research gaps. Best for early-stage research planning when you do not have specific observations yet. For formulating testable hypotheses from data use…

xintaofei/codeg · 60 tokens