xuunity-mcp
AGENTS.md3 starsChanged 4 months agoMITView on GitHub
If this repo is used outside AIFoxsterDevHub, skip missing host paths and use this router plus the local docs as the source of truth.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- llms.txtllms.txt
- atomic-ipc-filesSkill
- cross-platform-pythonSkill
- cross-platform-shellSkill
- editor-main-threadSkill
- release-ci-guardrailsSkill
- safe-process-managementSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Use it when a session starts from this MCP repo, or when a host repo task targets AIRoot/Operations/XUUnityLightUnityMcp/ from a parent …
- Very specific: line 23
Never require AIFoxsterDevHub, AIRoot/Modules/XUUnity/, host-local overlays, or project-local Assets/AIOutput/ memory for normal standalone …
- Very specific: line 34
If this repo is used outside AIFoxsterDevHub, skip missing host paths and use this router plus the local docs as the source of truth.
- Distinctive: line 40
Keep default-loaded entrypoints lean and head-complete: the must-load rule, routing procedure, and output/execution contract must survive …
- Distinctive: line 41
Put detailed rules, command catalogs, and matrices in explicitly routed owner files.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Agent Router: XUUnityLightUnityMcp
Purpose
This file is the project-level routing layer for XUUnityLightUnityMcp.
Use it when a session starts from this MCP repo, or when a host repo task targets
AIRoot/Operations/XUUnityLightUnityMcp/ from a parent workspace.
Project Context
- Project:
XUUnityLightUnityMcp - Project kind: public Unity MCP tooling repo
- Standalone public repo root: this directory
- Optional host-mounted path in
AIFoxsterDevHub:AIRoot/Operations/XUUnityLightUnityMcp/ - Unity package source:
packages/com.xuunity.light-mcp/ - Client setup docs:
docs/clients/ - Agent workflow docs:
docs/agents/ - Templates:
templates/ - AI/public discovery files:
llms.txt,mcp-server.json - Public shell entrypoints:
init_xuunity_light_unity_mcp.sh,xuunity_light_unity_mcp.sh,run_installed_or_refresh_xuunity_mcp.sh; native Windows flavors:xuunity_light_unity_mcp.cmd,xuunity_light_unity_mcp.ps1,run_installed_or_refresh_xuunity_mcp.cmd,templates/run.cmd,templates/run.ps1
Mode Detection
- Standalone mode:
../../../AGENTS.mdis absent or does not describe the active workspace. Use this file and local repo docs as the full routing contract. - Host-mounted mode:
../../../AGENTS.md,../../Modules/XUUnity/, and optionally../../../AIModules/XUUnityInternal/exist. Load host routing only for parent-workspace context. - Never require
AIFoxsterDevHub,AIRoot/Modules/XUUnity/, host-local overlays, or project-localAssets/AIOutput/memory for normal standalone work in this public repo.
Load Order
- This file
- Root public entrypoints:
README.md,INSTALL.md,llms.txt,mcp-server.json,SECURITY.md,CHANGELOG.mdonly when relevant - Relevant MCP docs under
docs/agents/,docs/operations/,docs/reference/, ordocs/clients/ - Relevant package, script, template, or test files from this repo
- Host repo router at
../../../AGENTS.mdonly when this repo is mounted underAIFoxsterDevHuband the task needs parent-workspace routing - Public
xuunitycore from../../Modules/XUUnity/only when present and useful for Unity package behavior, validation flows, runtime safety, SDK-style integration, or review - Host-local overlay from
../../../AIModules/XUUnityInternal/only when present and the task needs host topology, nested-repo routing, or parent-workspace validation
If this repo is used outside AIFoxsterDevHub, skip missing host paths and use
this router plus the local docs as the source of truth.
Entrypoint Contract
- A selected router, protocol entrypoint, or start-session file is atomic context: load it from first line through EOF before applying it.
- A partial read, summary, excerpt, search hit, or fixed line window is not valid entrypoint loading.
- Keep default-loaded entrypoints lean and head-complete: the must-load rule, routing procedure, and output/execution contract must survive within the smallest head read window. Entrypoint adequacy is governed by the byte-complete-kernel invariant (
AIRoot/Modules/XUUnity/scripts/check_entrypoint_kernel.py), not by a fixed line count. - Put detailed rules, command catalogs, and matrices in explicitly routed owner files.
- Longer knowledge, review, skill, and reference files are valid only when trigger-loaded; they are not default entrypoints.
Routing Rules
- For manual release of existing changes, scheduled retro-to-release, or downstream release closeout, first read
docs/operations/RELEASE_FLOW.md. Use the same gates for both modes; the owner's private closeout profile supplies external repositories and account permissions without adding private paths here. - For any task involving process management (process listing, checking liveness, or terminating processes/editors), load the safe process management skill: SKILL.md.
- For any task that writes or edits Python under
templates/, the root*.pylaunchers, or tests asserting rendered commands/paths, load the cross-platform python skill: SKILL.md. Windows/Ubuntu/macOS parity is a hard compatibility requirement for every Python change. - For any task that writes or edits bash scripts, the shell wrapper,
.cmd/.ps1launcher flavors,templates/run.sh,scripts/testing/*.sh, CI workflows, or tests that spawn shell processes — and for any failure that reproduces only on the Windows CI leg or only in CI — load the cross-platform shell skill: SKILL.md. Windows Git Bash support is a hard compatibility requirement for every shell change. - For any task touching files another process polls (bridge state, inbox/outbox, journal, batch or scenario results) on either the Python or C# side, load the atomic IPC files skill: SKILL.md.
- For any task editing the Unity editor package's tick-reachable code (
Editor/Bridge, heartbeat, request pump, transport, scenario ticks), load the editor main-thread skill: SKILL.md. - For any release, version bump, tag creation, GitHub Actions failure, or follow-up fix after CI catches a platform-only regression, load the release CI guardrails skill: SKILL.md.
- MCP
.shentrypoints must stay maximally thin. They may resolve the script directory, choose the Python interpreter, set launcher metadata, andexecPython. Do not put version parsing, source-root discovery, install refresh, process management, project traversal, JSON editing, or retry policy in bash; move that behavior into Python and cover it with tests. - For client setup tasks, load
docs/clients/AGENTS.mdwhen it exists, then the requested client guide. - For AI integration or workflow tasks, load
docs/agents/AI_INTEGRATION.mdordocs/agents/AGENT_WORKFLOWS.mdas appropriate. - For Unity package implementation, edit
packages/com.xuunity.light-mcp/and validate through the repo's test or smoke guidance. - For installer, wrapper, setup-plan/setup-apply, or uninstall-plan/uninstall-apply behavior, work in
scripts/,templates/, and the root shell entrypoints. - For parent-workspace tasks, keep
XUUnityLightUnityMcpas the implementation target and state any external Unity project used only as a validation target. - For public documentation, keep examples generic and public-safe. Do not add host-private paths, credentials, project names, or local workstation assumptions unless the task is explicitly host-local.
- For public site UX/UI, discovery, SEO, article, or docs navigation work under
docs/, run the static checks plusscripts/testing/run_site_ui_checks.shbefore final handoff when Node is available. Use the generated Playwright HTML report, JSON/JUnit results, failure screenshots, traces, and attached viewport screenshots to diagnose visual, overflow, accessibility, CTA, and route regressions.
Git Boundary
- In standalone mode, this directory is the git repo root.
- In
AIFoxsterDevHub,AIRoot/Operations/XUUnityLightUnityMcp/is a nested git repo insideAIRoot/. - Review, status, commits, and tags for MCP changes should be handled from the MCP repo root, not only from
AIFoxsterDevHuborAIRoot. - Every commit, including merges and tags, is authored and committed as
FoxsterDev <foxsterdev@gmail.com>. Checkgit config user.nameandgit config user.emailbefore committing and set them in the repo config when they differ. Merge pull requests locally and push, because the GitHub merge button records the account profile identity instead. Do not add co-author trailers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

