/unity-version-control:uvcs-corefrom unity-version-control
Core knowledge for Unity Version Control (UVCS, formerly Plastic SCM) and its cm command line: how UVCS concepts differ from git, object specs (br:, cs:, lb:, sh:, serverpath:), which cm command answers which question, read-only vs mutating vs irreversible commands, how to name UVCS objects and build deep links (plastic://, or unityhub:// when the workspace is a Unity project) when reporting results, and curated cm recipes for status, find queries, diff and patch, history, branches, checkin, shelves, merge requests and code reviews. Use whenever composing or running any cm command, or when the user mentions UVCS, Unity Version Control, Plastic SCM, cm, changeset, cset, workspace, selector, branch, label, shelve, shelveset, checkin, annotate, merge request, MR, pull request, PR, code review, reviewer, xlink, plastic:// or unityhub:// links. Every UVCS workflow skill builds on this one — load it first.
Ships in unity-version-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
cm is the UVCS command line. This is not git: commands, concepts, and grammar differ.
Never fall back to git commands or git assumptions in a UVCS workspace.
Verified against cm 11.0.16. Anything version-sensitive is marked.
Check the CLI is available: cm version. If missing, stop and tell the user to install the
Unity Version Control client (it ships cm) — do not improvise with git.
Check where you are: cm status --header prints the workspace's current
branch@repo@server and head changeset, the branch as its full path:
/main/task055@mygame@myorg@cloud (cs:4207 - head)
If the current directory is not inside a workspace it errors (<path> is not in a workspace.) — server-side queries (cm find, cm log) still work from anywhere.
Identify the user when needed: cm whoami.
| UVCS term | Closest git idea | Key differences |
|---|---|---|
| Repository | remote repo | Lives on the server, addressed repo@server (e.g. mygame@myorg@cloud). No local repo. |
| Workspace | working tree / clone | Local directory mapped to a repo. No staging area, no local commits: checkin goes straight to the server. Several on the same repo are normal, each with its own selector and pending changes. |
| Selector | HEAD | What the workspace points to: a branch, changeset, label, or shelve. Change with cm switch. |
| Changeset (cset) | commit | Immutable snapshot with per-repo integer id (cs:42) and a GUID. Belongs to exactly one branch. |
| Revision | blob | One file's content at one changeset, addressable by revid. |
| Branch | branch | A first-class server object with owner, comment, attributes — not a moving pointer. Hierarchical names: /main, /main/task001, /main/task001/fix2. |
| Checkout | (none) | Marking a file "I'm editing this" (cm checkout). Not git checkout — switching is cm switch. Most workflows edit without checkout; the file then shows as Changed. |
| Shelve (shelveset) | stash | Server-side, has an integer id (sh:12), shareable, not attached to a branch's history. |
| Label | tag | First-class object attached to one changeset. |
| Attribute | (none) | Typed key/value metadata settable on branches, changesets, labels (e.g. status=RESOLVED). |
| Xlink | submodule | Directory link mounting another repo at a specific changeset inside the parent repo. |
| Merge request (MR) | pull request | Server object proposing a merge of a source branch into a destination branch, with reviewers and a comment thread. Same object as a code review, plus the merge proposal. |
| Code review | PR review | Reviewers, statuses, and inline/conversation comments on a changeset or shelve. For a branch, the merge request is the workflow. |
| Merge | merge | Creates a merge changeset on the destination branch. There is no rebase command (see references/branches-and-merge.md). |
There is no cm worktree, and none is needed: with no local repository to share, a second working
copy — for a parallel task, or an agent per branch — is just another workspace on the same repo,
deleted when done. Invocations and the delete gotcha: references/commands.md.
Most commands take object specs, not bare names. cm help objectspec is the authoritative list.
| Prefix | Object | Example |
|---|---|---|
br: | branch | br:/main/task001 — always the full path from /main |
cs: | changeset | cs:42, or by GUID |
lb: | label | lb:v1.2.0 |
sh: | shelve | sh:12 (ids are positive in the CLI) |
att: | attribute name | att:status |
serverpath: | file at a path | serverpath:/src/Player.cs#br:/main/task001 — without #br:/#cs: it resolves against the current selector |
revid: | one file revision | revid:1234@rep:mygame@repserver:myorg@cloud |
rep: / repo@server | repository | rep:mygame@repserver:myorg@cloud, short form mygame@myorg@cloud |
repserver: | server | repserver:myorg@cloud |
Two traps make guessing expensive here, so route the question before composing a command:
Most specialized commands only act. cm branch creates, renames and deletes branches but
cannot list them; cm attribute sets values but cannot read them; cm log details changesets
you already name — no branch spec, no --limit — and cannot list a branch's. cm find is the query tool for branches,
changesets, labels, shelves, revisions, attributes, merges and reviews.
Anything shaped like "which / list / show me all" is a cm find query, and its shape is always
object first, then a quoted clause — never one quoted string:
cm find <object> "where <field>='<value>' order by <field> desc limit <n>" --format="..." --nototal
cm find attribute "where srcobj='br:/main/task001'" --nototal
Field names, sort names, and which objects reject order by are per-object:
references/find-queries.md before composing anything non-trivial.
The grammar is not uniform across subcommands. A flag valid for one verb is often rejected
by another (--nototal is cm find-only; --format field names differ per command). Do not
generalize syntax between verbs.
So: take the invocation from references/commands.md (curated, verified) or from help, never from
memory, and do not retry a failed command with speculative syntax. When no recipe covers it:
cm showcommands --all — every command with a one-line description.cm help <command> (or cm <command> --help) — full syntax; cm <command> --usage — terse.cm showfindobjects — every queryable object and its fields (for cm find).Read-only — no effect on the repository or workspace:
status, find, log, history, annotate, diff, patch (generating), cat/getfile,
ls, fileinfo, whoami, version, showcommands, help, showfindobjects,
getworkspacefrompath/gwp, workspace list, lock list.
Mutating — they change the workspace or the server-side repository:
add, checkin/ci, checkout/co, switch, update, move, remove, branch,
label, attribute, shelveset, merge, undo, undochange, undocheckout, revert,
undelete, changeset, codereview, mergerequest/mr, xlink, patch --apply,
lock unlock / lock create (visible to everyone: locks are server-side),
workspace create / workspace delete (client-side: no server object is created or destroyed).
cm mergerequest/cm codereview mutate even when they only add a comment or a reviewer — those
are visible to everyone on the review. Their one read-only verb is reviewer list.
Irreversible — no cm command can recover what these discard:
undo / undochange / undocheckout (uncommitted work), branch delete, label delete,
shelveset delete, codereview -d / mergerequest delete (the review and its whole comment
thread), mergerequest comment delete.
When and whether to confirm a mutating command with the user is workflow policy, owned by the higher-level skill (or agent) driving the task — not by this skill.
Results must round-trip: every object named in a report should paste back into cm or click open.
cm does: cs:4207, br:/main/task001,
lb:v1.2.0, sh:12. Always the full branch path — task001 alone is not an identifier.cm status --header, or
{repository} in cm diff output): one markdown link per object, unityhub:// in a Unity
project (Assets/ + ProjectSettings/) and plastic:// anywhere else. Shapes, rendering and
encoding: references/deep-links.md.cs:4207, no backticks, no link) and never hard-wrap a paragraph —
references/writing-comments.md before writing one.Higher-level skills own the judgement and the order of operations for one task, and use this
skill for every cm invocation. When one covers the task at hand, load and follow it — do not
drive that task from this skill alone. The syntax here is enough to compose the commands and
not enough to get the order and the stopping points right, which is where the damage happens.
| Skill | Use it for |
|---|---|
uvcs-merge | Any merge, cherry-pick or conflict resolution, including finishing a merge already in progress. Never run cm merge --merge without it; its first command is always the read-only preview, cm merge <src> with no --merge. |
uvcs-switch | Moving the workspace to another branch, changeset, label or shelve, creating the branch first if needed. Never cm switch a workspace with pending changes without it. |
uvcs-root-cause | "Why did this break / which changeset introduced it / who broke this line": tracing a bug or regression back through history. Read-only. |
uvcs-code-review | Reviewing a branch or merge request, a changeset, a shelve or pending changes, and publishing the findings as review comments. Also the author opening a merge request with reviewers on it. |
uvcs-address-review | The author side of a review: applying the change requests a reviewer left, answering questions, discarding a request, re-requesting the review. |
uvcs-report-issue | Something in this plugin was wrong or missing — a recipe cm rejected, a fact cm help contradicts, a task no skill covers, a result the user says is not what they asked for — reported as a GitHub issue. Not for UVCS product problems. |
For any task these do not cover, this skill plus judgement is the whole toolkit.
cm patch output to a temp file (stderr merged) and read the file — see
references/diff-and-patch.md for the capture and full-ingestion rules.cm diff on a bare workspace path or with no arguments, and never cm merge a
conflicted file without a headless mode: both launch a GUI window, return nothing on stdout,
and block the command until a human closes it.-c "..." are
silently eaten; in Git Bash on Windows, MSYS rewrites /main/... positional args into
Windows paths. Fixes and safe patterns: references/shell-gotchas.md. When a comment is
generated programmatically, prefer -commentsfile=<path> over -c.You don't have ci permission on ...): most often the
workspace is on a protected branch like /main. Run cm status --header, switch to a task
branch, retry — before assuming a real ACL problem.cm diff reports the owning repo per file in {repository}; when it
is not the primary repo, run content commands (cm patch) from inside the xlink directory,
and add on repository '<repo>@<server>' inside cm find query strings (see
references/find-queries.md).cm shell batch is ~3× faster
than one process each, but it changes the exit-code and error-stream contract. Follow
references/batching-commands.md exactly or run them plainly. Never batch a mutating command.cm rejects is a defect in this plugin, not in UVCS. Take
the syntax from cm help <command>, finish the task, then ask the user once, in these words:
"That recipe is a bug in this plugin — want me to report it with uvcs-report-issue?" Likewise
for a task no recipe or skill covers.| File | Read it when |
|---|---|
references/commands.md | Running anything beyond the orientation commands above: the verified invocation for status, workspaces, branches, checkin, shelves, merge, diff, cat, history, labels, attributes, reviews. |
references/reviews-and-merge-requests.md | Anything touching a merge request or a code review: creating one, reviewers, statuses, inline and conversation comments, reading the thread. |
references/find-queries.md | Composing any cm find query: objects, fields, sort names, date constants, limits. |
references/status-and-checkin.md | Parsing cm status, checkin/checkout/undo semantics, ignore/hidden/cloaked conf files. |
references/diff-and-patch.md | Listing changed files, unified patches, --integration, extracting revisions, failure modes. |
references/branches-and-merge.md | Branch/shelve/label lifecycle details, switch semantics, merge and cherry-pick, no-rebase note. |
references/merge-conflict-markers.md | Resolving a conflicted merge headlessly: --conflict-markers, exit codes, marker format, the check-in guard. |
references/history-and-annotate.md | File history, blame tokens, cm log formats, walking /main history. |
references/shell-gotchas.md | Running cm from PowerShell / Git Bash / POSIX shells; quoting and comment pitfalls. |
references/locks.md | Exclusive checkout of binary assets: who holds a lock on a file, Locked vs Retained, taking and releasing your own locks. |
references/batching-commands.md | Running 5+ read-only commands as one cm shell batch: when it pays, the restrictions, and the exit-code and error-stream contract that changes. |
references/writing-comments.md | Writing any comment cm stores — check-in, shelve, review comment or reply, merge request title: what renders, which specs become clickable, line breaks. |
references/deep-links.md | Building a clickable link to a branch, changeset, label, shelve, code review or merge request: unityhub:// in a Unity project, plastic:// everywhere else, rendered as a markdown link. |
references/batching-commands.md (opens in a new tab)references/branches-and-merge.md (opens in a new tab)references/commands.md (opens in a new tab)references/deep-links.md (opens in a new tab)references/diff-and-patch.md (opens in a new tab)references/find-queries.md (opens in a new tab)references/history-and-annotate.md (opens in a new tab)references/locks.md (opens in a new tab)references/merge-conflict-markers.md (opens in a new tab)references/reviews-and-merge-requests.md (opens in a new tab)references/shell-gotchas.md (opens in a new tab)references/status-and-checkin.md (opens in a new tab)references/writing-comments.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub unity-technologies/uvcs-agent-plugin --plugin unity-version-control7 skills in this plugin
/uvcs-address-reviewAddress the comments a reviewer left on a UVCS / Plastic SCM code review or merge request, as the code author: find the review on the workspace's branch, list the change requests, questions and comments still pending, plan their order, then fix, answer, discard or re-request under the user's direction, one check-in per change request. Use when the user says fix the review, address the review comments, apply the review changes, my review came back as rework required, answer the reviewer's question, discard a review comment, or re-request review. This is the author side — producing findings and publishing them is uvcs-code-review. All cm syntax comes from the uvcs-core skill — load it first./uvcs-code-reviewReview UVCS / Plastic SCM changes as the reviewer and publish the findings as review comments: a branch through its merge request, a changeset or shelve through a code review, or the workspace's pending changes in chat. Use when the user says review my changes, review this branch, review changeset 42 or shelve 12, code review, open a merge request or pull request, request a review from someone, publish review comments, approve, LGTM, or set my status to rework required. Merges the project's own code-review-rules skill into its general review rules when the project has one. Performing the merge is uvcs-merge; fixing a review as its author is uvcs-address-review. All cm syntax comes from the uvcs-core skill — load it first./uvcs-mergeMerge a UVCS / Plastic SCM branch, changeset, label, or shelve into the current workspace with the cm CLI and drive it to a clean, resolved workspace without ever opening a merge tool window: preview first, apply with diff3 conflict markers, resolve or pick a contributor, verify, then hand the check-in decision back to the user. Use whenever the user wants to merge or integrate one UVCS branch into another, merge down from /main into a task branch, cherry-pick a changeset, resolve UVCS merge conflicts, finish a merge that is already in progress, or when cm refuses an operation because a merge is in progress or conflict markers are still pending. All cm syntax comes from the uvcs-core skill — load it first./uvcs-report-issueReport a defect or a gap in this UVCS agent plugin itself — a cm command or flag a skill gave that cm rejected, a fact a reference gets wrong, a recipe or workflow that is missing, a skill that did not trigger or behaved differently in another agent, or a result that was not what the user asked for — as a GitHub issue on the plugin's repository, with a redacted, reproducible scenario a maintainer can turn into a fix and an eval. Use when the user says report this bug, file an issue, the plugin or the skill got it wrong, request a skill or a workflow, or when uvcs-core flags a rejected recipe. Not for problems in UVCS, cm or a server themselves, and not for bugs in the user's own code./uvcs-root-causeTrace a bug, regression, crash or failing test back to the UVCS / Plastic SCM changeset that most likely introduced it: bound the history window, expand from the symptom file to what it depends on, rank only changesets with concrete evidence, and confirm the top suspect at line level with cm annotate. Read-only end to end. Use when the user asks why something broke, what changeset or cset broke it, which change introduced a bug, who broke a file or a line, when a feature last worked, how to bisect or blame a regression in UVCS, or hands you a stack trace, error message or failing test and wants the culprit changeset. Not for reviewing what a branch changed and not for performing a merge. All cm syntax comes from the uvcs-core skill — load it first./uvcs-switchMove a UVCS / Plastic SCM workspace onto another branch, changeset, label or shelve with cm switch — including creating the branch first — and handle pending changes the way the UVCS GUIs and the Unity plugin do: detect them, ask whether to leave them behind on a shelve or bring them along, then shelve, undo, switch, and reapply. Use whenever the user wants to switch, change or move the workspace to another UVCS branch, start a new task branch and work on it, or when cm switch is refused, cancelled or hangs because the workspace has pending changes. All cm syntax comes from the uvcs-core skill — load it first.