[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72XWRSH97SPPJ7RFGJEV80E":3,"skill-same:01M72XWRSH97SPPJ7RFGJEV80E":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":26,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M72XWRSH97SPPJ7RFGJEV80E","grim-usage",null,"Drive the grim CLI — the OCI package manager for AI skills, rules, agents, MCP servers, hooks, settings packages, and bundles. Use when installing, updating, searching, rating, or publishing AI-config artifacts with grim; when composing grim init, config, add, lock, install, update, status, context, fetch, describe, export, search, rate, tui, mcp, hook, build, release, publish, login, logout, or completions commands; when adding, pinning, or exporting a plugin marketplace (marketplace.toml); when enabling opt-in telemetry; when configuring settings, multiple registries, or qualified alias\u002Frepo references; or when resolving registries, project vs global scope, client targets, or offline mode.","grimoire-rs\u002Fgrimoire","grimoire-rs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F298895348?v=4","01M72XK7XKYKMET2MMHCAQ3X6C","01M72XK7Y647QCPS3Z02ZYTJTT",15,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: grim-usage\ndescription: Drive the grim CLI — the OCI package manager for AI skills, rules, agents, MCP servers, hooks, settings packages, and bundles. Use when installing, updating, searching, rating, or publishing AI-config artifacts with grim; when composing grim init, config, add, lock, install, update, status, context, fetch, describe, export, search, rate, tui, mcp, hook, build, release, publish, login, logout, or completions commands; when adding, pinning, or exporting a plugin marketplace (marketplace.toml); when enabling opt-in telemetry; when configuring settings, multiple registries, or qualified alias\u002Frepo references; or when resolving registries, project vs global scope, client targets, or offline mode.\nlicense: Apache-2.0\ncompatibility: grim>=0.16\nmetadata:\n  summary: How to use the grim CLI end to end\n  keywords: grim,grimoire,cli,oci,registry,install,update,publish,skills,rules,agents,bundles,mcp,hooks,settings,multi-registry\n  repository: https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\n---\n\n# Grim Usage\n\nGrimoire (binary: `grim`) is a package manager for AI-agent configuration.\nIt distributes seven artifact kinds — **skills**, **rules**, **agents**,\n**MCP servers**, **hooks**, **settings**, and **bundles** — through any standard OCI\nregistry (GHCR, Docker Hub, a private Distribution), with lockfile-pinned\ninstalls into a growing fleet of AI clients plus a vendor-neutral `agents`\ntarget. The current names are listed in\n[references\u002Fregistries.md](references\u002Fregistries.md#client-targets); the\nset grows every minor release, so read it there rather than assuming. An\nMCP server artifact installs by registering an entry in each client's\nnative MCP config file (never as a file of its own); uninstall removes\nonly that entry, never the file.\n\nNot every client can host every kind: a **skill** is the one kind every\nclient hosts, but a rule needs a per-file scoping surface, an agent needs a\nshipped file format, and an MCP server needs a config file grim can splice —\nand many clients lack one or more of those. Where a client cannot faithfully\nhost a kind, grim warns and skips it, writing zero files. Most of the fleet\ndeclines rules, but agents are hosted by a majority of clients (12 of the 18\nsupported clients), and the skills-only clients mostly write no MCP config\neither — except Cline (global scope only), Droid, and Warp. The authoritative per-client support matrix is the [Client\nCompatibility][clients] docs page — trust it over this summary, and check it\nrather than assuming.\n\n> **Hooks are experimental and off by default.** The kind publishes,\n> resolves, locks, installs, and reports today; **arming is gated twice**:\n> `options.experimental.hooks` must be true (`false` unless you set it,\n> config-only — no environment variable overrides it) **and** the workspace\n> must have consented (`grim hook allow`, `grim add`, or an accepted prompt;\n> global scope is always consented). `grim install` and `grim update` never\n> grant consent. So adding a hook gives you a declaration, a lock pin, and a\n> materialized payload tree, and nothing fires until both gates clear.\n> `grim hook list` is the surface for inspecting what you have. Full picture:\n> [references\u002Fconsume.md](references\u002Fconsume.md#hooks); a hook that stays\n> silent:\n> [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md#a-hook-that-never-fires).\n\n> **Settings are experimental too, and off by default.** A settings package\n> writes values into each harness's own settings file (Claude, Codex,\n> Copilot, Cursor, OpenCode, Qoder, Antigravity, Amp, Droid, Gemini, Kilo,\n> Kiro, Warp; at project scope only Claude, into\n> `.claude\u002Fsettings.local.json`). It applies only past\n> `options.experimental.settings` (config-only, no environment variable) and,\n> at project scope, the same workspace consent hooks use. The flag is not\n> consent. Full picture: [references\u002Fconsume.md](references\u002Fconsume.md#settings).\n\nThree consequences of that shape are worth knowing before your first\ninstall. In a project with no `--client` and no project list, the global\n`options.clients` joins the detected clients. When **nothing** is detected\nand no global list is set, grim targets the generic `agents`\nclient — one copy into the shared `.agents\u002Fskills` pool — rather than\nwriting a directory for every client it knows about; a lock holding only\nrules, agents, or MCP servers then has nowhere to go and exits **78**. And\na client that reads that shared pool joins it on its own when another\nselected client writes there, so a skill lands once rather than twice;\n`options.vendors.\u003Cname>.shared_skills` pins the answer (`true` always pool,\n`false` always native). Both in\n[references\u002Fregistries.md](references\u002Fregistries.md#client-targets).\n\n## Verify Before Acting\n\nBefore composing any non-trivial grim command:\n\n1. Run `grim --version`. This guide tracks the release it ships beside; on\n   a different minor, treat every flag mentioned here as a hypothesis.\n2. Run `grim \u003Ccommand> --help` before using flags you have not verified\n   this session — it is the authoritative, always-current flag list.\n3. On any conflict between this skill and live `--help` output, **trust\n   `--help`**. It ships with the binary; this guide can lag.\n\nThese pages teach workflows and semantics, never exhaustive flags. The\nfull reference is `--help` plus the docs site linked below.\n\nTo verify a pre-built grim release archive's build provenance:\n`gh attestation verify \u003Carchive> --repo grimoire-rs\u002Fgrimoire`\n([Installation][install]).\n\n## Command Map\n\n| Command | Purpose | Details |\n|---|---|---|\n| `grim init` | Create a fresh `grimoire.toml` | [consume](references\u002Fconsume.md) |\n| `grim config` | Read\u002Fwrite `grimoire.toml` settings and registries | [registries](references\u002Fregistries.md) |\n| `grim add` | Declare an artifact and pin it in the lock (an existing pin is kept; `grim update \u003Cname>` moves it) | [consume](references\u002Fconsume.md) |\n| `grim lock` | Pin what the declaration added or changed; keeps every existing pin | [consume](references\u002Fconsume.md) |\n| `grim install` | Materialize the lock into AI clients; `grim install \u003Cpath>` dev-installs a local skill, rule or agent without declaring it | [consume](references\u002Fconsume.md) |\n| `grim update` | The command that moves a pin whose reference you did not change: re-resolve, re-materialize, prune; `--marketplace \u003Cpath>` instead rolls a declared plugin's own lock forward and installs nothing | [consume](references\u002Fconsume.md) |\n| `grim status` | Report each declared artifact's state | [consume](references\u002Fconsume.md) |\n| `grim context` | Report the resolved scope, paths, clients, registries | [consume](references\u002Fconsume.md) |\n| `grim fetch` | Print an artifact's content without installing | [consume](references\u002Fconsume.md) |\n| `grim describe` | Report an artifact's metadata (kind, annotations, tags) without downloading content | [consume](references\u002Fconsume.md) |\n| `grim remove` \u002F `uninstall` | Undeclare vs full inverse of install; both also drop dependencies only the target needed | [consume](references\u002Fconsume.md) |\n| `grim why` | Explain why an artifact is installed: direct, or required by which others (offline, lock only) | [consume](references\u002Fconsume.md#dependencies) |\n| `grim export plugin` | Render already-locked artifacts as a Claude-family (Claude Code, Qoder) or Agent Plugins plugin (directory or `--zip`), for a client with no grim install | [publish](references\u002Fpublish.md#export) |\n| `grim export marketplace` | Regenerate a git marketplace repository from a `marketplace.toml`'s `[marketplace]` table: one marketplace file and one plugin tree per client, plus a root README with the add commands, for consumers with no grim install | [marketplaces](references\u002Fmarketplaces.md) |\n| `grim search` \u002F `tui` | Browse your declared registries' catalogs | [registries](references\u002Fregistries.md) |\n| `grim rate` | Vote on an artifact through the index's rating forge | [registries](references\u002Fregistries.md) |\n| `grim mcp` | Run a local STDIO MCP server for AI agent integration | [registries](references\u002Fregistries.md) |\n| `grim hook list` | Report every declared hook with its tier, events, and per-client arming state | [consume](references\u002Fconsume.md#hooks) |\n| `grim hook allow` \u002F `grim hook revoke` (alias `deny`) | Record or remove this workspace's consent to arm its hooks and apply its settings packages; `grim consent` is an alias of `grim hook` | [consume](references\u002Fconsume.md#hooks) |\n| `grim build` | Validate and pack locally, no push | [publish](references\u002Fpublish.md) |\n| `grim release` | Validate, pack, push with cascade tags | [publish](references\u002Fpublish.md) |\n| `grim publish` | Batch-release packages from a `publish.toml` manifest | [publish](references\u002Fpublish.md) |\n| `grim login` \u002F `logout` | Manage registry credentials | [publish](references\u002Fpublish.md) |\n| `grim schema` | Emit the JSON Schema for `grimoire.toml` \u002F `publish.toml` \u002F `grimoire.lock` \u002F the MCP descriptor \u002F `hook.toml` \u002F a settings document (`settings\u002F\u003Cname>.toml`) | [publish](references\u002Fpublish.md) |\n| `grim completions \u003Cshell>` | Print a shell completion script (bash, elvish, fish, powershell, zsh) to stdout; redirect it into your shell's completion dir | `grim completions --help` |\n\n> **Deprecation:** a publisher can retire a package without\n> unpublishing it; `add` and `status` flag it as deprecated (an `add` of a\n> deprecated reference still succeeds). `search` and `tui` **hide**\n> deprecated artifacts by default unless they are installed — reveal them\n> with `grim search --show-deprecated`, the TUI `h` key, or by setting\n> `options.show_deprecated = true` (`grim config set options.show_deprecated\n> true`). A `replaced-by` successor reference, when the publisher named\n> one, surfaces in `grim search` \u002F `grim describe`. See [Publishing][publishing].\n>\n> **Build provenance:** `build`, `release`, and `publish` embed the\n> publishing commit and its date as OCI annotations **by default** (never a\n> wall-clock time, so re-release stays idempotent). `--git` additionally\n> requires them and discloses the `origin` remote and commit author;\n> `--no-git` suppresses every derived annotation. Confirm with\n> `grim release --help`.\n>\n> **`grim hook` has three subcommands:** `list`, `allow` and `revoke` (alias\n> `deny`). Hooks fire through a separate native `grim-hook` launcher that\n> `grim install` writes to `$GRIM_HOME\u002Fhooks\u002F`; clients run it, a person does\n> not. After upgrading grim, re-run `grim install` in each workspace that uses\n> hooks, or that workspace's hooks stay quiet.\n>\n> **Global flags** apply to every subcommand — `--format`, `--global` (`-g`),\n> `--config`, `--registry`, `--offline`, `--log-level`, and `--color\n> \u003Cauto|always|never>` (default `auto` colorizes clap's help\u002Ferror output\n> and `--format json` only when stdout is a terminal; `--color always`\n> colorizes unconditionally, so never pass it into a pipeline that parses\n> the document. The JSON error document is never colorized in any mode).\n> Confirm the set with `grim --help`.\n\n## Reference Syntax\n\nAn artifact is named `registry\u002Frepository:tag` (a floating tag — `:1`\nfollows the newest `1.x` release) or `registry\u002Frepository@sha256:…` (an\nimmutable digest). A bare reference defaults to `:latest`.\n\nA third form skips the registry: a **local path** — `.\u002Fskills\u002Fx`,\n`..\u002Fshared\u002Frule.md`, or an absolute path — names a directory or file on\ndisk directly. A value starting with `.\u002F` or `..\u002F`, or an absolute path, is\na local path source; anything else is an OCI reference. Path values are\naccepted in `[skills]`, `[rules]`, `[agents]` and `[bundles]`, and as the\nargument of `grim add`, `grim install` and `grim export plugin`. A path\ngiven to `grim install` is a dev-install: it renders a local skill, rule or\nagent into your clients without declaring it, and that positional takes no\nregistry reference (exit 64). `[mcp]`, `[hooks]` and `[settings]` take registry\nreferences only — a path value there is refused with exit 65, so an MCP\nserver, a hook or a settings package always comes from a registry. See\n[references\u002Fconsume.md](references\u002Fconsume.md#declaring) for how a path is\ndeclared and installed.\n\nA `grimoire.toml` value must be fully qualified (`registry\u002Frepository`,\nwith an optional tag or digest). The short and qualified forms below are for\ncommand arguments such as `grim add` and `grim describe`, which expand them\nbefore anything is written.\n\nA short reference with no registry resolves against the default registry —\n`--registry` flag, then `GRIM_DEFAULT_REGISTRY`, then config, then the\nbuilt-in fallback registry `ghcr.io\u002Fgrimoire-rs`; full\nprecedence in [references\u002Fregistries.md](references\u002Fregistries.md). Browsing\nwith nothing configured (`grim search`, `grim tui`, `grim mcp`) falls back\nto the public package index at `https:\u002F\u002Findex.grimoire.rs` instead — see\n[references\u002Fregistries.md](references\u002Fregistries.md#multiple-registries).\n\nWhen a config declares `[[registries]]` with aliases, a **qualified\nreference** `alias\u002Frepo[:tag]` expands the alias to its configured URL —\nfor example `acme\u002Fcode-review:1` becomes `ghcr.io\u002Facme\u002Fcode-review:1`\nwhen `acme` is aliased to `ghcr.io\u002Facme`. This only works for an\n`oci`-type alias. An index-type alias fails with exit 65. Full details\nand the multi-registry browse behavior in\n[references\u002Fregistries.md](references\u002Fregistries.md#qualified-references).\n\n## Routing Table\n\n| Read... | ...when |\n|---|---|\n| [references\u002Fconsume.md](references\u002Fconsume.md) | Installing, updating, or removing artifacts in a project |\n| [references\u002Fpublish.md](references\u002Fpublish.md) | Building, releasing, tagging, or logging in to publish |\n| [references\u002Fregistries.md](references\u002Fregistries.md) | Resolving registries, scopes, client targets, offline mode, searching, or rating |\n| [references\u002Fmarketplaces.md](references\u002Fmarketplaces.md) | Running `grim export marketplace`, or adding, pinning, rolling out or troubleshooting a grim-generated plugin marketplace in Claude Code, Copilot, Codex, Qoder or Cursor (consumers need no grim) |\n| [references\u002Ftelemetry.md](references\u002Ftelemetry.md) | Turning opt-in telemetry on, proving it is off, or auditing what it sends |\n| [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) | A grim command failed — exit codes, integrity gates, common causes |\n| [references\u002Fupdating.md](references\u002Fupdating.md) | Maintaining this skill itself against newer grim releases |\n\n## Further Reading\n\n- [Command reference][commands] — every command with current flags.\n- [Concepts][concepts] — kinds, references, the lock, bundles, scopes,\n  clients.\n- [Configuration][config] — `grimoire.toml`, `grimoire.lock`, environment\n  variables.\n- [Publishing][publishing] — the author-to-release workflow.\n- [Authentication][auth] — credential store, login\u002Flogout, CI recipes.\n- [Use a marketplace][use-a-marketplace] and [Host a marketplace][hosting-a-marketplace]\n  — consumer and curator guides. To *create* one (layout, deploy repository,\n  scheduled regenerate), use the `grim-authoring` skill's marketplace reference.\n\n[commands]: https:\u002F\u002Fgrimoire.rs\u002Fcommands.html\n[concepts]: https:\u002F\u002Fgrimoire.rs\u002Fconcepts.html\n[config]: https:\u002F\u002Fgrimoire.rs\u002Fconfiguration.html\n[publishing]: https:\u002F\u002Fgrimoire.rs\u002Fpublishing.html\n[auth]: https:\u002F\u002Fgrimoire.rs\u002Fauthentication.html\n[clients]: https:\u002F\u002Fgrimoire.rs\u002Fclients.html\n[install]: https:\u002F\u002Fgrimoire.rs\u002Finstallation.html#pre-built-binaries\n[use-a-marketplace]: https:\u002F\u002Fgrimoire.rs\u002Fguides\u002Fuse-a-marketplace.html\n[hosting-a-marketplace]: https:\u002F\u002Fgrimoire.rs\u002Fguides\u002Fhosting-a-marketplace.html\n\n---\n\nVerified against the grim release this package ships beside.\n","# Grim Usage\n\nGrimoire (binary: `grim`) is a package manager for AI-agent configuration.\nIt distributes seven artifact kinds — **skills**, **rules**, **agents**,\n**MCP servers**, **hooks**, **settings**, and **bundles** — through any standard OCI\nregistry (GHCR, Docker Hub, a private Distribution), with lockfile-pinned\ninstalls into a growing fleet of AI clients plus a vendor-neutral `agents`\ntarget. The current names are listed in\n[references\u002Fregistries.md](references\u002Fregistries.md#client-targets); the\nset grows every minor release, so read it there rather than assuming. An\nMCP server artifact installs by registering an entry in each client's\nnative MCP config file (never as a file of its own); uninstall removes\nonly that entry, never the file.\n\nNot every client can host every kind: a **skill** is the one kind every\nclient hosts, but a rule needs a per-file scoping surface, an agent needs a\nshipped file format, and an MCP server needs a config file grim can splice —\nand many clients lack one or more of those. Where a client cannot faithfully\nhost a kind, grim warns and skips it, writing zero files. Most of the fleet\ndeclines rules, but agents are hosted by a majority of clients (12 of the 18\nsupported clients), and the skills-only clients mostly write no MCP config\neither — except Cline (global scope only), Droid, and Warp. The authoritative per-client support matrix is the [Client\nCompatibility][clients] docs page — trust it over this summary, and check it\nrather than assuming.\n\n> **Hooks are experimental and off by default.** The kind publishes,\n> resolves, locks, installs, and reports today; **arming is gated twice**:\n> `options.experimental.hooks` must be true (`false` unless you set it,\n> config-only — no environment variable overrides it) **and** the workspace\n> must have consented (`grim hook allow`, `grim add`, or an accepted prompt;\n> global scope is always consented). `grim install` and `grim update` never\n> grant consent. So adding a hook gives you a declaration, a lock pin, and a\n> materialized payload tree, and nothing fires until both gates clear.\n> `grim hook list` is the surface for inspecting what you have. Full picture:\n> [references\u002Fconsume.md](references\u002Fconsume.md#hooks); a hook that stays\n> silent:\n> [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md#a-hook-that-never-fires).\n\n> **Settings are experimental too, and off by default.** A settings package\n> writes values into each harness's own settings file (Claude, Codex,\n> Copilot, Cursor, OpenCode, Qoder, Antigravity, Amp, Droid, Gemini, Kilo,\n> Kiro, Warp; at project scope only Claude, into\n> `.claude\u002Fsettings.local.json`). It applies only past\n> `options.experimental.settings` (config-only, no environment variable) and,\n> at project scope, the same workspace consent hooks use. The flag is not\n> consent. Full picture: [references\u002Fconsume.md](references\u002Fconsume.md#settings).\n\nThree consequences of that shape are worth knowing before your first\ninstall. In a project with no `--client` and no project list, the global\n`options.clients` joins the detected clients. When **nothing** is detected\nand no global list is set, grim targets the generic `agents`\nclient — one copy into the shared `.agents\u002Fskills` pool — rather than\nwriting a directory for every client it knows about; a lock holding only\nrules, agents, or MCP servers then has nowhere to go and exits **78**. And\na client that reads that shared pool joins it on its own when another\nselected client writes there, so a skill lands once rather than twice;\n`options.vendors.\u003Cname>.shared_skills` pins the answer (`true` always pool,\n`false` always native). Both in\n[references\u002Fregistries.md](references\u002Fregistries.md#client-targets).\n\n## Verify Before Acting\n\nBefore composing any non-trivial grim command:\n\n1. Run `grim --version`. This guide tracks the release it ships beside; on\n   a different minor, treat every flag mentioned here as a hypothesis.\n2. Run `grim \u003Ccommand> --help` before using flags you have not verified\n   this session — it is the authoritative, always-current flag list.\n3. On any conflict between this skill and live `--help` output, **trust\n   `--help`**. It ships with the binary; this guide can lag.\n\nThese pages teach workflows and semantics, never exhaustive flags. The\nfull reference is `--help` plus the docs site linked below.\n\nTo verify a pre-built grim release archive's build provenance:\n`gh attestation verify \u003Carchive> --repo grimoire-rs\u002Fgrimoire`\n([Installation][install]).\n\n## Command Map\n\n| Command | Purpose | Details |\n|---|---|---|\n| `grim init` | Create a fresh `grimoire.toml` | [consume](references\u002Fconsume.md) |\n| `grim config` | Read\u002Fwrite `grimoire.toml` settings and registries | [registries](references\u002Fregistries.md) |\n| `grim add` | Declare an artifact and pin it in the lock (an existing pin is kept; `grim update \u003Cname>` moves it) | [consume](references\u002Fconsume.md) |\n| `grim lock` | Pin what the declaration added or changed; keeps every existing pin | [consume](references\u002Fconsume.md) |\n| `grim install` | Materialize the lock into AI clients; `grim install \u003Cpath>` dev-installs a local skill, rule or agent without declaring it | [consume](references\u002Fconsume.md) |\n| `grim update` | The command that moves a pin whose reference you did not change: re-resolve, re-materialize, prune; `--marketplace \u003Cpath>` instead rolls a declared plugin's own lock forward and installs nothing | [consume](references\u002Fconsume.md) |\n| `grim status` | Report each declared artifact's state | [consume](references\u002Fconsume.md) |\n| `grim context` | Report the resolved scope, paths, clients, registries | [consume](references\u002Fconsume.md) |\n| `grim fetch` | Print an artifact's content without installing | [consume](references\u002Fconsume.md) |\n| `grim describe` | Report an artifact's metadata (kind, annotations, tags) without downloading content | [consume](references\u002Fconsume.md) |\n| `grim remove` \u002F `uninstall` | Undeclare vs full inverse of install; both also drop dependencies only the target needed | [consume](references\u002Fconsume.md) |\n| `grim why` | Explain why an artifact is installed: direct, or required by which others (offline, lock only) | [consume](references\u002Fconsume.md#dependencies) |\n| `grim export plugin` | Render already-locked artifacts as a Claude-family (Claude Code, Qoder) or Agent Plugins plugin (directory or `--zip`), for a client with no grim install | [publish](references\u002Fpublish.md#export) |\n| `grim export marketplace` | Regenerate a git marketplace repository from a `marketplace.toml`'s `[marketplace]` table: one marketplace file and one plugin tree per client, plus a root README with the add commands, for consumers with no grim install | [marketplaces](references\u002Fmarketplaces.md) |\n| `grim search` \u002F `tui` | Browse your declared registries' catalogs | [registries](references\u002Fregistries.md) |\n| `grim rate` | Vote on an artifact through the index's rating forge | [registries](references\u002Fregistries.md) |\n| `grim mcp` | Run a local STDIO MCP server for AI agent integration | [registries](references\u002Fregistries.md) |\n| `grim hook list` | Report every declared hook with its tier, events, and per-client arming state | [consume](references\u002Fconsume.md#hooks) |\n| `grim hook allow` \u002F `grim hook revoke` (alias `deny`) | Record or remove this workspace's consent to arm its hooks and apply its settings packages; `grim consent` is an alias of `grim hook` | [consume](references\u002Fconsume.md#hooks) |\n| `grim build` | Validate and pack locally, no push | [publish](references\u002Fpublish.md) |\n| `grim release` | Validate, pack, push with cascade tags | [publish](references\u002Fpublish.md) |\n| `grim publish` | Batch-release packages from a `publish.toml` manifest | [publish](references\u002Fpublish.md) |\n| `grim login` \u002F `logout` | Manage registry credentials | [publish](references\u002Fpublish.md) |\n| `grim schema` | Emit the JSON Schema for `grimoire.toml` \u002F `publish.toml` \u002F `grimoire.lock` \u002F the MCP descriptor \u002F `hook.toml` \u002F a settings document (`settings\u002F\u003Cname>.toml`) | [publish](references\u002Fpublish.md) |\n| `grim completions \u003Cshell>` | Print a shell completion script (bash, elvish, fish, powershell, zsh) to stdout; redirect it into your shell's completion dir | `grim completions --help` |\n\n> **Deprecation:** a publisher can retire a package without\n> unpublishing it; `add` and `status` flag it as deprecated (an `add` of a\n> deprecated reference still succeeds). `search` and `tui` **hide**\n> deprecated artifacts by default unless they are installed — reveal them\n> with `grim search --show-deprecated`, the TUI `h` key, or by setting\n> `options.show_deprecated = true` (`grim config set options.show_deprecated\n> true`). A `replaced-by` successor reference, when the publisher named\n> one, surfaces in `grim search` \u002F `grim describe`. See [Publishing][publishing].\n>\n> **Build provenance:** `build`, `release`, and `publish` embed the\n> publishing commit and its date as OCI annotations **by default** (never a\n> wall-clock time, so re-release stays idempotent). `--git` additionally\n> requires them and discloses the `origin` remote and commit author;\n> `--no-git` suppresses every derived annotation. Confirm with\n> `grim release --help`.\n>\n> **`grim hook` has three subcommands:** `list`, `allow` and `revoke` (alias\n> `deny`). Hooks fire through a separate native `grim-hook` launcher that\n> `grim install` writes to `$GRIM_HOME\u002Fhooks\u002F`; clients run it, a person does\n> not. After upgrading grim, re-run `grim install` in each workspace that uses\n> hooks, or that workspace's hooks stay quiet.\n>\n> **Global flags** apply to every subcommand — `--format`, `--global` (`-g`),\n> `--config`, `--registry`, `--offline`, `--log-level`, and `--color\n> \u003Cauto|always|never>` (default `auto` colorizes clap's help\u002Ferror output\n> and `--format json` only when stdout is a terminal; `--color always`\n> colorizes unconditionally, so never pass it into a pipeline that parses\n> the document. The JSON error document is never colorized in any mode).\n> Confirm the set with `grim --help`.\n\n## Reference Syntax\n\nAn artifact is named `registry\u002Frepository:tag` (a floating tag — `:1`\nfollows the newest `1.x` release) or `registry\u002Frepository@sha256:…` (an\nimmutable digest). A bare reference defaults to `:latest`.\n\nA third form skips the registry: a **local path** — `.\u002Fskills\u002Fx`,\n`..\u002Fshared\u002Frule.md`, or an absolute path — names a directory or file on\ndisk directly. A value starting with `.\u002F` or `..\u002F`, or an absolute path, is\na local path source; anything else is an OCI reference. Path values are\naccepted in `[skills]`, `[rules]`, `[agents]` and `[bundles]`, and as the\nargument of `grim add`, `grim install` and `grim export plugin`. A path\ngiven to `grim install` is a dev-install: it renders a local skill, rule or\nagent into your clients without declaring it, and that positional takes no\nregistry reference (exit 64). `[mcp]`, `[hooks]` and `[settings]` take registry\nreferences only — a path value there is refused with exit 65, so an MCP\nserver, a hook or a settings package always comes from a registry. See\n[references\u002Fconsume.md](references\u002Fconsume.md#declaring) for how a path is\ndeclared and installed.\n\nA `grimoire.toml` value must be fully qualified (`registry\u002Frepository`,\nwith an optional tag or digest). The short and qualified forms below are for\ncommand arguments such as `grim add` and `grim describe`, which expand them\nbefore anything is written.\n\nA short reference with no registry resolves against the default registry —\n`--registry` flag, then `GRIM_DEFAULT_REGISTRY`, then config, then the\nbuilt-in fallback registry `ghcr.io\u002Fgrimoire-rs`; full\nprecedence in [references\u002Fregistries.md](references\u002Fregistries.md). Browsing\nwith nothing configured (`grim search`, `grim tui`, `grim mcp`) falls back\nto the public package index at `https:\u002F\u002Findex.grimoire.rs` instead — see\n[references\u002Fregistries.md](references\u002Fregistries.md#multiple-registries).\n\nWhen a config declares `[[registries]]` with aliases, a **qualified\nreference** `alias\u002Frepo[:tag]` expands the alias to its configured URL —\nfor example `acme\u002Fcode-review:1` becomes `ghcr.io\u002Facme\u002Fcode-review:1`\nwhen `acme` is aliased to `ghcr.io\u002Facme`. This only works for an\n`oci`-type alias. An index-type alias fails with exit 65. Full details\nand the multi-registry browse behavior in\n[references\u002Fregistries.md](references\u002Fregistries.md#qualified-references).\n\n## Routing Table\n\n| Read... | ...when |\n|---|---|\n| [references\u002Fconsume.md](references\u002Fconsume.md) | Installing, updating, or removing artifacts in a project |\n| [references\u002Fpublish.md](references\u002Fpublish.md) | Building, releasing, tagging, or logging in to publish |\n| [references\u002Fregistries.md](references\u002Fregistries.md) | Resolving registries, scopes, client targets, offline mode, searching, or rating |\n| [references\u002Fmarketplaces.md](references\u002Fmarketplaces.md) | Running `grim export marketplace`, or adding, pinning, rolling out or troubleshooting a grim-generated plugin marketplace in Claude Code, Copilot, Codex, Qoder or Cursor (consumers need no grim) |\n| [references\u002Ftelemetry.md](references\u002Ftelemetry.md) | Turning opt-in telemetry on, proving it is off, or auditing what it sends |\n| [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) | A grim command failed — exit codes, integrity gates, common causes |\n| [references\u002Fupdating.md](references\u002Fupdating.md) | Maintaining this skill itself against newer grim releases |\n\n## Further Reading\n\n- [Command reference][commands] — every command with current flags.\n- [Concepts][concepts] — kinds, references, the lock, bundles, scopes,\n  clients.\n- [Configuration][config] — `grimoire.toml`, `grimoire.lock`, environment\n  variables.\n- [Publishing][publishing] — the author-to-release workflow.\n- [Authentication][auth] — credential store, login\u002Flogout, CI recipes.\n- [Use a marketplace][use-a-marketplace] and [Host a marketplace][hosting-a-marketplace]\n  — consumer and curator guides. To *create* one (layout, deploy repository,\n  scheduled regenerate), use the `grim-authoring` skill's marketplace reference.\n\n[commands]: https:\u002F\u002Fgrimoire.rs\u002Fcommands.html\n[concepts]: https:\u002F\u002Fgrimoire.rs\u002Fconcepts.html\n[config]: https:\u002F\u002Fgrimoire.rs\u002Fconfiguration.html\n[publishing]: https:\u002F\u002Fgrimoire.rs\u002Fpublishing.html\n[auth]: https:\u002F\u002Fgrimoire.rs\u002Fauthentication.html\n[clients]: https:\u002F\u002Fgrimoire.rs\u002Fclients.html\n[install]: https:\u002F\u002Fgrimoire.rs\u002Finstallation.html#pre-built-binaries\n[use-a-marketplace]: https:\u002F\u002Fgrimoire.rs\u002Fguides\u002Fuse-a-marketplace.html\n[hosting-a-marketplace]: https:\u002F\u002Fgrimoire.rs\u002Fguides\u002Fhosting-a-marketplace.html\n\n---\n\nVerified against the grim release this package ships beside.\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"summary":24,"keywords":25,"repository":26},"How to use the grim CLI end to end","grim,grimoire,cli,oci,registry,install,update,publish,skills,rules,agents,bundles,mcp,hooks,settings,multi-registry","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire","grim>=0.16","main","ec018c25128e4b5b2e08679288e9e9153085830a","catalog\u002Fskills\u002Fgrim-usage",1,"https:\u002F\u002Fgrimoire.rs","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs","2026-11-14 09:47:24",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add grimoire-rs\u002Fgrimoire --skill grim-usage",{"tool":41,"command":42},"bunx","bunx skills add grimoire-rs\u002Fgrimoire --skill grim-usage",{"tool":44,"command":45},"pnpm","pnpm dlx skills add grimoire-rs\u002Fgrimoire --skill grim-usage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002FSKILL.md",true,[49,55,59,63,67,71,75],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fconsume.md","REFERENCE","参考文档",57703,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Fconsume.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fmarketplaces.md",13744,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Fmarketplaces.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fpublish.md",40469,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Fpublish.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fregistries.md",67637,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Fregistries.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Ftelemetry.md",2912,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Ftelemetry.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ftroubleshooting.md",35845,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Ftroubleshooting.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fupdating.md",8140,"https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Fcatalog\u002Fskills\u002Fgrim-usage\u002Freferences\u002Fupdating.md",[80,88,95,102,109,116],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M78R7R0RQWY8BC0AQSB3E6NX","rca","Use when a bug ticket, GitHub issue or error report needs a root cause analysis before code is touched — \"is this a bug\", \"why does this fail\". Read-only. Gives a verdict (bug or not-a-bug kind), file:line evidence, ruled-out hypotheses, other affected sites, fix direction and size. A ticket, not a diff (hex-review).","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frca\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":87},"01M78R7JY3CY2XDNTB330GXTJK","fix","Use when a bug ticket or GitHub issue should go from report to an approved fix plan — \"plan a fix\", \"fix this issue\". Root-causes it via rca, then plans in plan mode with the failing regression test first. Routes to hex-plan instead when the fix is large or moves an interface contract.","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffix\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M72XYVY9FGB38MZDJ0QFFMCC","p9-skill","Principle 9 differential fixture skill (v2).","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Ftest\u002Ftools\u002Fp9_fixtures\u002Fv2\u002Fskills\u002Fp9-skill\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M72XYT3PPTXEFWCR8H4GWKEG","p9-member","Bundle member skill for the Principle 9 fixture (v2).","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Ftest\u002Ftools\u002Fp9_fixtures\u002Fv2\u002Fskills\u002Fp9-member\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":18},"01M72XYRWQWZ4BD0367QWG96TB","p9-hookish","Hook-free skill carrying an ignored hook.toml (v2).","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Ftest\u002Ftools\u002Fp9_fixtures\u002Fv2\u002Fskills\u002Fp9-hookish\u002FSKILL.md",[],[],{"skillNo":117,"name":97,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M72XYPDXXK5C6ZDD5BS2N6HS","Principle 9 differential fixture skill (v1).","https:\u002F\u002Fgithub.com\u002Fgrimoire-rs\u002Fgrimoire\u002Fblob\u002Fmain\u002Ftest\u002Ftools\u002Fp9_fixtures\u002Fv1\u002Fskills\u002Fp9-skill\u002FSKILL.md",[],[]]