# unikit

Adopt this skill: https://proskills.md/skills/other/nintendadev-unikit-ai-skills-unikit

Page: https://proskills.md/skills/other/nintendadev-unikit-ai-skills-unikit
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/unikit/SKILL.md
size: 8048
upstream: https://github.com/nintendadev/unikit-ai/blob/main/skills/unikit/SKILL.md

```text
---
name: unikit
description: >-
  Initialize the UniKit framework in a project. Scans the current project to detect
  the engine and real tech stack, then generates the base framework documents that
  give AI agents context about the project — the resolved project description, the
  architecture doc, AGENTS.md, and the user-editable .unikit/config.yaml. This is the one-time, whole-project setup
  run before any other unikit skill. Use whenever the user wants to initialize, set up,
  or onboard the framework, e.g. "initialize unikit", "init the framework", "set up
  unikit", "set up the project", "configure AI context", "scan my project and set it
  up", "bootstrap the project". It also actualizes the config of a project already set up —
  say "update the config", "add missing settings", "actualize configuration", "fix my config".
argument-hint: "[project description] (optional)"
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Bash(mkdir *)
  - Bash(ls *)
  - Bash(find *)
  - Bash(git *)
  - Skill
  - Agent
  - AskUserQuestion
---

# UniKit Setup — Game Project Context Initialization

Set up AI agent context for a game project by:
1. Scanning the real tech stack from engine-specific sources
2. Bootstrapping `.unikit/config.yaml` (user-editable source of truth for language, git, and workflow)
3. Generating `.unikit/DESCRIPTION.md` — project specification
4. Generating `AGENTS.md` — structural map for AI agents
5. Bootstrapping the knowledge base under `.unikit/memory/` via the rules registry — the `code` module (`core/` + `stack/`) always, plus the `gamedesign` design library when its skills are installed
6. Delegating architecture generation to `/unikit-architecture`
7. Printing the setup summary as the final, user-facing confirmation that all artifacts are in place

The architecture sub-skill is invoked **before** the summary so the summary can honestly list `.unikit/ARCHITECTURE.md` alongside the other artifacts. When `/unikit-architecture` returns, do not end the turn — immediately print the Step 11 summary in the same response.

This skill is the entry point for the unikit ecosystem. It creates the foundational
context that other unikit skills (`unikit-devcontext`, `unikit-plan`, `unikit-implement`, etc.)
rely on for informed decision-making, including the canonical `.unikit/config.yaml` they all
read at the start of every command.

---

## Execution Contract

This skill must be executed as a strict workflow, not as guidance.

1. Steps are numbered 0-11; execute in order. Do not skip, merge, reorder, or compress steps unless the step explicitly says it may be skipped. **Carve-out for a mode declared in Step 0:** such a mode is entitled to finish with a STOP before Step 1, and Steps 1-11 then do not run for it at all.
2. Do not infer user answers from context when the workflow requires an AskUserQuestion step.
3. Do not substitute a recommendation, summary, or "seems fine" confirmation for a required question. A generic approval ("yes", "ok", "go ahead") only answers the immediately pending question — it does not retroactively authorize skipped selections or unanswered follow-ups.
4. Do not create, edit, or install anything outside `.unikit/config.yaml` and `.unikit/system/LANGUAGE_RULES.md` before Step 4 is complete. After Step 4, every write must satisfy its own step's prerequisites (e.g., Step 9 rule installs require the missing-rules list from Step 9.3 and user confirmation from Step 9.4). **Narrowed for the config actualization mode:** its single writable artifact is `.unikit/config.yaml`, and `.unikit/system/LANGUAGE_RULES.md` is excluded from it explicitly — Step 3.1 is marked "Both bootstrap and merge mode" and must not be read as permission for that mode.
5. If the environment prevents a required step (tool unavailable, file missing, subagent unreachable), stop and print `BLOCKED at Step N: <reason>`. Do not silently substitute an approximation.
6. Every user-facing output of this skill is plain markdown — no HTML tags, in any step. Step 7 states the contract in full.

## Skill calls

Where this skill says to **invoke `<skill>`** — optionally "with the argument `<text>`" — it means one call, made in this session, now, on every runtime: not a command printed for the user and not a delegation (delegations are the `Agent(...)` blocks of Steps 9.8 and 10). A call site that names no argument passes none.

1. If you have a `Skill` tool that accepts arguments, call it with that skill and the arguments of the call site, in full and unchanged, then follow the skill.
2. Otherwise — no `Skill` tool, or one that takes only a name — Read `{{skills_dir}}/<skill>/SKILL.md` in full, treat it as the instructions of this step and carry them out here, in this session, now, with the arguments of the call site as the skill's arguments.
3. When the skill has run, go on to the step the call site names. Do not print a command for the user to run and do not stop.
4. Only if that file cannot be read: print `Run: /unikit-<skill> <arguments>` for the user and stop.

---

## Workflow

**Fixed order — always.** Regardless of whether `/unikit` is invoked with or without arguments, the first three user-facing decisions are always language → git → write config. Only after `.unikit/config.yaml` exists on disk do we ask the user for a project description, load engine rules, scan, or do anything else. This guarantees that every subsequent prompt and artifact respects the user's language choice. **This fixed order describes the bootstrap flow only.** A mode declared in Step 0 stops before Step 1 and is therefore not governed by it — the Step 0 dispatch is reached before the first user-facing decision, and treating this preamble as a second gate in front of it is what makes a declared mode unreachable.

### Step 0: Load Existing Config (if any)

Check whether `.unikit/config.yaml` already exists. This step performs **no user interaction** and parses **no arguments**. The one thing it reads besides the file is the **intent** of the prompt, and only to select the mode below: classifying intent picks a branch and never a value, so item 2 of `## Execution Contract` holds literally.

- **If it exists** — Read it. Treat its values as the source of truth for `language.*`, `git.*`, `workflow.*`. Mark Steps 1 / 2 / 3 as "merge mode": prefer existing values, prompt only when a critical field is missing or empty.
- **If it does not exist** — set "bootstrap mode": Steps 1 / 2 / 3 will collect values from the user / git and write a fresh `config.yaml`.

**Mode dispatch — config actualization.** If `.unikit/config.yaml` **exists** and the intent of the prompt is to actualize / update / repair the configuration (for example "update the config", "add missing settings", "actualize configuration", "fix my config"), load `{{skills_dir}}/{{self_name}}/references/mode-config.md` and follow it (it STOPs; Steps 1-11 do not run). On entering the mode print one line, so that skipping nine steps reads as a decision rather than as work breaking off:

`INFO [config] actualization mode — Steps 1-11 skipped`

There is no keyword and no argument for this mode; it is chosen by intent alone, which is why `argument-hint` does not mention it. If `.unikit/config.yaml` does **not** exist the mode never applies — there is nothing to actualize, and the ordinary bootstrap is the correct route.

All unikit artifacts live under fixed default paths (`.unikit/DESCRIPTION.md`, `.unikit/ARCHITECTURE.md`, `.unikit/RULES.md`, `.unikit/memory/`, `.unikit/code/plans/`, etc.) — see `{{skills_dir}}/{{self_name}}/references/config-template.yaml` for the canonical `language` / `workflow` / `git` schema.

---

### Step 1: Language Resolution

Determine the language used for AI-agent communication and generated artifacts. **This runs before `$ARGUMENTS` is parsed and before the project description prompt**, so that every subsequent question in this run is asked in the user's chosen language.

**Bootstrap mode** 
```

## File: README.md
upstream: https://github.com/nintendadev/unikit-ai/blob/main/README.md

````text
<p align="center">
  <a href="https://www.npmjs.com/package/unikit-ai">
    <img src="https://img.shields.io/npm/v/unikit-ai?label=version" alt="Version" />
  </a>
  <a href="https://github.com/NintendaDev/unikit-ai/actions/workflows/tests.yml">
    <img src="https://img.shields.io/github/actions/workflow/status/NintendaDev/unikit-ai/tests.yml?branch=main&label=tests" alt="Tests" />
  </a>
  <a href="https://github.com/NintendaDev/unikit-ai/blob/main/docs/skills.md">
    <img src="https://img.shields.io/badge/skills-39-8b5cf6" alt="Skills" />
  </a>
  <a href="https://unikit.nintenda.dev/">
    <img src="https://img.shields.io/badge/official%20site-unikit.nintenda.dev-0ea5e9" alt="Official Site" />
  </a>
</p>

<p align="center">
  <a href="https://ko-fi.com/nintendadev">
    <img src="https://img.shields.io/badge/Ko--fi-F16061?style=flat&logo=ko-fi&logoColor=white" alt="Ko-fi" />
  </a>
  <a href="https://boosty.to/nintendadev">
    <img src="https://img.shields.io/badge/Boosty-FF6B00?style=flat&logo=boosty&logoColor=white" alt="Boosty" />
  </a>
</p>

<p align="center">
  <img src="https://github.com/NintendaDev/unikit-ai/blob/main/img/unikit-logo.png" alt="UniKit AI Logo" />
</p>

# UniKit AI

> **The AI Development Pipeline for Games: design, code, and the engine editor**

Building a game with AI usually breaks in the same place: the agent writes a class, and then stops. The design lives in someone's head, the scene lives in the editor, and neither is something a prompt can reach. UniKit AI closes that gap - it authors the **game design**, plans and writes the **code** against a memory of your engine and stack, and carries the same plan into the **engine editor** through the engine bridges - the engine's MCP servers and, for Unity, the Unity CLI. An engineered pipeline instead of vibe-coded prompts.

## Why UniKit AI?

- **Spec-driven development cycle** - explore the idea, plan, implement, review, verify, document. Each step reads the artifact the previous one wrote: no prompt engineering, no re-explaining the project every session, and a plan you can read and correct *before* a line is written. Predictable enough that a small model can execute a plan a large one made
- **Almost the whole cycle, not just the code** - design the game, write the code, work in the editor. One pipeline covers all three, and a single plan can mix code tasks with editor tasks
- **Engine bridges, used to the full and checked** - the agent gets real-time feedback from the running editor through the bridges you selected (the Unity CLI and the MCP servers of the engine): console, compilation errors, test runs, editor state. Every result is read back from the editor rather than taken from the bridge's response
- **Framework rules out of the box** - ready-made rules for engine modules and popular frameworks from the [official registry](https://github.com/NintendaDev/unikit-ai-rules). Plug in your own Git registry to carry a private rule library across projects, or generate fresh rules from your codebase on the fly
- **Dynamic memory** - one memory for all engine frameworks instead of a separate skill per library. Core rules are always loaded, stack rules are pulled in by task context - saving tokens and keeping the context window lean
- **Self-learning memory** - the agent turns bug fixes and code reviews into patches, then distills them into improved project rules. The system gets smarter with every fix

## Scope

UniKit AI covers three layers of game development:

| Layer             | What it covers                                                                                                |
| ----------------- | ------------------------------------------------------------------------------------------------------------- |
| **Game design**   | concept, pillars, systems, flows, content schemas - a machine-readable design that code plans read from       |
| **Game code**     | architecture, systems, tests, refactoring, review, documentation                                              |
| **Engine editor** | scenes, prefabs, UI, materials, animation, assets, project settings - planned as explicit tasks, executed through the engine bridges |

Editor work is a first-class part of a plan, not an afterthought: it is planned next to the code, carried out through the engine bridges and verified by reading the result back from the editor. See [Editor tasks](docs/plan-files.md#editor-tasks).

Art production, audio authoring, and store/build pipelines are **not** covered.

## Supported Engines

Each engine ships one or more bridges to the editor - MCP servers and, for Unity, the Unity CLI. You can select several; the order you set decides which is used first. A fresh Unity setup selects only Unity CLI by default; other bridges are opt-in. The versions are each vendor's own minimum. UniKit AI reads the Unity version from `ProjectSettings/ProjectVersion.txt` and looks for `unity` on your `PATH` to label a detected CLI in the wizard; detection does not change the selection. It does not check the minimum version of any other bridge, so check yours before accepting the defaults.

| Engine                 | Engine bridges (default order)                                                                                                                                                                                                                                                      |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Unity                  | [Unity CLI](https://docs.unity.com/en-us/unity-cli) (Unity 6000.0+, with the `com.unity.pipeline` package) · [Unity Biome MCP](https://github.com/german-krasnikov/unity-biome-mcp) (Unity 6000.0+) · [Coplay Unity MCP](https://github.com/CoplayDev/unity-mcp) (Unity 2021.3 LTS+)                                                                                                                    |
| Godot 4 / Godot 4 .NET | [Fennara Godot AI](https://github.com/fennaraOfficial/fennara-godot-ai) - free (Godot 4.5+) · [GDAI Godot MCP](https://github.com/3ddelano/gdai-mcp-plugin-godot) - paid (Godot 4.1+) · [Coding-Solo Godot MCP](https://github.com/Coding-Solo/godot-mcp) - free (no declared minimum) |
| Unreal Engine 5        | [ChiR24 Unreal MCP](https://github.com/ChiR24/Unreal_mcp) (Unreal Engine 5.0+)                                                                                                                                                                                                          |

See [Configuration](docs/configuration.md#engine-bridge-rules-trees) for how UniKit AI works with each bridge.

---

## Supported Agents

| Agent             | Config Directory | MCP Support                     |
| ----------------- | ---------------- | ------------------------------- |
| Claude Code       | `.claude/`       | Yes (`.mcp.json`)               |
| Codex CLI         | `.codex/`        | Yes (`.codex/config.toml`)      |
| Cursor            | `.cursor/`       | Yes (`.cursor/mcp.json`)        |
| Qwen Code         | `.qwen/`         | Yes (`.qwen/settings.json`)     |
| OpenCode          | `.opencode/`     | Yes (`opencode.json`)           |
| Antigravity       | `.agents/`       | Yes (`.agents/mcp_config.json`) |
| Kimi Code         | `.kimi-code/`    | Yes (`.kimi-code/mcp.json`)     |
| Universal / Other | `.agents/`       | Yes (`.mcp.json`)               |

Select one or more during `unikit-ai init`. See [Agents](docs/agents.md) for agent-specific caveats.

---

## Installation & Quick Start

```bash
npm install -g unikit-ai    # install
unikit-ai self-update       # later: update the CLI itself from npm
unikit-ai update            # bring the project up to the instal
````
