[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H1A1T4EFJ94YAE22TAT13B":3,"skill-same:01M6H1A1T4EFJ94YAE22TAT13B":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":66,"ownerHtmlUrl":67,"ownerBlogUrl":68,"ownerDescription":6,"updatedAt":69,"install":70,"resources":83},"01M6H1A1T4EFJ94YAE22TAT13B","cmx",null,"Drive cmx, the package manager for curated agentic context (agents and skills) across AI coding assistants. Use this skill whenever the user mentions cmx, context mixer, installing or updating agent\u002Fskill files for Claude Code\u002FCopilot\u002FCursor\u002FWindsurf\u002FGemini CLI\u002Fopencode\u002FCodex CLI\u002FPi\u002FCrush\u002F Amp\u002FZed\u002FOpenHands\u002FHermes\u002FDevin, cmx sources, cmx doctor, adopting orphaned skills, reconciling drifted skills across tools, or managing a canonical home for hand-authored agents\u002Fskills. Also use when the user asks \"what agents\u002Fskills do I have installed\", \"is anything out of date\", \"add this repo as a source\", or wants to survey\u002Fclean up a messy multi-tool AI assistant setup. Even if the user doesn't say \"cmx\" by name, use this skill whenever the task is installing, updating, listing, searching, or auditing agent\u002Fskill files that AI coding assistants read from disk.","svetzal\u002Fcontext-mixer2","svetzal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F148523?v=4","01M6H17EWH6BW019Q8V6VF12S7","Stacey Vetzal","01M6H17F1DCG2DJNQ0Z2DSCS5M",2,"MIT","https:\u002F\u002Fgithub.com\u002Fsvetzal\u002Fcontext-mixer2\u002Fblob\u002Fmain\u002Fcmx\u002Fskill\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"pi","context","survey","up","files","clean","do","windsurf","info","across","as","sources","zed","hand","manager","for","code","cli","gemini","agentic","gemini cli","rust","codex cli","package manager","copilot","assistant","doctor","disk","tool","coding","work","repo","read","2026-11-10 10:12:30",false,"---\nname: cmx\ndescription: >\n  Drive cmx, the package manager for curated agentic context (agents and\n  skills) across AI coding assistants. Use this skill whenever the user\n  mentions cmx, context mixer, installing or updating agent\u002Fskill files for\n  Claude Code\u002FCopilot\u002FCursor\u002FWindsurf\u002FGemini CLI\u002Fopencode\u002FCodex CLI\u002FPi\u002FCrush\u002F\n  Amp\u002FZed\u002FOpenHands\u002FHermes\u002FDevin, cmx sources, cmx doctor, adopting orphaned\n  skills, reconciling drifted skills across tools, or managing a canonical\n  home for hand-authored agents\u002Fskills. Also use when the user asks \"what\n  agents\u002Fskills do I have installed\", \"is anything out of date\", \"add this\n  repo as a source\", or wants to survey\u002Fclean up a messy multi-tool AI\n  assistant setup. Even if the user doesn't say \"cmx\" by name, use this skill\n  whenever the task is installing, updating, listing, searching, or auditing\n  agent\u002Fskill files that AI coding assistants read from disk.\nlicense: MIT\ncompatibility: Rust binary `cmx`. All commands work in every build; an `llm`-feature build with a configured gateway additionally generates `info` summaries and `diff` analyses (both degrade gracefully without one).\nmetadata:\n  # Placeholder — cmx-core reconciles this to the cmx binary version at install.\n  version: \"0.0.0\"\n  author: Stacey Vetzal\n---\n\n# cmx — Context Mixer\n\ncmx installs, updates, and reconciles two kinds of artifacts — **agents** and\n**skills** — across every AI coding assistant on the machine (Claude Code,\nCopilot, Cursor, Windsurf, Gemini CLI, opencode, Codex CLI, Pi, Crush, Amp,\nZed, OpenHands, Hermes, Devin). Artifacts come from **sources** (a local path\nor git repo you register) and are tracked in a lock file so cmx always knows\nwhat's installed, from where, and at what version.\n\nEvery command accepts a global `--platform \u003Cname>` flag to constrain the\noperation to one assistant; when omitted, `install`\u002F`uninstall` act across\nevery platform already in use, and other commands default to Claude.\n\n## Agent contract 1 — read state with `--json`, not tables\n\nEvery data-reporting command accepts `--json`. When *you* (an agent) are\nreading cmx state to reason about it, always pass `--json` and parse with\n`jq`. The human tables are lossy on purpose (truncated descriptions,\npresentation words, aligned columns); the JSON is the source of truth and\ncarries full descriptions, `null` for absent values, and stable enum strings.\nUse the bare human form only when displaying output to the user verbatim.\n\nShapes you can rely on (JSON to stdout; empty results are valid JSON):\n\n```text\ncmx list --json \u002F cmx skill|agent list --json \u002F cmx outdated --json\n  {\"artifacts\": [{\"name\", \"kind\": \"skill\"|\"agent\", \"scope\": \"global\"|\"local\",\n                  \"source\", \"platforms\": [..],\n                  \"installed_version\": str|null, \"available_version\": str|null,\n                  \"status\": \"ok\"|\"unversioned\"|\"outdated\"|..,\n                  \"locally_modified\": bool (outdated only)}]}\n  (version null = no version metadata in frontmatter, not \"not installed\")\n\ncmx search \u003Cq> --json   → results with full untruncated \"description\"\ncmx info \u003Cname> --json  → flat object: path, version, installed_at, source,\n                          installed_checksum\u002Fsource_checksum\u002Fdisk_checksum,\n                          locally_modified, activation_description,\n                          summary (str|null — null when no LLM available)\ncmx doctor --json       → {\"artifacts\": [{name, kind, scope, state, diverged,\n                            locations: [{path, platform, state, version}], ..}],\n                           \"summary\": {tracked, drifted, untracked, orphaned,\n                                       external, missing, diverged,\n                                       set_inconsistent},\n                           \"showing\": \"needs_attention\"|\"all\",\n                           \"scope\", \"platforms_surveyed\", \"set_inconsistencies\"}\ncmx config show --json  → {gateway, model, external: [..], platforms: [..],\n                           platforms_inferred}\ncmx home path --json    → {\"path\": ..}\ncmx set list --json     → {\"scope\", \"sets\": [..]};  set show --json analogous\n```\n\nIdioms:\n\n```bash\ncmx outdated --json | jq -r '.artifacts[].name'                  # what needs updating\ncmx doctor --json | jq -r '.artifacts[] | select(.diverged) | .name'   # cross-platform drift\ncmx doctor --json | jq -e '.summary.orphaned == 0' >\u002Fdev\u002Fnull    # assert clean adoption\ncmx list --json | jq -e '.artifacts[] | select(.name==\"foo\")'    # is foo installed?\ncmx info foo --json | jq -r '.locally_modified'                  # safe to update?\n```\n\n**Exit codes are API:** `cmx doctor` exits `2` when it finds actionable\nissues, `0` when clean (both human and `--json` forms). Any other non-zero\nexit means the command itself failed.\n\n## Agent contract 2 — mutations plan by default\n\nThe reconciliation commands — `skill|agent sync`, `skill|agent promote`,\n`set activate`, `set deactivate` (and `set delete --purge`) — are\n**plan\u002Fapply**: run bare, they print a concrete plan (exact files, paths,\nversions, per-file +\u002F− counts), write **nothing**, and exit 0. Re-run the\nidentical command with `--apply` to execute exactly that plan. Read the plan\nbefore applying. (`--dry-run` survives one release as a deprecated alias for\nthe default plan mode and warns on stderr.)\n\n`install`, `uninstall`, and `update` execute immediately (package-manager\nconvention) — but when `--force` overwrites local edits on install\u002Fupdate,\ncmx first prints the exact file paths whose changes are being discarded.\n`--force` always means \"override a safety refusal\", never \"skip confirmation\".\n\nHelp text marks the boundary: `[Mutates]` = writes immediately,\n`[Mutates with --apply]` = plans by default. Unmarked commands are read-only.\n\nErrors teach the next step — argument mistakes print a `try: \u003Cexact command>`\nline, unknown artifact names suggest near-matches (`Did you mean 'cli-ux'?`)\nor, when the name is installed elsewhere, name the platform\u002Fscope to re-run\nwith (`It is installed for claude. Re-run with '--platform claude'.`),\nand LLM\u002Fgateway failures degrade to a one-line note (never a hard failure of\nthe surrounding command). Trust stderr guidance; don't guess flags.\n\n## Command grammar (verified against `--help`)\n\n```text\ncmx source   {add,list,browse,update,remove}\ncmx set      {create,list,show,add,remove,activate,deactivate,delete,rename}\ncmx agent    {install,list,info,diff,update,sync,promote,uninstall,unadopt,adopt}\ncmx skill    {install,list,info,diff,update,sync,promote,uninstall,unadopt,adopt}\ncmx list     [--all] [--json]\ncmx doctor   [--local] [--all] [--json]   (deprecated: --adopt-all, --from)\ncmx home     {init,path}\ncmx outdated [--json]\ncmx search   \u003Cquery> [--json]\ncmx info     \u003Cname> [--json]\ncmx completions \u003Cbash|zsh|fish|elvish|powershell>\ncmx config   {show,gateway,model,external,platforms}\ncmx init     [--local] [--force] [--remove] [--json]\n```\n\n`agent` and `skill` take the identical set of subcommands — pick the one that\nmatches what you're managing.\n\n### Sources — where artifacts come from\n\n```bash\ncmx source add \u003Cname> \u003Cpath-or-url>   # register a local path or git URL\ncmx source list [--json]              # show registered sources\ncmx source browse \u003Cname> [--json]     # list agents\u002Fskills available in a source\ncmx source update [\u003Cname>]            # git pull registered sources (default: all)\ncmx source remove \u003Cname>              # unregister (does not delete installed artifacts)\n```\n\n### `cmx set` — activation groups for managing context cost\n\nEvery *installed* artifact is standing context (its trigger description loads\nevery turn). A **set** is a named group of artifacts you can install\u002Funinstall\ntogether as a unit, without losing the grouping — the cheaper alternative to\nhoarding installs or losing track of what you had.\n\n```bash\ncmx set create \u003Cname> [--desc \u003Ctext>] [--from-plugin \u003Csource>:\u003Cplugin>] [--local]\n                                          # --from-plugin seeds membership from a marketplace\n                                          # plugin's declared agents\u002Fskills (not installed yet)\ncmx set list [--json]                    # name, state, member count, context footprint\ncmx set show \u003Cname> [--json]             # members + per-member source and install status\ncmx set add \u003Cname> \u003Cartifact>...         # snapshot already-installed artifacts into the set\ncmx set remove \u003Cname> \u003Cartifact>...      # drop from set (does NOT uninstall)\ncmx set activate \u003Cname>   [--apply]      # plan by default; --apply executes\ncmx set deactivate \u003Cname> [--apply] [--force]\n                                          # uninstall every member not held by another\n                                          # active set = \"turn this set off\"; remembers\n                                          # membership so re-activating reinstalls fresh\ncmx set delete \u003Cname> [--purge] [--apply]  # --purge plans the deactivate+delete; --apply executes\ncmx set rename \u003Cold> \u003Cnew>\n```\n\n`activate`\u002F`deactivate` is install\u002Funinstall with remembered membership, not a\nseparate on-disk state — deactivating an unused set reclaims its context cost\nentirely. `cmx doctor` reports set-consistency issues (an active set with\nmissing members, or an inactive set with lingering installs) alongside its\nother checks.\n\n### Install, list, and inspect artifacts\n\n```bash\ncmx skill install \u003Cname> [\u003Cname>...]     # install by name; `source:name` pins a source\ncmx skill install --all                  # install everything available\ncmx skill install \u003Cname> --local         # install into the current project instead of globally\ncmx skill install \u003Cname> --force         # overwrite even if locally modified (lists discarded files)\ncmx skill list [--all] [--json]          # installed skills (--all includes externally-managed ones)\ncmx skill info \u003Cname> [--json]           # source, version, activation trigger; a generated\n                                          # \"what it does\" summary too, in an `llm`-feature build\ncmx skill uninstall \u003Cname> [\u003Cname>...] [--local]   # remove everywhere cmx tracks it\n```\n\n`cmx agent install\u002Flist\u002Finfo\u002Funinstall` work the same way for agents.\n\n### Keeping things current\n\n```bash\ncmx outdated --json | jq -r '.artifacts[].name'   # what has a newer source version\ncmx skill update \u003Cname>         # pull the latest version from its source\ncmx skill update --all          # update every tracked skill\ncmx skill update \u003Cname> --force # overwrite even if locally modified (lists discarded files)\n```\n\nWithout `--platform`, `update` targets only the default platform (Claude); `--all`\nmeans all artifacts, not all platforms. To converge sibling install copies across\nplatforms, use `sync`, not `update`.\n\n`update` replaces a tracked copy with the source's (files the source dropped are\nremoved). A copy whose files already match the source is not \"locally\nmodified\", and platforms sharing one install dir (Codex + Hermes use\n`.agents\u002Fskills` at project scope) are refreshed together.\n\nCheck `cmx info \u003Cname> --json | jq .locally_modified` before updating a\nsingle artifact — a `true` means plain `update` will refuse and you must\ndecide between `--force` (discard edits) and `promote` (keep them; below).\n\n### Reconciling drift across tools and canonical homes\n\nSkills installed in more than one assistant's directory can diverge (an agent\nedits the Claude copy but not the Cursor copy). Three commands handle this:\n\n```bash\ncmx skill diff \u003Cname>                  # structural diff + change summary, always available;\n                                        # an `llm`-feature build adds an LLM-written analysis\ncmx skill diff \u003Cname> --full           # full line-by-line unified diff (never needs an LLM)\ncmx skill sync \u003Cname> [--from \u003Cplatform>] [--apply] [--local]\n                                        # plan: copy one platform's copy over the others\n                                        # (works for \"external\" skills too); --apply executes\ncmx skill promote \u003Cname> [--from \u003Cplatform>] [--apply]\n                                        # plan: push in-place edits back into the canonical\n                                        # home (the mirror of update); --apply executes\n```\n\nDecision rule (doctor prints the same guidance): `update` pulls from source to\none platform; `sync` reconciles between install locations (use this when you\nwant every install copy to match); `promote` pushes in-place edits back to the\ncanonical home.\n\n### Canonical home and adoption\n\ncmx keeps a tool-neutral canonical copy of hand-authored artifacts, separate\nfrom any one assistant's install directory.\n\n```bash\ncmx home init                   # create the canonical home, register it as the `home` source\ncmx home path [--json]          # print the resolved canonical home directory\ncmx skill adopt \u003Cname> [\u003Cname>...] [--all] [--from-dir \u003Cdir>] [--local]\n                                 # bring an orphaned, hand-authored skill under the home\ncmx skill unadopt \u003Cname> [\u003Cname>...] [--external]\n                                 # remove from the home and stop tracking it\n                                 # (--external also marks it as managed by another tool)\n```\n\n### `cmx doctor` — the system-wide survey\n\n`cmx doctor` is **read-only**: it walks every platform's install directories\nand cross-references lock files, reporting artifacts that are missing,\nuntracked (orphaned), drifted, diverged across tools, or external.\n\n```bash\ncmx doctor --json                # machine-readable survey — the agent default\ncmx doctor                       # human table, issues only\ncmx doctor --local               # also survey project (local) scope\ncmx doctor --all                 # full inventory, not just issues\n\n# To adopt orphans, use the canonical adopt commands — `cmx doctor --adopt-all`\n# is deprecated (still works this release, removed next major):\ncmx skill adopt --all            # canonicalize every orphaned skill into the home\ncmx agent adopt --all            # ...and every orphaned agent\n```\n\n**Exit code contract:** `2` = actionable issues found, `0` = clean, anything\nelse = the command itself failed. Script against this.\n\nAfter any mutation, re-run `cmx doctor` to confirm the drift is actually gone.\nAn exit `0` from `update` \u002F `sync` \u002F `promote` means the command ran, not that\nevery sibling copy is now reconciled.\n\n### Search and config\n\n```bash\ncmx search \u003Cquery> [--json]              # keyword search across all sources\ncmx config show [--json]                 # current configuration\ncmx config gateway \u003Copenai|ollama>       # set the LLM gateway (llm-feature build)\ncmx config model \u003Cname>                  # set the LLM model name\ncmx config external {list,add,remove}    # rules for artifacts another tool manages\n                                          # (doctor reports these as external, not orphaned)\ncmx config platforms {list,add,remove}   # pin the managed platform set; when empty,\n                                          # cmx infers it from platforms already in use\n```\n\n### Shell completions\n\n```bash\ncmx completions zsh                       # completion script to stdout (also: bash, fish,\n                                          # elvish, powershell); pipe\u002Fredirect to install\n```\n\n### `cmx init` — cmx's own companion skill\n\ncmx installs *this* skill through the same shared installer library\n(`cmx-core`) that other fleet tools use, at **global scope by default**.\n\n```bash\ncmx init                 # install (or update) this skill into ~\u002F.claude\u002Fskills\u002Fcmx\u002F\ncmx init --local          # install into .claude\u002Fskills\u002F in the current project instead\ncmx init --force          # overwrite even if the installed copy is a newer version\ncmx init --remove [--local]   # uninstall\ncmx init --json           # machine-readable report instead of human text\n```\n\n`cmx init` protects existing copies with two safety refusals, both exiting\nnon-zero and both overridden by `--force`: it won't downgrade an installed\ncopy newer than the bundled one, and it won't overwrite a copy with local\nedits (detected against disk, same as `info`\u002F`diff`) — the skip hints\n`--force` to overwrite or `cmx skill promote cmx` to keep the edits. When\n`--force` discards edits it prints the exact file paths first. `--global`\nis accepted as a no-op alias (global is already the default) so scripts\nwritten before this alias existed keep working.\n\n## Typical workflows (agent-shaped)\n\n**Set up a new machine:**\n\n```bash\ncmx source add guidelines https:\u002F\u002Fgithub.com\u002Fsvetzal\u002Fguidelines\ncmx skill install --all\ncmx doctor --json | jq .summary        # expect zeros; exit 2 = something to fix\n```\n\n**Survey and fix a messy multi-tool setup:**\n\n```bash\ncmx doctor --local --all --json > \u002Ftmp\u002Fsurvey.json\njq -r '.artifacts[] | select(.state==\"orphaned\") | .name' \u002Ftmp\u002Fsurvey.json\ncmx skill adopt --all && cmx agent adopt --all\njq -r '.artifacts[] | select(.diverged) | .name' \u002Ftmp\u002Fsurvey.json\n# then per name: diff → promote \u002F update --force \u002F sync (decision rule above)\n```\n\n**A skill drifted after an agent edited it in Cursor but not Claude:**\n\n```bash\ncmx skill diff \u003Cname>                        # inspect (works without an LLM)\ncmx skill promote \u003Cname> --from cursor       # plan: make the Cursor edit canonical\ncmx skill promote \u003Cname> --from cursor --apply   # execute that exact plan\n```\n\n**Stay current:**\n\n```bash\ncmx source update\ncmx outdated --json | jq -r '.artifacts[] | select(.locally_modified | not) | .name' \\\n  | xargs -n1 cmx skill update\n```\n\n## Tips\n\n- Prefer `--all` for bulk install\u002Fupdate over enumerating names by hand.\n- `sync` reconciles *between install locations*; `update` pulls *from the\n  source*; `promote` pushes in-place edits *back to the canonical home*. Use\n  `diff` to inspect — never resolve drift with raw file edits.\n- `source:name` (e.g. `guidelines:code-review`) pins an install to one source\n  when the same artifact name exists in more than one.\n- Global scope is the default everywhere `--local` is offered; pass `--local`\n  only when you specifically want a project-scoped install.\n- Plans are cheap and read-only — when unsure what a reconcile command will\n  do, run it bare and read the plan; nothing happens until `--apply`.\n","# cmx — Context Mixer\n\ncmx installs, updates, and reconciles two kinds of artifacts — **agents** and\n**skills** — across every AI coding assistant on the machine (Claude Code,\nCopilot, Cursor, Windsurf, Gemini CLI, opencode, Codex CLI, Pi, Crush, Amp,\nZed, OpenHands, Hermes, Devin). Artifacts come from **sources** (a local path\nor git repo you register) and are tracked in a lock file so cmx always knows\nwhat's installed, from where, and at what version.\n\nEvery command accepts a global `--platform \u003Cname>` flag to constrain the\noperation to one assistant; when omitted, `install`\u002F`uninstall` act across\nevery platform already in use, and other commands default to Claude.\n\n## Agent contract 1 — read state with `--json`, not tables\n\nEvery data-reporting command accepts `--json`. When *you* (an agent) are\nreading cmx state to reason about it, always pass `--json` and parse with\n`jq`. The human tables are lossy on purpose (truncated descriptions,\npresentation words, aligned columns); the JSON is the source of truth and\ncarries full descriptions, `null` for absent values, and stable enum strings.\nUse the bare human form only when displaying output to the user verbatim.\n\nShapes you can rely on (JSON to stdout; empty results are valid JSON):\n\n```text\ncmx list --json \u002F cmx skill|agent list --json \u002F cmx outdated --json\n  {\"artifacts\": [{\"name\", \"kind\": \"skill\"|\"agent\", \"scope\": \"global\"|\"local\",\n                  \"source\", \"platforms\": [..],\n                  \"installed_version\": str|null, \"available_version\": str|null,\n                  \"status\": \"ok\"|\"unversioned\"|\"outdated\"|..,\n                  \"locally_modified\": bool (outdated only)}]}\n  (version null = no version metadata in frontmatter, not \"not installed\")\n\ncmx search \u003Cq> --json   → results with full untruncated \"description\"\ncmx info \u003Cname> --json  → flat object: path, version, installed_at, source,\n                          installed_checksum\u002Fsource_checksum\u002Fdisk_checksum,\n                          locally_modified, activation_description,\n                          summary (str|null — null when no LLM available)\ncmx doctor --json       → {\"artifacts\": [{name, kind, scope, state, diverged,\n                            locations: [{path, platform, state, version}], ..}],\n                           \"summary\": {tracked, drifted, untracked, orphaned,\n                                       external, missing, diverged,\n                                       set_inconsistent},\n                           \"showing\": \"needs_attention\"|\"all\",\n                           \"scope\", \"platforms_surveyed\", \"set_inconsistencies\"}\ncmx config show --json  → {gateway, model, external: [..], platforms: [..],\n                           platforms_inferred}\ncmx home path --json    → {\"path\": ..}\ncmx set list --json     → {\"scope\", \"sets\": [..]};  set show --json analogous\n```\n\nIdioms:\n\n```bash\ncmx outdated --json | jq -r '.artifacts[].name'                  # what needs updating\ncmx doctor --json | jq -r '.artifacts[] | select(.diverged) | .name'   # cross-platform drift\ncmx doctor --json | jq -e '.summary.orphaned == 0' >\u002Fdev\u002Fnull    # assert clean adoption\ncmx list --json | jq -e '.artifacts[] | select(.name==\"foo\")'    # is foo installed?\ncmx info foo --json | jq -r '.locally_modified'                  # safe to update?\n```\n\n**Exit codes are API:** `cmx doctor` exits `2` when it finds actionable\nissues, `0` when clean (both human and `--json` forms). Any other non-zero\nexit means the command itself failed.\n\n## Agent contract 2 — mutations plan by default\n\nThe reconciliation commands — `skill|agent sync`, `skill|agent promote`,\n`set activate`, `set deactivate` (and `set delete --purge`) — are\n**plan\u002Fapply**: run bare, they print a concrete plan (exact files, paths,\nversions, per-file +\u002F− counts), write **nothing**, and exit 0. Re-run the\nidentical command with `--apply` to execute exactly that plan. Read the plan\nbefore applying. (`--dry-run` survives one release as a deprecated alias for\nthe default plan mode and warns on stderr.)\n\n`install`, `uninstall`, and `update` execute immediately (package-manager\nconvention) — but when `--force` overwrites local edits on install\u002Fupdate,\ncmx first prints the exact file paths whose changes are being discarded.\n`--force` always means \"override a safety refusal\", never \"skip confirmation\".\n\nHelp text marks the boundary: `[Mutates]` = writes immediately,\n`[Mutates with --apply]` = plans by default. Unmarked commands are read-only.\n\nErrors teach the next step — argument mistakes print a `try: \u003Cexact command>`\nline, unknown artifact names suggest near-matches (`Did you mean 'cli-ux'?`)\nor, when the name is installed elsewhere, name the platform\u002Fscope to re-run\nwith (`It is installed for claude. Re-run with '--platform claude'.`),\nand LLM\u002Fgateway failures degrade to a one-line note (never a hard failure of\nthe surrounding command). Trust stderr guidance; don't guess flags.\n\n## Command grammar (verified against `--help`)\n\n```text\ncmx source   {add,list,browse,update,remove}\ncmx set      {create,list,show,add,remove,activate,deactivate,delete,rename}\ncmx agent    {install,list,info,diff,update,sync,promote,uninstall,unadopt,adopt}\ncmx skill    {install,list,info,diff,update,sync,promote,uninstall,unadopt,adopt}\ncmx list     [--all] [--json]\ncmx doctor   [--local] [--all] [--json]   (deprecated: --adopt-all, --from)\ncmx home     {init,path}\ncmx outdated [--json]\ncmx search   \u003Cquery> [--json]\ncmx info     \u003Cname> [--json]\ncmx completions \u003Cbash|zsh|fish|elvish|powershell>\ncmx config   {show,gateway,model,external,platforms}\ncmx init     [--local] [--force] [--remove] [--json]\n```\n\n`agent` and `skill` take the identical set of subcommands — pick the one that\nmatches what you're managing.\n\n### Sources — where artifacts come from\n\n```bash\ncmx source add \u003Cname> \u003Cpath-or-url>   # register a local path or git URL\ncmx source list [--json]              # show registered sources\ncmx source browse \u003Cname> [--json]     # list agents\u002Fskills available in a source\ncmx source update [\u003Cname>]            # git pull registered sources (default: all)\ncmx source remove \u003Cname>              # unregister (does not delete installed artifacts)\n```\n\n### `cmx set` — activation groups for managing context cost\n\nEvery *installed* artifact is standing context (its trigger description loads\nevery turn). A **set** is a named group of artifacts you can install\u002Funinstall\ntogether as a unit, without losing the grouping — the cheaper alternative to\nhoarding installs or losing track of what you had.\n\n```bash\ncmx set create \u003Cname> [--desc \u003Ctext>] [--from-plugin \u003Csource>:\u003Cplugin>] [--local]\n                                          # --from-plugin seeds membership from a marketplace\n                                          # plugin's declared agents\u002Fskills (not installed yet)\ncmx set list [--json]                    # name, state, member count, context footprint\ncmx set show \u003Cname> [--json]             # members + per-member source and install status\ncmx set add \u003Cname> \u003Cartifact>...         # snapshot already-installed artifacts into the set\ncmx set remove \u003Cname> \u003Cartifact>...      # drop from set (does NOT uninstall)\ncmx set activate \u003Cname>   [--apply]      # plan by default; --apply executes\ncmx set deactivate \u003Cname> [--apply] [--force]\n                                          # uninstall every member not held by another\n                                          # active set = \"turn this set off\"; remembers\n                                          # membership so re-activating reinstalls fresh\ncmx set delete \u003Cname> [--purge] [--apply]  # --purge plans the deactivate+delete; --apply executes\ncmx set rename \u003Cold> \u003Cnew>\n```\n\n`activate`\u002F`deactivate` is install\u002Funinstall with remembered membership, not a\nseparate on-disk state — deactivating an unused set reclaims its context cost\nentirely. `cmx doctor` reports set-consistency issues (an active set with\nmissing members, or an inactive set with lingering installs) alongside its\nother checks.\n\n### Install, list, and inspect artifacts\n\n```bash\ncmx skill install \u003Cname> [\u003Cname>...]     # install by name; `source:name` pins a source\ncmx skill install --all                  # install everything available\ncmx skill install \u003Cname> --local         # install into the current project instead of globally\ncmx skill install \u003Cname> --force         # overwrite even if locally modified (lists discarded files)\ncmx skill list [--all] [--json]          # installed skills (--all includes externally-managed ones)\ncmx skill info \u003Cname> [--json]           # source, version, activation trigger; a generated\n                                          # \"what it does\" summary too, in an `llm`-feature build\ncmx skill uninstall \u003Cname> [\u003Cname>...] [--local]   # remove everywhere cmx tracks it\n```\n\n`cmx agent install\u002Flist\u002Finfo\u002Funinstall` work the same way for agents.\n\n### Keeping things current\n\n```bash\ncmx outdated --json | jq -r '.artifacts[].name'   # what has a newer source version\ncmx skill update \u003Cname>         # pull the latest version from its source\ncmx skill update --all          # update every tracked skill\ncmx skill update \u003Cname> --force # overwrite even if locally modified (lists discarded files)\n```\n\nWithout `--platform`, `update` targets only the default platform (Claude); `--all`\nmeans all artifacts, not all platforms. To converge sibling install copies across\nplatforms, use `sync`, not `update`.\n\n`update` replaces a tracked copy with the source's (files the source dropped are\nremoved). A copy whose files already match the source is not \"locally\nmodified\", and platforms sharing one install dir (Codex + Hermes use\n`.agents\u002Fskills` at project scope) are refreshed together.\n\nCheck `cmx info \u003Cname> --json | jq .locally_modified` before updating a\nsingle artifact — a `true` means plain `update` will refuse and you must\ndecide between `--force` (discard edits) and `promote` (keep them; below).\n\n### Reconciling drift across tools and canonical homes\n\nSkills installed in more than one assistant's directory can diverge (an agent\nedits the Claude copy but not the Cursor copy). Three commands handle this:\n\n```bash\ncmx skill diff \u003Cname>                  # structural diff + change summary, always available;\n                                        # an `llm`-feature build adds an LLM-written analysis\ncmx skill diff \u003Cname> --full           # full line-by-line unified diff (never needs an LLM)\ncmx skill sync \u003Cname> [--from \u003Cplatform>] [--apply] [--local]\n                                        # plan: copy one platform's copy over the others\n                                        # (works for \"external\" skills too); --apply executes\ncmx skill promote \u003Cname> [--from \u003Cplatform>] [--apply]\n                                        # plan: push in-place edits back into the canonical\n                                        # home (the mirror of update); --apply executes\n```\n\nDecision rule (doctor prints the same guidance): `update` pulls from source to\none platform; `sync` reconciles between install locations (use this when you\nwant every install copy to match); `promote` pushes in-place edits back to the\ncanonical home.\n\n### Canonical home and adoption\n\ncmx keeps a tool-neutral canonical copy of hand-authored artifacts, separate\nfrom any one assistant's install directory.\n\n```bash\ncmx home init                   # create the canonical home, register it as the `home` source\ncmx home path [--json]          # print the resolved canonical home directory\ncmx skill adopt \u003Cname> [\u003Cname>...] [--all] [--from-dir \u003Cdir>] [--local]\n                                 # bring an orphaned, hand-authored skill under the home\ncmx skill unadopt \u003Cname> [\u003Cname>...] [--external]\n                                 # remove from the home and stop tracking it\n                                 # (--external also marks it as managed by another tool)\n```\n\n### `cmx doctor` — the system-wide survey\n\n`cmx doctor` is **read-only**: it walks every platform's install directories\nand cross-references lock files, reporting artifacts that are missing,\nuntracked (orphaned), drifted, diverged across tools, or external.\n\n```bash\ncmx doctor --json                # machine-readable survey — the agent default\ncmx doctor                       # human table, issues only\ncmx doctor --local               # also survey project (local) scope\ncmx doctor --all                 # full inventory, not just issues\n\n# To adopt orphans, use the canonical adopt commands — `cmx doctor --adopt-all`\n# is deprecated (still works this release, removed next major):\ncmx skill adopt --all            # canonicalize every orphaned skill into the home\ncmx agent adopt --all            # ...and every orphaned agent\n```\n\n**Exit code contract:** `2` = actionable issues found, `0` = clean, anything\nelse = the command itself failed. Script against this.\n\nAfter any mutation, re-run `cmx doctor` to confirm the drift is actually gone.\nAn exit `0` from `update` \u002F `sync` \u002F `promote` means the command ran, not that\nevery sibling copy is now reconciled.\n\n### Search and config\n\n```bash\ncmx search \u003Cquery> [--json]              # keyword search across all sources\ncmx config show [--json]                 # current configuration\ncmx config gateway \u003Copenai|ollama>       # set the LLM gateway (llm-feature build)\ncmx config model \u003Cname>                  # set the LLM model name\ncmx config external {list,add,remove}    # rules for artifacts another tool manages\n                                          # (doctor reports these as external, not orphaned)\ncmx config platforms {list,add,remove}   # pin the managed platform set; when empty,\n                                          # cmx infers it from platforms already in use\n```\n\n### Shell completions\n\n```bash\ncmx completions zsh                       # completion script to stdout (also: bash, fish,\n                                          # elvish, powershell); pipe\u002Fredirect to install\n```\n\n### `cmx init` — cmx's own companion skill\n\ncmx installs *this* skill through the same shared installer library\n(`cmx-core`) that other fleet tools use, at **global scope by default**.\n\n```bash\ncmx init                 # install (or update) this skill into ~\u002F.claude\u002Fskills\u002Fcmx\u002F\ncmx init --local          # install into .claude\u002Fskills\u002F in the current project instead\ncmx init --force          # overwrite even if the installed copy is a newer version\ncmx init --remove [--local]   # uninstall\ncmx init --json           # machine-readable report instead of human text\n```\n\n`cmx init` protects existing copies with two safety refusals, both exiting\nnon-zero and both overridden by `--force`: it won't downgrade an installed\ncopy newer than the bundled one, and it won't overwrite a copy with local\nedits (detected against disk, same as `info`\u002F`diff`) — the skip hints\n`--force` to overwrite or `cmx skill promote cmx` to keep the edits. When\n`--force` discards edits it prints the exact file paths first. `--global`\nis accepted as a no-op alias (global is already the default) so scripts\nwritten before this alias existed keep working.\n\n## Typical workflows (agent-shaped)\n\n**Set up a new machine:**\n\n```bash\ncmx source add guidelines https:\u002F\u002Fgithub.com\u002Fsvetzal\u002Fguidelines\ncmx skill install --all\ncmx doctor --json | jq .summary        # expect zeros; exit 2 = something to fix\n```\n\n**Survey and fix a messy multi-tool setup:**\n\n```bash\ncmx doctor --local --all --json > \u002Ftmp\u002Fsurvey.json\njq -r '.artifacts[] | select(.state==\"orphaned\") | .name' \u002Ftmp\u002Fsurvey.json\ncmx skill adopt --all && cmx agent adopt --all\njq -r '.artifacts[] | select(.diverged) | .name' \u002Ftmp\u002Fsurvey.json\n# then per name: diff → promote \u002F update --force \u002F sync (decision rule above)\n```\n\n**A skill drifted after an agent edited it in Cursor but not Claude:**\n\n```bash\ncmx skill diff \u003Cname>                        # inspect (works without an LLM)\ncmx skill promote \u003Cname> --from cursor       # plan: make the Cursor edit canonical\ncmx skill promote \u003Cname> --from cursor --apply   # execute that exact plan\n```\n\n**Stay current:**\n\n```bash\ncmx source update\ncmx outdated --json | jq -r '.artifacts[] | select(.locally_modified | not) | .name' \\\n  | xargs -n1 cmx skill update\n```\n\n## Tips\n\n- Prefer `--all` for bulk install\u002Fupdate over enumerating names by hand.\n- `sync` reconciles *between install locations*; `update` pulls *from the\n  source*; `promote` pushes in-place edits *back to the canonical home*. Use\n  `diff` to inspect — never resolve drift with raw file edits.\n- `source:name` (e.g. `guidelines:code-review`) pins an install to one source\n  when the same artifact name exists in more than one.\n- Global scope is the default everywhere `--local` is offered; pass `--local`\n  only when you specifically want a project-scoped install.\n- Plans are cheap and read-only — when unsure what a reconcile command will\n  do, run it bare and read the plan; nothing happens until `--apply`.\n",{"name":5,"license":15,"metadata":57,"description":59,"compatibility":60},{"author":12,"version":58},"0.0.0","Drive cmx, the package manager for curated agentic context (agents and skills) across AI coding assistants. Use this skill whenever the user mentions cmx, context mixer, installing or updating agent\u002Fskill files for Claude Code\u002FCopilot\u002FCursor\u002FWindsurf\u002FGemini CLI\u002Fopencode\u002FCodex CLI\u002FPi\u002FCrush\u002F Amp\u002FZed\u002FOpenHands\u002FHermes\u002FDevin, cmx sources, cmx doctor, adopting orphaned skills, reconciling drifted skills across tools, or managing a canonical home for hand-authored agents\u002Fskills. Also use when the user asks \"what agents\u002Fskills do I have installed\", \"is anything out of date\", \"add this repo as a source\", or wants to survey\u002Fclean up a messy multi-tool AI assistant setup. Even if the user doesn't say \"cmx\" by name, use this skill whenever the task is installing, updating, listing, searching, or auditing agent\u002Fskill files that AI coding assistants read from disk.\n","Rust binary `cmx`. All commands work in every build; an `llm`-feature build with a configured gateway additionally generates `info` summaries and `diff` analyses (both degrade gracefully without one).","main","2874dd07e2c0716e4a5ab52664f1df503870b490","cmx\u002Fskill",0,"https:\u002F\u002Fgithub.com\u002Fsvetzal\u002Fcontext-mixer2","https:\u002F\u002Fvetzal.ca\u002Fcontext-mixer2\u002F","https:\u002F\u002Fgithub.com\u002Fsvetzal","http:\u002F\u002Fstacey.vetzal.com","2026-11-12 15:43:45",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add svetzal\u002Fcontext-mixer2 --skill cmx",{"tool":76,"command":77},"bunx","bunx skills add svetzal\u002Fcontext-mixer2 --skill cmx",{"tool":79,"command":80},"pnpm","pnpm dlx skills add svetzal\u002Fcontext-mixer2 --skill cmx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsvetzal\u002Fcontext-mixer2\u002Fblob\u002Fmain\u002Fcmx\u002Fskill\u002FSKILL.md",true,[],[]]