refactor(unity-cli): split command catalog into references + index#27
Merged
andresbayon merged 1 commit intoJul 8, 2026
Merged
Conversation
SKILL.md was ~1,493 lines (~15.5k tokens) and loaded in full on every trigger, even for a narrow lookup like "install an editor". Split the command catalog (~78% of the doc) into grouped reference files that load lazily, keeping only the high-frequency core in SKILL.md. - SKILL.md (now ~311 lines / ~3.5k tokens): install/verify, global flags, env vars, exit codes, a compact command index table (preserves the full command surface + descriptions cheaply so nothing is "hidden"), and Common workflows. - references/: auth-license-cloud, editors-install, projects-templates, config-hub, build-run-test, diagnostics-maintenance, integration-advanced. Content preserved verbatim: all 32 command sections move unchanged; heading sets are identical and line accounting balances exactly (1,197 body lines + 7x8 header lines). Fixed the one cross-reference the split invalidated. No behavior change — purely per-trigger token/latency reduction for the common narrow-lookup case, following the repo's "move long reference material into separate files" guidance. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Base automatically changed from
new-unity-project
to
unity-cli/add-new-project-workflow
July 8, 2026 14:19
ad2ed39
into
unity-cli/add-new-project-workflow
3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Splits the
unity-cliskill's command catalog into lazy-loaded reference files, keeping a leanSKILL.mdwith a command index.Stacked on #26 → #25. Merge those first; GitHub retargets this to
mainautomatically.Why
SKILL.mdwas ~1,493 lines (~15.5k tokens), and the## Commandscatalog alone was ~78% of it. That whole doc loads on every trigger — so "install an editor" also pulls in Android signing flags, the connected-editor pipeline, dev-only commands, MCP config, etc.Skills load progressively: the
SKILL.mdbody loads in full when triggered, but reference files load only when read. Moving the situational bulk into references cuts the per-trigger baseline for the common narrow-lookup case, and it compounds now thatnew-unity-projectdelegates intounity-cli.Result
SKILL.md: ~311 lines (~3.5k tokens) — install/verify, global flags, env vars, exit codes, a compact command index table, and Common workflows.references/(7 files):auth-license-cloud,editors-install,projects-templates,config-hub,build-run-test,diagnostics-maintenance,integration-advanced.The index table keeps the full command surface + one-line descriptions in-context cheaply, so the model never misses that a command exists — it just reads the one group file it needs for exact flags. This avoids the main downside of splitting (partial-view answers).
Safety of the move
references/…links verified to resolve; "below/above" mentions inside each reference point within that same file.🤖 Generated with Claude Code