/kokodudu:unity-setupfrom kokodudu skills
Set up a Unity project for Claude Code with the kokodudu skills - CLAUDE.md, packages, code rules, .editorconfig and the kokodudu workflow
Ships in kokodudu skills. Installing the plugin adds it to Claude Code.
Prepare the current Unity project so that Claude works in it with the kokodudu skills, following the project's own code flow. Flow: inspect read-only, show the plan, wait for an explicit yes, act, verify, report. Make no change before the yes.
The shared files this command copies from live in the plugin:
${CLAUDE_PLUGIN_ROOT}/references/ (unity-code-rules.md,
unity-workflow.md, .editorconfig).
| Item | What it does |
|---|---|
| CLAUDE.md | Runs Claude Code's own /init when the project has no CLAUDE.md. |
| Packages | Adds the Unity packages and the OpenUPM scoped registry below to Packages/manifest.json, pinned to the versions of the reference project. |
| Code rules | Appends the UniTask and UniRx rules to CLAUDE.md when those packages are present and the rules are not. |
| .editorconfig | Copies the plugin's .editorconfig when the project has none. |
| Workflow block | Writes the kokodudu workflow block into CLAUDE.md (between <!-- kokodudu:start --> and <!-- kokodudu:end -->) so the agent uses the kokodudu skills along the project's own flow. |
| Invariants | Proposes a short "Invariants" section for CLAUDE.md (what must stay true: architecture rules, boundaries, non-negotiables) built from the project's own docs, plus optional CLAUDE.md files for subfolders such as the tests. Written only after the user confirms the exact text. |
| Plugins and init | Tells the user the /plugin and /kokodudu:init commands to run. Check only. |
Packages (all pinned, none installed unless missing):
| Package | Version | Registry |
|---|---|---|
com.cysharp.unitask | 2.5.10 | OpenUPM |
com.neuecc.unirx | 7.1.0 | OpenUPM |
jp.hadashikick.vcontainer | 1.17.0 | OpenUPM |
com.kyrylokuzyk.primetween | 1.3.3 | OpenUPM |
com.unity.addressables | 2.9.1 | Unity |
com.unity.inputsystem | 1.19.0 | Unity |
com.unity.render-pipelines.universal | 17.3.0 | Unity |
com.unity.test-framework | 1.6.0 | Unity |
OpenUPM scoped registry: name OpenUPM, url https://package.openupm.com,
scopes com.cysharp.unitask, com.kyrylokuzyk, com.neuecc.unirx,
jp.hadashikick.vcontainer.
Editing Packages/manifest.json and CLAUDE.md changes tracked files, so the
package edit needs its own explicit yes, named as such. The MCP for Unity
package is not handled here: /kokodudu:init adds it.
ProjectSettings/ProjectVersion.txt exists. If not, say so
and stop. Report the Editor versiongit rev-parse --show-toplevel. Not a git repo: warn, continuePackages/manifest.json: which of the packages above are present (any
version), which are missing; does the OpenUPM scoped registry exist, and
which of its scopes are missing. A package present with a different
version is left alone and listed, never changedCLAUDE.md and AGENTS.md: exist? Does CLAUDE.md already contain a
kokodudu block (<!-- kokodudu:start -->)? UniTask or UniRx rules already
(grep -n "UniTask\|UniRx")?.editorconfig at the repo root: exists?dev if git branch -a lists it, else the default branch;
say which and whyCLAUDE.md, AGENTS.md,
README.md, docs/ and scripts (for example Tools/). Typical sources:
a Unity CLI (unity recompile, unity command test run), a compile script,
a test hook. Record the command exactly as the project writes it, with the
file it came from. Not found: leave it outdotnet build driven by a script under Tools/). Record it on
its own line, because parallel agents in worktrees rely on it. Not found:
leave it outCLAUDE.md already have a section about architecture
rules, boundaries or non-negotiables? Read what states them: docs/
(architecture, design, guides), the assembly layout (*.asmdef names and
their references), README.md. Collect only rules the sources actually state
(for example "feature code does not reference the editor assembly"), each with
its source file. Which subfolders have their own conventions that differ from
the rest (for example the tests folder)?kokodudu marketplace known? Check
~/.claude/plugins/known_marketplaces.json and
~/.claude/settings.json (grep -l kokodudu). Is .gitnexus/
present (a sign that /kokodudu:init was run)?Show exactly what will change, mark each item done, skipped (and why) or to do:
/init through the Skill tool, only if CLAUDE.md does
not exist. If it exists, skipdependencies, the exact
scopedRegistries entry or the scopes to add, and the git diff they
produce. List packages skipped because they are present, and those present
with another version (not changed). Say that Unity must be refocused to
resolve them, and that Packages/packages-lock.json will change${CLAUDE_PLUGIN_ROOT}/references/unity-code-rules.md
to CLAUDE.md. Only if UniTask or UniRx is in the manifest (already, or
approved in item 2) and the rules are not in the file${CLAUDE_PLUGIN_ROOT}/references/.editorconfig to
the repo root. Skip if one existsCLAUDE.md or replaces the existing
kokodudu block. The block never changes anything outside its markersCLAUDE.md (for example
Assets/Scripts/Tests/CLAUDE.md). Skip the item when CLAUDE.md already has
such a section. The user can remove or edit lines before confirming/plugin marketplace add <path or repo of kokodudu-skills>,
/plugin install kokodudu@kokodudu, /plugin install gitnexus@kokodudu,
/plugin install notion-workspace-plugin@kokodudu, and /kokodudu:init
(GitNexus, Caveman, the MCP for Unity package, the gh and git
identity check)State that nothing is committed. Ask with AskUserQuestion: Confirm for items 1, 3, 4, 5, a separate question for item 2, and another for item 6 (each Confirm / Skip / Cancel). The user may approve only some items: do exactly those. Only a Confirm counts.
Only after the yes, in the order above.
Packages/manifest.json with the Edit tool, keeping its
existing formatting and key order; add dependencies without touching the
existing ones, then the scoped registry (or only the missing scopes). The
result must stay valid JSONCLAUDE.md with Edit or Write; never rewrite or reorder what is
already there. A replaced kokodudu block keeps everything outside its markersCLAUDE.md exactly as shown. A
subfolder CLAUDE.md is created only if it does not exist and was confirmedPackages/manifest.json: every approved line is there, commas and
braces are balanced, nothing else changed (git diff on the file shows only
the approved lines)CLAUDE.md: markers present once, project flow
as shown to the user.editorconfig exists if it was approvedOne short list: per item, done, skipped (and why) or failed. Then:
Packages/manifest.json,
Packages/packages-lock.json (after Unity resolves), CLAUDE.md,
.editorconfigpolish-code and commit and waits for a Confirm. This command cannot verify
that the agent follows the blockWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub philong1st/kokodudu-skills --plugin kokodudu3 commands in this plugin
Other plugins' commands for the same job