SuperAPI AI Directory

unity-cli-sync-catalog

Coding & development

View repository

Updated 10-16 02:31

About this skill

Unity CLI Sync Catalog (maintainer)

Audience: plugin maintainers. This audits whether the static built-in tables in the unity-cli-command skill have drifted from the commands registered in the running Editor (new actions added upstream, removed actions, changed signatures). It does not touch the per-project custom-command cache — for that, use the unity-cli-refresh-commands skill.

Running cs: below, cs is shorthand for python "$HOME/.unity-cli-plugin/current/cli/cs.py" — one stable path, run verbatim without changing directory. If it's not installed yet, run the unity-cli-setup skill once first.

Steps:

  1. Fetch the live command list:
python "$HOME/.unity-cli-plugin/current/cli/cs.py" list-commands --json --project "$(pwd)"
  1. Parse data.commands from the JSON output. This contains all registered commands (built-in + custom).

  2. Compare with the static catalog in the unity-cli-command skill's SKILL.md. The built-in namespaces are: editor, gameobject, component, transform, material, prefab, project, scene, screenshot, profiler, session, command.

  3. Report differences:

    • New commands not in SKILL.md → suggest adding them
    • Removed commands in SKILL.md but not live → suggest removing them
    • Changed signatures (different args) → suggest updating
  4. If custom commands exist outside the built-in namespaces, also use the unity-cli-refresh-commands skill to update the custom command cache.