Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Unity Superpowers

English | 한국어

Unity Superpowers is a lightweight project-local skill pack for AI-assisted Unity game development.

Current version: 0.4.1.

It keeps the Superpowers workflow discipline while focusing on Unity-specific work: project setup, Unity Editor Bridge modes, scenes, prefabs, serialized data, packages, tests, debugging, review, and verification.

The intended first step is unity-init. It audits or prepares the Unity project before feature work so the agent knows the real project path, Git state, Unity Editor Bridge mode, active Editor target evidence, and verification surface.

The Unity 6.4 knowledge-router upgrade adds source-grounded planning references. unity-init records the target project's docs/superpowers/context/unity-agent-profile.md, brainstorming-unity routes feature intent through references/unity-feature-design-router.md, and writing-plans-unity applies decision-matrix, architecture-fit, and Unity 6.4 stale-model guardrail references when the model profile or API freshness requires it.

The UI/Scene routing upgrade adds conditional references for runtime UI, menus, HUD, buttons, text, localization, popups, loading screens, scene transitions, additive scenes, and UI ownership. brainstorming-unity routes UI/Scene design choices, writing-plans-unity expands plan surfaces for UI details, executing-plans-unity uses the MCPForUnity UI/Scene playbook only when the selected bridge is mcpforunity, and verification-before-completion-unity applies UI/Scene evidence checks before completion claims.

Contents

unity-superpowers/
  AGENTS.md
  CHANGELOG.md
  HowToInstall_AI.md
  README.md
  README_kr.md
  VERSION
  docs/
    unity-knowledge-sources.md
  skills/
    brainstorming-unity/
    compound-unity/
    dispatching-parallel-agents-unity/
    executing-plans-unity/
    finishing-a-development-branch-unity/
    receiving-code-review-unity/
    requesting-code-review-unity/
    subagent-driven-development-unity/
    systematic-debugging-unity/
    test-driven-development-unity/
    unity-init/
    using-branches-unity/
    using-superpowers-unity/
    verification-before-completion-unity/
    writing-plans-unity/
    writing-skills-unity/

Core Flow

For non-trivial Unity work:

  1. Initialize or audit the project with unity-init.
  2. Shape the feature with brainstorming-unity.
  3. Write a concrete implementation plan with writing-plans-unity.
  4. Verify current project branch safety with using-branches-unity, then execute the plan with subagent-driven-development-unity or executing-plans-unity.
  5. Use test-driven-development-unity, systematic-debugging-unity, and review skills as needed.
  6. Verify with verification-before-completion-unity.
  7. Capture reusable lessons with compound-unity.

Development Philosophy

Unity Superpowers keeps the original Superpowers discipline: understand before building, test behavior before implementation when feasible, find root cause before fixing, protect main/master with branch gates, review early, verify before claiming completion, and preserve reusable lessons.

The Unity adaptation adds one rule: Unity project state is more than code. Scenes, prefabs, .meta files, ScriptableObject assets, package manifests, asmdefs, ProjectSettings, serialized fields, layers, Animator parameters, physics settings, and active Editor targets are implementation surfaces. A Unity agent must reason about these surfaces explicitly instead of treating them as afterthoughts.

Architecture guidance is also Unity-specific. Prefer small MonoBehaviour responsibilities, GameObject composition, narrow capability interfaces, State and transition rules for mode-specific behavior, Strategy for variable policy/calculation, and ScriptableObject assets for designer-tunable data. Runtime or Editor-backed claims require Unity AI Assistant / Unity MCP or MCPForUnity evidence, plus tests, console/import checks, scene smoke, prefab smoke, or supplemental manual observation when needed.

Skill Guide

Skill Unity-specific focus How it extends Superpowers
using-superpowers-unity Routes each Unity request to the Unity-specific skill set and checks project readiness, project-local skills, docs/solutions/, and Unity Editor Bridge target identity. Keeps the "use the right skill first" discipline while preventing fallback to generic workflows for Unity scene, prefab, and Editor work.
unity-init Audits or creates Unity project structure, Git state, package state, Unity Editor Bridge setup, active Editor target, import/compile/console evidence, smoke-test readiness, and agent model profile. Turns Superpowers setup discipline into a Unity workspace readiness gate before design or implementation.
brainstorming-unity Asks Unity-native design questions: genre loop, input source, movement model, camera, scene/prefab boundaries, component ownership, animation, physics, UI, data assets, packages, and verification surface. For UI/Scene work, it also settles UI system, scene ownership, hierarchy or visual tree, button/event flow, text/font/localization, and evidence. Keeps design-before-build, but makes the design include Unity architecture and Editor/runtime wiring rather than only code behavior.
writing-plans-unity Plans code, scene, prefab, asset, serialized-field, package/settings, asmdef, test, and Editor bridge work with exact paths and expected evidence. For UI/Scene work, it also maps UI Surface details such as system, owner, hierarchy/visual tree, text/font, interaction, layout, and visual evidence. Keeps implementation plans executable for a fresh worker, with Unity surfaces and verification treated as first-class tasks.
using-branches-unity Verifies current project branch, dirty state, submodule state, and active Editor Bridge target identity before Unity implementation. Keeps work protected without duplicating Unity project folders or invalidating Editor import/bridge state.
subagent-driven-development-unity Splits work by Unity ownership boundaries: runtime scripts, editor tooling, asmdefs/packages, tests, scene integration, prefab integration, and data assets. Keeps fresh subagent per task and two-stage review, but forbids parallel edits to shared Unity serialized state.
dispatching-parallel-agents-unity Allows parallel work only across independent Unity surfaces and makes shared scenes, prefabs, assets, manifests, .meta, and ProjectSettings sequential. Keeps parallelism useful without trading speed for Unity serialization conflicts.
executing-plans-unity Executes approved plans with checkpoints for active Editor bridge target, Unity surfaces, compile/console, tests, scene smoke, and prefab smoke. For mcpforunity UI/Scene work, it uses the MCPForUnity UI/Scene operation playbook; unity_ai_assistant work records selected bridge evidence paths and gaps instead. Keeps plan execution disciplined when subagents are unavailable or a separate execution flow is preferred.
test-driven-development-unity Applies TDD to Unity with pure C#, EditMode, PlayMode, condition-based waits, physics-aware waits, and copy-safe Unity C# examples. Keeps red-green-refactor while respecting Unity test mode boundaries and runtime timing.
systematic-debugging-unity Traces Unity bugs through console logs, Editor state, package/import state, scene/prefab wiring, serialized references, physics timing, and active Editor bridge target mismatches. Keeps root-cause-first debugging and adds Unity evidence paths before changing code or assets.
requesting-code-review-unity Reviews code and Unity artifacts together: MonoBehaviour boundaries, interfaces, state/strategy/data assets, serialized wiring, scene/prefab/asset changes, asmdefs, packages, and evidence. Keeps early review while making Unity behavior risk part of the review surface.
receiving-code-review-unity Evaluates feedback technically before applying it and verifies Unity-specific claims with compile, console, tests, asset inspection, or runtime evidence. Keeps review rigor and prevents unverified changes to Unity wiring or architecture.
verification-before-completion-unity Requires active bridge identity, Application.dataPath or equivalent Unity-observed evidence, compile state, console state, EditMode/PlayMode tests, asset inspection, and scene/prefab smoke evidence. For UI/Scene claims, it requires visual, callback, font/text, scene, console, and test or smoke evidence as applicable. Keeps evidence-before-assertions for Unity Editor and runtime claims.
finishing-a-development-branch-unity Finalizes Unity work only after fresh verification and then guides merge, PR, preserve, or discard choices. Keeps branch completion explicit while protecting Unity assets and generated state.
compound-unity Captures solved Unity blockers and reusable lessons about Editor bridge state, scene/prefab serialization, .meta GUIDs, package issues, test timing, and architecture decisions. Keeps lessons reusable so future agents do not rediscover Unity-specific workarounds.
writing-skills-unity Creates or revises Unity process skills with pressure scenarios involving scene verification, prefab wiring, PlayMode timing, Unity Editor Bridge modes, and oversized MonoBehaviour risks. Keeps skill-writing as TDD for process documentation, with Unity-specific failure modes in the tests.

What unity-init Does

unity-init prepares or repairs a Unity workspace before implementation work. It does not silently mutate the project. It explains the change and asks for approval before project creation, Git setup, package installation, Unity Editor Bridge configuration, Codex config edits, remotes, or Git LFS setup.

It checks:

  • Unity project markers: Assets/, Packages/manifest.json, ProjectSettings/ProjectVersion.txt
  • Git repository and remote state
  • installed Unity Editors and available project templates
  • Unity Editor Bridge package/config/tool visibility
  • active Editor bridge target and Application.dataPath or equivalent Unity-observed identity evidence
  • import, compile, console, EditMode, and PlayMode verification surface

If the current folder is not a Unity project, unity-init asks whether to create the project automatically or wait for manual Unity Hub creation. For automatic creation, it asks for the missing project-shaping choices:

  • project name
  • Unity version or installed Editor
  • template, such as 2D, 3D, URP, HDRP, or Mobile
  • render pipeline: Built-in, URP, or HDRP
  • target platform

For automatic creation, it verifies the selected template before touching the real folder. If Unity project creation does not apply the requested template correctly, it can use the template ProjectData~ fallback while preserving .meta files and avoiding blind overwrites.

It can also set up the Unity development harness:

  • initialize Git after approval
  • create or merge a Unity .gitignore
  • ask for a remote URL before adding a remote
  • offer Git LFS for large binary assets
  • ask for bridge mode before installing or configuring Editor integration
  • configure the selected Unity Editor Bridge after approval
  • route bridge-specific setup to the sections below
  • verify the active Unity Editor target before trusting Unity tools

Final reporting from unity-init should include the project path, Unity version, creation path, template, render pipeline, target platform, manifest changes, Git state, editor_bridge_mode, bridge_state, identity_evidence, compile/console evidence, test readiness, selected bridge evidence gaps, and the next recommended skill.

Unity Editor Bridge

Unity Editor integration is modeled as Unity Editor Bridge, not as one required tool.

Bridge modes:

  • unity_ai_assistant: Unity AI Assistant + Unity MCP Server.

  • mcpforunity: external coding agent + MCPForUnity.

  • unity-init asks which bridge to use before installing or configuring Editor integration.

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

  • Unity Editor work uses either Unity AI Assistant / Unity MCP or MCPForUnity.

  • Scene, prefab, .meta, package, asmdef, ProjectSettings, and serialized-field changes are first-class implementation surfaces.

  • Multiple Unity Editor instances must be treated as a routing risk until the active Editor bridge target is verified.

UI/Scene Routing

UI/Scene work is handled as a specialization of the existing Unity Superpowers flow, not as a separate skill. Requests involving runtime UI, menus, HUD, buttons, text, localization, popups, loading screens, scene transitions, additive scenes, UI ownership, or world-space UI should route through the normal design, planning, execution, and verification skills with the UI/Scene references loaded only when relevant.

The conditional references are references/unity-ui-scene-design-router.md, references/unity-ui-scene-implementation-matrix.md, references/mcpforunity-ui-scene-operation-playbook.md, and references/ui-scene-verification-checklist.md.

Runtime game UI should first evaluate uGUI, especially when the project already uses Canvas, TextMesh Pro, prefabs, inspector wiring, gamepad navigation, HUD, mobile controls, or world-space UI. UI Toolkit remains a strong fit for Editor UI, tooling UI, UXML/USS workflows, document-like overlays, settings/list screens, and MCPForUnity manage_ui automation.

MCPForUnity manage_ui is UI Toolkit-focused. It must not be described as a high-level builder for legacy Canvas, Button, or TextMesh Pro UI. uGUI automation should use prefab-first workflows, GameObject/Component/Prefab operations, approved editor code, or project custom tools, with screenshot, hierarchy, component, callback, font/text, console, and test or smoke evidence.

Unity AI Assistant / Unity MCP Setup

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

Facts and constraints:

  • 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.
  • The agent must 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. unity-init can install and configure it after approval by adding the Unity package to the project, running the MCPForUnity client configurator when available, and checking that Codex can see MCPForUnity tools.

Manual setup:

  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/refresh the AI coding agent if MCP tools do not appear.
  6. Before using Unity tools, verify the active MCPForUnity target and Application.dataPath.

MCPForUnity docs list Unity 2021.3 LTS or newer, Python 3.10+ with uv, and an MCP client as prerequisites. The same docs list Git URL, Asset Store, and OpenUPM install paths.

Links: MCP for Unity GitHub, install docs, OpenUPM package.

Install

Ask an AI coding agent to read HowToInstall_AI.md and install this pack into the target project for the agent you use.

Supported install targets:

  • Codex
  • Claude Code
  • Antigravity
  • Cursor
  • OpenCode
  • GitHub Copilot
  • other coding agents with project-local guidance and skill directories

For projects that use multiple coding agents, use the Multi-Agent Install section in HowToInstall_AI.md before copying skills. The shared instruction file is AGENTS.md; add CLAUDE.md only when Claude Code is used.

For Codex, the target shape is usually:

<UnityProject>/
  AGENTS.md
  .agents/
    skills/
      <all skill folders>

After installation, restart or refresh the coding agent if it does not discover project-local skills immediately.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages