Skip to content

Latest commit

 

History

History
334 lines (245 loc) · 15.6 KB

HowToInstall_AI.md

File metadata and controls

334 lines (245 loc) · 15.6 KB

How To Install Unity Superpowers With An AI Agent

You are installing this Unity Superpowers package into a Unity project for a coding agent.

Source package:

unity-superpowers/
  AGENTS.md
  CHANGELOG.md
  README.md
  HowToInstall_AI.md
  VERSION
  skills/

Install only the root guidance file and skills/ directory needed by the target coding agent. Do not copy repository history, generated Unity folders, unrelated docs, or temporary files.

Install into one primary project-local skill directory for the target agent. Do not copy the same Unity Superpowers skills into multiple supported directories unless the user explicitly wants a multi-agent setup; duplicate skill names can confuse discovery.

Before Installing

  1. Confirm the target folder is the Unity project root or the intended project-local agent root.
  2. Inspect the target for existing agent guidance and skills.
  3. Preserve existing user guidance. Merge intentionally instead of overwriting silently.
  4. Use the user's language for explanations. Keep file paths, skill names, Unity API names, package URLs, and command names unchanged.

Multi-Agent Install

Use this section when one Unity project will be opened by more than one coding agent.

Instruction files:

  • Keep AGENTS.md as the canonical shared project instruction file for Codex, Cursor, OpenCode, Antigravity, and GitHub Copilot agent/CLI contexts.
  • Create CLAUDE.md only when Claude Code will be used. Claude Code project memory is CLAUDE.md; do not assume it will read AGENTS.md.
  • When creating CLAUDE.md, copy or adapt the Unity Superpowers guidance from AGENTS.md instead of replacing AGENTS.md.
  • Create .github/copilot-instructions.md when Copilot Chat, Copilot code review, or repository-wide Copilot behavior should use the same always-on Unity guidance. Avoid conflicts between .github/copilot-instructions.md and AGENTS.md.
  • Do not create .cursorrules for new installs. Cursor treats it as legacy.
  • Use .cursor/rules/ or .agents/rules/ only when scoped rules are required. Keep the main shared Unity guidance in AGENTS.md.

Skill directories:

<target-project>/
  AGENTS.md
  CLAUDE.md                 # only when Claude Code is used
  .agents/
    skills/                 # Codex + Antigravity; also supported by OpenCode
  .claude/
    skills/                 # Claude Code
  .cursor/
    skills/                 # Cursor fallback or Cursor-specific install
  .opencode/
    skills/                 # OpenCode fallback or OpenCode-specific install
  .github/
    skills/                 # GitHub Copilot fallback or Copilot-specific install
    copilot-instructions.md # optional always-on Copilot repository instructions

Recommended combinations:

  • Codex + Antigravity: install once to .agents/skills/.
  • Codex + Antigravity + OpenCode: install once to .agents/skills/, then verify OpenCode sees the skills before adding .opencode/skills/.
  • Cursor + another .agents/skills/ agent: first verify whether Cursor sees .agents/skills/. If not, copy the same skills to .cursor/skills/ and verify Cursor does not show duplicate skill names.
  • GitHub Copilot + another .agents/skills/ agent: install once to .agents/skills/, then verify Copilot sees the skills. If not, copy the same skills to .github/skills/ and verify Copilot does not show duplicate skill names.
  • Claude Code + any other agent: copy skills to .claude/skills/ for Claude Code. If OpenCode is also used, prevent OpenCode from double-loading .claude/skills/ and .agents/skills/ by setting OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1 for OpenCode sessions when needed.
  • All supported agents: use AGENTS.md, CLAUDE.md, .agents/skills/, .claude/skills/, and add .cursor/skills/, .opencode/skills/, or .github/skills/ only after discovery testing shows they are needed.

Version drift control:

  1. Treat this package's skills/ directory as the source copy.
  2. Copy the same package version into every required target directory.
  3. After updates, verify each installed copy has the same using-superpowers-unity/SKILL.md content.
  4. If one agent reports duplicate Unity Superpowers skills, remove that agent's fallback copy and keep the shared path it can actually load.
  5. Restart or refresh every active agent after changing project-local skills.

Unity Editor Bridge Install Choice

Install the skill pack first. unity-init asks for bridge mode before installing or configuring Editor integration.

Bridge modes:

  • unity_ai_assistant: Unity AI Assistant + Unity MCP Server.
  • mcpforunity: external coding agent + MCPForUnity.

Editor-backed claims require Unity AI Assistant / Unity MCP or MCPForUnity evidence.

Unity AI Assistant / Unity MCP Setup

Use this branch for the official in-Editor AI workflow.

  • Unity AI Assistant path may require Unity 6.3+ for the open beta guide flow.
  • Unity AI generally requires Unity 6.0+, an AI package, accepted terms, and a Unity Cloud project link according to the Unity AI product FAQ.
  • com.unity.ai.assistant is the AI Assistant package named by Unity support docs.
  • Unity AI seat, subscription, or trial state can affect MCP or AI Gateway connection.
  • Seat changes can require a full Unity Editor restart.
  • Do not buy subscriptions, start trials, assign seats, accept terms, or change Cloud links without user approval.

Links: Unity AI open beta guide, Unity AI product page, Unity AI MCP connection error.

MCPForUnity Setup

Use this branch for an external coding agent with MCPForUnity.

  1. In Unity, open Window > Package Manager > + > Add package from git URL.
  2. Paste https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main.
  3. After import, open Window > MCP for Unity.
  4. Use the setup wizard or client configurator to configure the detected AI client.
  5. Restart or refresh the AI coding agent if MCP tools do not appear.
  6. Before using Unity tools, verify the active MCPForUnity target and Application.dataPath.

Codex Install

For Codex project-local installation, create or update:

<target-project>/
  AGENTS.md
  .agents/
    skills/

Steps:

  1. Create .agents/skills/ if it does not exist.
  2. Copy every folder under this package's skills/ into <target-project>/.agents/skills/.
  3. Copy this package's AGENTS.md to <target-project>/AGENTS.md if none exists.
  4. If <target-project>/AGENTS.md already exists, merge the Unity Superpowers sections into it without deleting project-specific rules.
  5. Tell the user to restart or refresh Codex if the new skills do not appear immediately.

Codex skill discovery is session-scoped. If using-superpowers-unity or another Unity Superpowers skill does not appear, verify the copied path first:

<target-project>/.agents/skills/using-superpowers-unity/SKILL.md

If the file exists, start a new Codex session or refresh Codex so it reloads project-local skills. If the file does not exist, the package was not installed into the active project.

Claude Code Install

For Claude Code project-local installation, prefer the project guidance file that Claude Code reads in that project.

Typical shape:

<target-project>/
  CLAUDE.md
  .claude/
    skills/

Steps:

  1. Create .claude/skills/ if the project uses Claude Code project-local skills.
  2. Copy every folder under this package's skills/ into <target-project>/.claude/skills/.
  3. Convert or merge this package's AGENTS.md content into <target-project>/CLAUDE.md.
  4. Preserve existing Claude Code project rules.
  5. Tell the user to restart or refresh Claude Code if skill discovery is not immediate.

Antigravity Install

For Antigravity project-local installation, use the workspace skill directory shared by the Antigravity desktop app and Antigravity CLI.

If Antigravity itself is not installed, follow the current install paths:

  • Desktop app: download from https://antigravity.google/download.
  • CLI on macOS or Linux: curl -fsSL https://antigravity.google/cli/install.sh | bash.
  • CLI on Windows PowerShell: irm https://antigravity.google/cli/install.ps1 | iex.
  • CLI on Windows CMD: curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd.
  • CLI command: agy.

Typical shape:

<target-project>/
  AGENTS.md
  .agents/
    skills/

Steps:

  1. Create .agents/skills/ if it does not exist.
  2. Copy every folder under this package's skills/ into <target-project>/.agents/skills/.
  3. Copy this package's AGENTS.md to <target-project>/AGENTS.md if none exists.
  4. If <target-project>/AGENTS.md already exists, merge the Unity Superpowers sections into it without deleting project-specific rules.
  5. Preserve existing .agents/rules/ workspace rules.
  6. If Codex already installed this package under .agents/skills/, verify the existing folders instead of copying a second copy.
  7. Tell the user to reload the Antigravity window, restart Antigravity, or start a new agy session if skill discovery is not immediate.

Antigravity desktop and CLI both support project-local .agents/skills/. Use project-local installation for this package; global skill paths are not needed.

Cursor Install

For Cursor project-local installation, prefer Cursor's project skill directory and keep AGENTS.md at the project root for simple shared agent instructions.

If Cursor itself is not installed, follow Cursor's current install paths:

  • Desktop: download from https://cursor.com/downloads.
  • CLI on macOS, Linux, or Windows WSL: curl https://cursor.com/install -fsS | bash.
  • Verify CLI: cursor-agent --version.
  • Start CLI: cursor-agent.
  • Update CLI: cursor-agent update or cursor-agent upgrade.

Cursor's current CLI docs list cursor-agent. Newer Cursor CLI/changelog material may also expose an agent command. After install, use the command that exists in the user's environment; do not rewrite project guidance around an unavailable binary.

Typical shape:

<target-project>/
  AGENTS.md
  .cursor/
    skills/

Steps:

  1. Create .cursor/skills/ if it does not exist.
  2. Copy every folder under this package's skills/ into <target-project>/.cursor/skills/.
  3. Copy this package's AGENTS.md to <target-project>/AGENTS.md if none exists.
  4. If <target-project>/AGENTS.md already exists, merge the Unity Superpowers sections into it without deleting project-specific rules.
  5. Preserve existing .cursor/rules/ project rules. Do not migrate them unless the user asks.
  6. Do not use .cursorrules for new installs; Cursor treats it as legacy.
  7. Tell the user to reload the Cursor window, restart Cursor, or start a new Cursor Agent session if the new skills do not appear immediately.

Cursor supports SKILL.md Agent Skills in the editor and CLI. Cursor Project Rules live under .cursor/rules/, while project-local procedural skills should live under .cursor/skills/.

OpenCode Install

For OpenCode project-local installation, prefer OpenCode's native project skill directory and keep AGENTS.md at the project root.

If OpenCode itself is not installed, follow OpenCode's current install paths:

  • Preferred installer: curl -fsSL https://opencode.ai/install | bash.
  • Node.js: npm install -g opencode-ai.
  • Bun: bun install -g opencode-ai.
  • pnpm: pnpm install -g opencode-ai.
  • Yarn: yarn global add opencode-ai.
  • Homebrew on macOS or Linux: brew install anomalyco/tap/opencode.
  • Windows: prefer WSL for the terminal workflow. Native alternatives include choco install opencode, scoop install opencode, npm install -g opencode-ai, Mise, Docker, or a release binary.

Typical shape:

<target-project>/
  AGENTS.md
  .opencode/
    skills/

Steps:

  1. Create .opencode/skills/ if it does not exist.
  2. Copy every folder under this package's skills/ into <target-project>/.opencode/skills/.
  3. Copy this package's AGENTS.md to <target-project>/AGENTS.md if none exists.
  4. If <target-project>/AGENTS.md already exists, merge the Unity Superpowers sections into it without deleting project-specific rules.
  5. Preserve existing opencode.json and OpenCode rules.
  6. If opencode.json has permission.skill rules, ensure *-unity skills are not denied.
  7. Tell the user to restart OpenCode or start a new OpenCode session if skill discovery is not immediate.

Optional OpenCode permission snippet:

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "skill": {
      "unity-init": "allow",
      "*-unity": "allow"
    }
  }
}

OpenCode also discovers compatible skills from .agents/skills/ and .claude/skills/, but use .opencode/skills/ for an OpenCode-specific install unless the user asks for a shared multi-agent layout.

GitHub Copilot Install

For GitHub Copilot project-local installation, use AGENTS.md for agent instructions and install skills where the active Copilot surface can discover them.

If Copilot CLI itself is not installed, follow GitHub's current install paths:

  • npm on all platforms: npm install -g @github/copilot with Node.js 22 or later.
  • WinGet on Windows: winget install GitHub.Copilot.
  • Homebrew on macOS or Linux: brew install copilot-cli.
  • Install script on macOS or Linux: curl -fsSL https://gh.io/copilot-install | bash.
  • CLI command: copilot.

Typical Copilot-specific shape:

<target-project>/
  AGENTS.md
  .github/
    skills/
    copilot-instructions.md

Steps:

  1. Create .github/skills/ if this is a Copilot-specific install.
  2. Copy every folder under this package's skills/ into <target-project>/.github/skills/.
  3. Copy this package's AGENTS.md to <target-project>/AGENTS.md if none exists.
  4. If <target-project>/AGENTS.md already exists, merge the Unity Superpowers sections into it without deleting project-specific rules.
  5. If Copilot Chat, Copilot code review, or repository-wide Copilot behavior should receive always-on Unity guidance, create or merge <target-project>/.github/copilot-instructions.md.
  6. Preserve existing .github/instructions/**/*.instructions.md, .github/agents/*.agent.md, and Copilot MCP or hook configuration.
  7. Tell the user to restart Copilot CLI, reload the IDE window, or start a new Copilot agent session if skill discovery is not immediate.

GitHub Copilot also supports project skills under .agents/skills/ and .claude/skills/. For multi-agent projects, prefer .agents/skills/ first and add .github/skills/ only after discovery testing shows Copilot needs a Copilot-specific copy.

Other Coding Agents

If the target agent uses a different project-local convention:

  1. Identify the agent's project guidance filename.
  2. Identify the agent's project-local skill directory.
  3. Copy skills/ into that directory.
  4. Convert or merge AGENTS.md into the agent-specific guidance file.
  5. Keep the skill folder names unchanged.
  6. Preserve existing project guidance.

Verification

After installation, verify:

  • all 16 skill folders are present
  • every skill folder contains SKILL.md
  • installed skills exist under exactly one intended target directory unless the user requested multi-agent installation
  • installed guidance defines Unity Editor Bridge modes: unity_ai_assistant and mcpforunity
  • installed guidance keeps MCPForUnity setup only under the MCPForUnity Setup branch
  • installed guidance tells the agent to verify Unity Editor/runtime claims through Unity AI Assistant / Unity MCP or MCPForUnity evidence
  • existing project-specific guidance was preserved

If the target project already has Unity-specific skills, report conflicts before replacing them.