[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76WWF59EEJGDHPT2RMPSXEJ":3,"skill-same:01M76WWF59EEJGDHPT2RMPSXEJ":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M76WWF59EEJGDHPT2RMPSXEJ","magus-query",null,"egladman\u002Fmagus","egladman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8713153?v=4","01M75H42QB5A4X82APZF4H44GM","Eli Gladman","01M75H42R1K59Z7JWAP621J849",3,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-query\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# magus knowledge graph\n\n{{if .Full}}magus keeps a deterministic, cache-backed graph of its own domain. Query it to find\nand relate entities instead of grepping source. This skill teaches HOW to use\nthe tools; the verbs below say WHAT is in this specific workspace. The division is\nstrict, so this skill never goes stale when a workspace changes, only when the\ntool set does.{{else}}magus keeps deterministic, cache-backed graph of its own domain; query it to find and relate entities, not grep source.{{end}}\n\n{{if .Full}}FAST PATH: in a magus workspace (a magusfile.buzz at the root), ask the graph FIRST.\nThat covers \"what exists\", \"what depends on X\", \"where is Y used\", and \"how do A and\nB relate\". Do not open Grep or Glob for it. Unlike a\ngrep hit, a graph answer is verified: every edge is extracted from a declared\nsource or scored by a rubric, and says which. If the graph cannot answer, say so,\nthen fall back: a silent fallback hides the gap that should be\nreported.\n\nSend a lookup whose answer is all you need to the `magus-scout` agent, where your\nharness installed one. Otherwise use a worker on your host's cheapest model. Answering\nfrom the graph takes no judgment, so the strongest model spends its tokens for nothing\nthere, and a scout's short context keeps every lookup cheap.{{else}}Fast path: in magus workspace (magusfile.buzz at root), ask graph FIRST: \"what exists\", \"what depends on X\", \"where is Y used\", \"how do A and B relate\".\nNever open Grep or Glob for it.\nIf graph cannot answer -> say so, then fall back; silent fallback hides gap.\nLookup whose answer is all you need -> `magus-scout` agent, where harness installed one; otherwise worker on host's cheapest model.{{end}}\n\n{{if .Full}}`MAGUS.md` IS NOT YOUR SOURCE. It is a generated routing index written for a\nHUMAN reading the repo, and it is only as true as its last regeneration: a\nworkspace whose generate target has not run since the last change describes a\ntree that no longer exists. Every fact in it has a live command that cannot be\nstale, and those commands scope to a project where the file covers the whole\nworkspace. Read it as a LAST RESORT: when no server is reachable and the CLI is\nunavailable too, or when a human explicitly asks what the committed index says.{{else}}`MAGUS.md` is NOT your source: generated index for humans, true only as of last regeneration.\nRead it only as last resort: no server AND no CLI, or human asking what committed index says.{{end}}\n\n{{if .Full}}## Act in this order{{else}}## Order{{end}}\n\n{{if .Full}}1. Ask the workspace what exists, with the verb that answers your question:{{else}}1. Ask workspace what exists, with verb answering your question:{{end}}\n   - `{{cmd \"describe targets\"}}`: every target; `-o name` for bare names.\n{{if .Full}}   - `{{cmd \"ls\"}}`: every project with its spell, sources, outputs, depends_on.\n   - `{{cmd \"describe\"}} spells`, `{{cmd \"describe\"}} projects`.{{else}}   - `{{cmd \"ls\"}}`: every project with spell, sources, outputs, depends_on.\n   - `{{cmd \"describe\"}} spells`, `{{cmd \"describe\"}} projects`.{{end}}{{if .Full}}\n\n   These are live, so they\n   are right even mid-change, and they take a `-o json` for machine reading.{{end}}\n\n{{if .Full}}2. Then reach for the verbs. Prefer an MCP tool when this host exposes it.\n   - Call the tool itself to check availability. `{{cmd \"server status\"}} --probe=mcp` tests\n     the loopback HTTP listener, so it can fail while stdio or Unix-socket MCP\n     works.\n   - If the tool is missing or its call fails, use the CLI equivalent from the same\n     row below. Do not stop or grep.\n   - `{{cmd \"server status\"}} --probe=readiness` checks that this workspace is loaded on the\n     server socket. It does not test the host's MCP registration.\n   - Never start a server only to unlock a tool. CLI\n     fallback remains correct, but has no tool discovery or warm server graph.{{else}}2. Then verbs. Prefer MCP tool when host exposes it.\n   - Call tool itself to check availability; `{{cmd \"server status\"}} --probe=mcp` tests loopback HTTP listener -> can fail while stdio or Unix-socket MCP works.\n   - If tool missing or call fails -> CLI equivalent from same row below. Do not stop or grep.\n   - `{{cmd \"server status\"}} --probe=readiness`: checks workspace loaded on server socket; does not test host MCP registration.\n   - Never start server only to unlock tool.{{end}}\n\n{{if .Full}}   | question                                      | MCP                                              | CLI                                |\n   | --------------------------------------------- | ------------------------------------------------ | ---------------------------------- |\n   | find and relate entities                      | `{{tool \"client\"}}` (`{{buzz \"graph.query\"}}`)         | `{{cmd \"query\"}} \"\u003Cterms>\"`            |\n   | one node: its edges, provenance, blast radius | `{{tool \"client\"}}` (`{{buzz \"graph.explain\"}}`)       | `{{cmd \"explain\"}} \u003Cnode>`             |\n   | how do two nodes relate                       | `{{tool \"client\"}}` (`{{buzz \"graph.path\"}}`)          | `{{cmd \"explain\"}} \u003Ca> --to \u003Cb>`       |\n   | where risk concentrates                       | `{{tool \"client\"}}` (`{{buzz \"graph.stats\"}}`)         | `{{cmd \"graph stats\"}}`                |\n   | where a code symbol is defined and used       | `{{tool \"client\"}}` (`{{buzz \"graph.refs\"}}`)          | `{{cmd \"refs\"}} \u003Csymbol>`              |\n   | what a branch changed in the graph            | (export + diff) | `{{cmd \"graph diff\"}} \u003Cbaseline.json>` |{{else}}   Question: MCP; CLI\n   - find and relate entities: `{{tool \"client\"}}` (`{{buzz \"graph.query\"}}`); `{{cmd \"query\"}} \"\u003Cterms>\"`\n   - one node: edges, provenance, blast radius: `{{tool \"client\"}}` (`{{buzz \"graph.explain\"}}`); `{{cmd \"explain\"}} \u003Cnode>`\n   - how two nodes relate: `{{tool \"client\"}}` (`{{buzz \"graph.path\"}}`); `{{cmd \"explain\"}} \u003Ca> --to \u003Cb>`\n   - where risk concentrates: `{{tool \"client\"}}` (`{{buzz \"graph.stats\"}}`); `{{cmd \"graph stats\"}}`\n   - where code symbol defined and used: `{{tool \"client\"}}` (`{{buzz \"graph.refs\"}}`); `{{cmd \"refs\"}} \u003Csymbol>`\n   - what branch changed in graph: (export + diff); `{{cmd \"graph diff\"}} \u003Cbaseline.json>`{{end}}\n\n{{if .Full}}   Prefer these over grep and glob for anything in the magus domain. `{{buzz \"graph.refs\"}}`\n   needs a workspace that declares a SCIP index (`knowledge.symbols` in config). It\n   is the occurrence-shaped def\u002Freferences answer, so use it over `{{buzz \"graph.query\"}}` for a\n   symbol's fan-in.{{else}}   Prefer these over grep and glob for anything in magus domain.\n   `{{buzz \"graph.refs\"}}` needs workspace declaring SCIP index (`knowledge.symbols` in config).{{end}}\n\n{{if .Full}}   Every empty result carries a verdict. Read it before concluding anything:\n   - `absent`: magus searched every symbol index this workspace declares, and the\n     thing is not there.\n   - `unknown`: it names the projects it could not search. Build those with\n     `{{cmd \"graph build\"}}` to turn the answer into a fact.{{else}}   Every empty result carries verdict; read it before concluding anything:\n   - `absent`: magus searched every symbol index workspace declares; thing not there.\n   - `unknown`: names projects it could not search; build those with `{{cmd \"graph build\"}}` -> answer becomes fact.{{end}}\n\n{{if .Full}}   A result can name its own next step, with real ids filled in. Text\n   mode prints the commands under a `next:` label; `-o json` carries a `next` field.\n   Following one is optional: a suggestion, never an order. A result with nothing\n   to suggest has no `next`.{{else}}   Result can name own next step, real ids filled in: `next:` label in text, `next` field in JSON. Suggestion, never order.{{end}}\n\n{{if .Full}}   The graph relates entities; the evaluated dispatch plan lives one verb over.\n   `{{cmd \"describe target\"}} \u003Cname>` prints, per project, the resolved source globs,\n   output globs (the generated files), spells, and policy for that target; use it\n   when the question is \"what feeds or comes out of this target\", not \"what relates\n   to it\".{{else}}   `{{cmd \"describe target\"}} \u003Cname>`: per project, resolved source globs, output globs (generated files), spells, policy for that target.{{end}}\n\n{{if .Full}}## Rewriting a symbol everywhere it appears{{else}}## Rewriting symbol everywhere{{end}}\n\n{{if .Full}}`{{cmd \"refs\"}} \u003Csymbol>` answers \"where is this used\" at file granularity. Its line list\nis CAPPED, so a rewrite driven off it silently skips sites. Add `--occurrences` for the\nedit-precise view: every occurrence, uncapped, with start and end line\u002Fcolumn. Each\nrange is checked against the file on disk.{{else}}`{{cmd \"refs\"}} \u003Csymbol>`: \"where is this used\" at file granularity. Line list CAPPED -> rewrite driven off it silently skips sites.\n`--occurrences`: edit-precise view: every occurrence, uncapped, start and end line\u002Fcolumn; each range checked against file on disk.{{end}}\n\n```sh\nmagus refs \u003Csymbol> --occurrences -o json\n```\n\n{{if .Full}}magus reports the sites; YOU apply the edits. It never rewrites the tree, the same way\n`{{cmd \"affected\"}}` names what a change reaches without touching it.{{else}}magus reports sites; YOU apply edits. It never rewrites tree.{{end}}\n\n{{if .Full}}**Never drive the rewrite from a pattern**: not `sed -i`, not a scripted\nsubstitute-and-write.\n{{else}}Never drive rewrite from pattern: not `sed -i`, not scripted substitute-and-write.{{end}}\n{{if .Full}}- A regex cannot tell YOUR symbol from a dependency's symbol of the same name, and\n  it writes before anyone reads a diff. A `\\.Sum\\b` rewrite aimed at one proto\n  field also hits the OTel SDK's `metricdata.Sum` and a histogram's `dp.Sum`.{{else}}- Regex cannot tell YOUR symbol from dependency's same-named symbol, and writes before anyone reads diff.{{end}}\n{{if .Full}}- The index knows which is which. Apply the sites it reports, then let the compiler\n  enumerate what still moved. Widening the pattern until the errors stop is the\n  same mistake.{{else}}- Index knows which is which. Apply reported sites, then let compiler enumerate what still moved. Widening pattern until errors stop: same mistake.{{end}}\n\n{{if .Full}}**A not-indexed project is a stop, not an empty result.** `{{cmd \"refs\"}}` says\n`verdict: unknown, not absent` and names the projects it could not see. Run\n`{{cmd \"graph build\"}}` and ask again. Reading that verdict as \"no matches\" and falling\nback to text search misses every site in an unindexed project. A fresh worktree\nstarts unindexed, so this is the normal state when you most want a rename.{{else}}Not-indexed project is stop, not empty result: `{{cmd \"refs\"}}` says `verdict: unknown, not absent`, names projects it could not see -> run `{{cmd \"graph build\"}}`, ask again.\nFresh worktree starts unindexed: normal state when you most want rename.{{end}}\n\n{{if .Full}}Three things decide whether the result is usable. Skipping any of them is how a bulk\nrewrite corrupts a file:\n{{else}}Three things decide whether result usable; skipping any corrupts file in bulk rewrite:{{end}}\n{{if .Full}}- **Edit only `verified` sites.** Each occurrence carries a `status`. `verified`\n  means magus read that exact range and found the symbol there. `mismatch` means it\n  found something else (the index predates an edit); `unreadable` means the range\n  is no longer inside the file. `text` shows what is there, and `names` lists every\n  spelling that would have verified, so you can check the verdict.{{else}}- Edit only `verified` sites. Each occurrence carries `status`. `verified`: magus read that exact range, found symbol. `mismatch`, `unreadable`: index predates edit; `text` and `names` let you check.{{end}}\n{{if .Full}}- **Check the exit status when scripting `-o name`.** It emits `file:line:col` for\n  verified sites ONLY. A wholly stale index prints nothing, which alone looks like an\n  unused symbol. Exit 1 means sites were found and withheld, with the count on stderr.{{else}}- Check exit status when scripting `-o name`: emits `file:line:col` for verified sites ONLY. Wholly stale index prints nothing, which alone looks like unused symbol. Exit 1: sites found and withheld, count on stderr.{{end}}\n{{if .Full}}- **Apply back-to-front within each file.** A replacement of a different length\n  shifts every later column on that line. Walk each file's occurrences in reverse;\n  files are independent.{{else}}- Apply back-to-front within each file: different-length replacement shifts every later column on that line. Walk each file's occurrences in reverse; files independent.{{end}}\n{{if .Full}}- **Treat a `stale` file as a stop, not a filter.** A file is stale when any of its\n  ranges failed to verify. The index may then also be MISSING occurrences added\n  since, which no per-site check can see. Re-run that project's `scip` target and ask\n  again. Editing only the verified sites yields\n  a half-renamed tree that may still compile.{{else}}- `stale` file is stop, not filter. File stale when any of its ranges failed to verify; index may then also be MISSING occurrences added since, which no per-site check can see. Re-run project's `scip` target, ask again.{{end}}\n\n{{if .Full}}Completeness rests on a current index even when everything verifies. An edit that\nappended a new use without disturbing existing ranges leaves every site verifying\nwhile adding one magus never saw.\n{{else}}Completeness rests on current index even when everything verifies: newly appended use verifies nothing, never seen.{{end}}\n{{if .Full}}- `{{cmd \"server status\"}}` reports which indexes are fresh. Re-index first when the tree has\n  moved since you last did.{{else}}- `{{cmd \"server status\"}}` reports which indexes fresh. Re-index first when tree moved since last index.{{end}}\n{{if .Full}}- Check the verdict for projects that declare no index at all; those are not\n  searched.{{else}}- Check verdict for projects declaring no index at all; those not searched.{{end}}\n\n## Query grammar\n\n{{if .Full}}Free-text terms plus field matchers. Matchers filter; free text RANKS. A matcher is\n`field\u003Cop>value`; the operators are `=` (match), `!=` (exclude), `=~` (regex):\n\n- `build`: free text, ranked by BM25F over names, signatures, paths and docs. A match\n  needs any one word; one holding fewer words than the query is a PARTIAL match\n- `internal\u002Ftrail`: a term holding `\u002F` must appear whole{{else}}Free-text terms plus field matchers. Matchers filter; free text RANKS. Matcher: `field\u003Cop>value`; operators `=` (match), `!=` (exclude), `=~` (regex):\n- `build`: free text ranked by BM25F over names, signatures, paths, docs; any one word matches; fewer words than the query = PARTIAL match\n- `internal\u002Ftrail`: term holding `\u002F` must appear whole{{end}}\n- `kind=spell`: only that node kind\n{{if .Full}}- `project=pkg\u002Ffoo`: everything the project owns: the project node, its\n  targets, and the files\u002Ffunctions\u002Fdocs whose source lives under it (nested\n  projects claim their own; the root `.` owns only what no nested project does){{else}}- `project=pkg\u002Ffoo`: everything project owns{{end}}\n{{if .Full}}- `relation=uses`: seed from nodes touching that edge (`relation=calls`\n  reaches symbol-to-symbol call edges, so it loads the lazy symbol shards){{else}}- `relation=uses`: seed from nodes touching that edge{{end}}\n{{if .Full}}- `id=build`: substring match on the node ID{{else}}- `id=build`: substring match on node ID{{end}}\n- `kind!=op`: exclude these\n{{if .Full}}- `id=~build$`: regex over the target; `kind=~\"spell|op\"` ORs the alternatives{{else}}- `id=~build$`: regex over target; `kind=~\"spell|op\"` ORs alternatives{{end}}\n{{if .Full}}- `id=target:*build`: `*` wildcard, matching any run (in a value or a free-text term){{else}}- `id=target:*build`: `*` wildcard, matching any run (in value or free-text term){{end}}\n{{if .Full}}- `\"exact phrase\"`: keep a quoted span as one term{{else}}- `\"exact phrase\"`: quoted span as one term{{end}}{{if .Full}}\n\nThe `:` grammar (`kind:spell`) and dash negation (`-kind:op`) are the pre-`=`\nspelling, kept as a compat alias so old invocations still parse. Prefer `=`\u002F`!=`\u002F`=~`.{{end}}\n\n{{if .Full}}A query returns ranked matches plus their neighborhood, bounded by `--budget`\n(default 50). For a large match set over MCP, pass `{limit, offset}` in the\noptions of `{{buzz \"graph.query\"}}` and raise `offset` by `limit` for the next page; `matchCount`\nstays the total, so you know when you have them all.{{else}}`:`\u002F`-kind:op` spelling still parses (compat); prefer `=`\u002F`!=`\u002F`=~`.\nQuery returns ranked matches plus neighborhood, bounded by `--budget` (default 50).\nOver MCP: page with `{limit, offset}` in `{{buzz \"graph.query\"}}` options; `matchCount` stays total.{{end}}\n\n{{if .Full}}## Retrieving prose from the docs{{else}}## Prose from docs{{end}}\n\n{{if .Full}}Every Markdown heading in the workspace is a `docsection` node, so documentation is\nQUERYABLE, not something to read whole. To find WHERE something is explained, query\nthe section; do not cat or grep the file:\n{{else}}Every Markdown heading in workspace is `docsection` node -> docs QUERYABLE, not read whole.\nWHERE something is explained: query section; do not cat or grep file.{{end}}\n{{if .Full}}- `{{cmd \"query\"}} \"kind=docsection \u003Cterms>\"` returns the heading whose section covers\n  your terms. Each result's id and Source are `\u003Cpath>#\u003Canchor>`, a citable pointer\n  to the exact passage. Read that one section, not the whole page.{{else}}- `{{cmd \"query\"}} \"kind=docsection \u003Cterms>\"`: heading whose section covers terms. Each result's id and Source: `\u003Cpath>#\u003Canchor>`, citable pointer to exact passage. Read that one section, not whole page.{{end}}\n{{if .Full}}- Scope it with `project=\u003Cp>` and combine free-text terms. `{{cmd \"explain\"}}\n  \"docsection:\u003Cpath>#\u003Canchor>\"` shows the page a section belongs to and what it links to; a\n  page `contains` its sections and a section contains the headings nested under it, so you\n  can walk the outline.{{else}}- Scope with `project=\u003Cp>`; combine free-text terms.{{end}}\n{{if .Full}}- Prose only: code files are not indexed this way. `{{cmd \"refs\"}}` and the entity\n  kinds above cover code and the domain model.{{else}}- Prose only: code files not indexed this way. `{{cmd \"refs\"}}` and entity kinds above cover code and domain model.{{end}}\n\n{{if .Full}}Reading one file whose path you know is fine. This replaces the SCAN, not a targeted\nread: grep or cat over Markdown to find a passage. The docs covered are\nthis repo's docs, a project's README, and any tracked Markdown, and the anchor is the\nsame fragment a link into the rendered page carries.{{else}}Reading one file whose path you know: fine. This replaces SCAN, not targeted read.{{end}}\n\n## Reading results\n\n{{if .Full}}- Reading as a machine? Add `-o json`. Every verb returns a stable,\n  `api_version`-stamped OBJECT with a top-level wrapper. Key into the plural\n  (`.matches`, `.targets`); it is never a bare array. `-o name` prints bare IDs for\n  piping. Do not scrape the human text or trim it with `head`.\n  Over MCP the tools already return structured content; nothing to shape.{{else}}- Machine reading -> `-o json`. Every verb returns stable, `api_version`-stamped OBJECT with top-level wrapper. Key into plural (`.matches`, `.targets`); never bare array. `-o name`: bare IDs for piping. Do not scrape human text or trim with `head`.{{end}}\n{{if .Full}}- Each match carries `why`: `matched` of `of` says how many of your words it holds,\n  so a partial match is labeled, not hidden; `terms` scores each word per field; `lists`\n  gives its rank in each fused list; `seeds` names the changed files or lease paths that\n  lifted it. `ranking.weights` is the weight file's digest. `explain`, `path` and `refs`\n  take only full matches, so a name nothing holds whole answers absent.{{else}}- Each match carries `why`: `matched`\u002F`of` words held (partial matches labeled), `terms` per field, `lists` ranks, `seeds` (changed files, lease paths). `ranking.weights`: weight file digest. explain\u002Fpath\u002Frefs take full matches only.{{end}}\n{{if .Full}}- Node IDs are stable and structured: `\u003Ckind>:\u003Cqualified-name>`, e.g.\n  `target:pkg\u002Ffoo:build`, `spell:go`, `diagnostic:{{mgs \"MGS2001\"}}`. Key on them; a rename\n  is a delete plus an add.{{else}}- Node IDs stable, structured: `\u003Ckind>:\u003Cqualified-name>`, like `target:pkg\u002Ffoo:build`, `spell:go`, `diagnostic:MGS2001`. Key on them.{{end}}\n{{if .Full}}- Edges are directed and carry a `confidence`: `extracted` (read directly off a\n  source) or `inferred` (a rubric score), plus `provenance` (where it came from).{{else}}- Edges directed, carry `confidence`: `extracted` (read directly off source) or `inferred` (rubric score), plus `provenance` (origin).{{end}}\n{{if .Full}}- Node `attrs` surface metadata: a project's `engine` and `target_count`, a\n  target's inherited `engine`, a doc's `title` and `tags`.\n  - `duration_p75_ms`, `cache_hit_rate`, `run_samples`, `last_output_ref`, and\n    `last_run_ok` are OBSERVED from local run history, not derived from sources; read them as history, not\n    guarantees.\n  - `{{cmd \"query output\"}} \u003Cref>` on a target's `last_output_ref` fetches its latest\n    captured run (a target-to-output hop). The ref is a `refxxxxxxxx` id, and\n    `last_run_ok` is that run's `true`\u002F`false` outcome.\n  - With `knowledge.vcs` enabled, file nodes also carry `vcs_last_commit`,\n    `vcs_last_modified`, and `vcs_commits` from git history.{{else}}- Node `attrs` surface metadata.\n  - `duration_p75_ms`, `cache_hit_rate`, `run_samples`, `last_output_ref`, `last_run_ok`: OBSERVED from local run history.\n  - `{{cmd \"query output\"}} \u003Cref>` on target's `last_output_ref` fetches latest captured run.{{end}}\n{{if .Full}}- Every output carries `api_version`; a bump means the node\u002Fedge shape changed.{{else}}- Every output carries `api_version`; bump means node\u002Fedge shape changed.{{end}}\n\n{{if .Full}}## Ownership and blast radius{{else}}## Ownership, blast radius{{end}}\n\n{{if .Full}}If the repo commits a `CODEOWNERS` file, the graph has `owner` nodes with `owns`\nedges to the projects and files they cover. Combine that with dependency edges to\nanswer \"who owns the blast radius of this change\": `{{cmd \"explain\"}} \u003Cnode>` for the\nnode's owners and dependents, or `{{cmd \"query\"}} kind=owner` to list owners. Only\ndeclared CODEOWNERS ownership appears; it is not blame-inferred.{{else}}If repo commits `CODEOWNERS` file -> graph has `owner` nodes with `owns` edges to projects and files they cover.\n`{{cmd \"explain\"}} \u003Cnode>`: owners plus dependents; `{{cmd \"query\"}} kind=owner` lists them.\nOwnership declared only, never blame-inferred.{{end}}\n\n{{if .Full}}## What other sessions already did here{{else}}## Other sessions' work here{{end}}\n\n{{if .Full}}Agents before you left a record. Where a workspace declares a session adapter,\n`{{cmd \"graph build\"}}` folds each host's transcripts into a local store, and\n`{{cmd \"explain\"}}` and `{{cmd \"session\"}}` read it back:\n{{else}}Agents before you left record, where workspace declares session adapter:{{end}}\n{{if .Full}}- `{{cmd \"explain\"}} \u003Cnode>` ends with an `agent sessions:` line when any loaded session\n  touched that file: reads, writes, distinct sessions, how long ago, and any write\n  the host refused. Silence means nothing touched it.{{else}}- `{{cmd \"explain\"}} \u003Cnode>` ends with `agent sessions:` line when any loaded session touched that file. Silence: nothing touched it.{{end}}\n{{if .Full}}- `{{cmd \"session\"}}` lists those sessions; `{{cmd \"session show\"}} \u003Cid>` opens one, joined\n  against this checkout's guard trail.{{else}}- `{{cmd \"session\"}}` lists sessions; `{{cmd \"session show\"}} \u003Cid>` opens one, joined against this checkout's guard trail.{{end}}\n\n{{if .Full}}Read it BEFORE a non-trivial edit, for the reason the git half of the same output\nexists. A file last committed three weeks ago looks dormant and may have been\nrewritten twice yesterday by a session whose work is not committed yet. Four\nsessions on one file is a reason to look at what they did before adding a fifth\nopinion, and a refused write is a guard rule you are about to hit too.\n\nNever infer from an empty result that nobody worked on a file. It equally means the\nworkspace declares no adapter, the common case.{{else}}Read it before non-trivial edit: file last committed weeks ago may have been rewritten yesterday by session whose work is not committed. Refused write there: guard rule you are about to hit too.\nNever infer from empty result that nobody worked on file: equally means workspace declares no adapter, common case.{{end}}\n\n{{if .Full}}## Across workspaces and neighbors{{else}}## Across workspaces, neighbors{{end}}\n\n{{if .Full}}- `--global` unions every workspace registered in config (`knowledge.workspaces`);\n  IDs are namespaced per workspace (`web\u002F\u002Fspell:go`).{{else}}- `--global` unions every workspace registered in config (`knowledge.workspaces`); IDs namespaced per workspace (`web\u002F\u002Fspell:go`).{{end}}\n{{if .Full}}- `{{cmd \"affected\"}}`, `{{tool \"client\"}}` (`{{buzz \"history.affinity\"}}`), and `{{cmd \"describe\"}}` sit beside the\n  graph. `{{cmd \"graph export\"}} -o json` dumps the whole graph for bulk analysis.{{else}}- `{{cmd \"affected\"}}`, `{{tool \"client\"}}` (`{{buzz \"history.affinity\"}}`), `{{cmd \"describe\"}}` sit beside graph. `{{cmd \"graph export\"}} -o json` dumps whole graph for bulk analysis.{{end}}\n{{if .Full}}- To show a PR's domain impact, run `{{cmd \"graph diff\"}} --rev main -o markdown` for a\n  CI comment (nodes\u002Fedges added, removed, or changed); `--rev` builds the base graph from\n  that revision's files, or pass a `graph export -o json` baseline file instead.{{else}}- PR domain impact: `{{cmd \"graph diff\"}} --rev main -o markdown` for CI comment.{{end}}\n\n{{if .Full}}## Do not render the graph yourself{{else}}## Do not render graph yourself{{end}}\n\n{{if .Full}}magus emits; it does not render. To LOOK at the graph, do not draw it: OFFER the\nhuman an export. `{{cmd \"graph export\"}} -o json` (or `-o graphml`) opens in Gephi, yEd,\nor a browser graph tool. The emit-never-render convention that governs magus\ngoverns you too.{{else}}magus emits; does not render. To LOOK at graph, do not draw it: OFFER human export.\n`{{cmd \"graph export\"}} -o json` (or `-o graphml`) opens in Gephi, yEd, or browser graph tool.{{end}}\n\n{{if .Full}}## Fetching current behavior{{else}}## Current behavior{{end}}\n\n{{if .Full}}For flags and behavior this skill does not cover, run any verb with `-h` and read the\nmagus documentation site. Prefer the tools' own output over assumptions.{{else}}Flags and behavior this skill does not cover: run any verb with `-h`, read magus documentation site.{{end}}\n",{},"main","5f0df014d9eaf4aea1a930b0bd13c3338e2642de","internal\u002Fagent\u002Fskills\u002Fmagus-query",0,"https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus","http:\u002F\u002Feli.gladman.cc\u002Fmagus\u002F","https:\u002F\u002Fgithub.com\u002Fegladman","eli.gladman.cc","2026-11-14 12:23:44",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add egladman\u002Fmagus --skill magus-query",{"tool":37,"command":38},"bunx","bunx skills add egladman\u002Fmagus --skill magus-query",{"tool":40,"command":41},"pnpm","pnpm dlx skills add egladman\u002Fmagus --skill magus-query","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-query\u002FSKILL.md",true,[],[46,52,58,64,70,76],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M76WWZ75J70NCG0TR23XDDE6","magus-workspace-rules","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-workspace-rules\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M76WWX72SY78KG03AVYFE768","magus-vcs-hygiene","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-vcs-hygiene\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M76WWTJYGRCKKXH948KN6RR3","magus-upstream-source","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-upstream-source\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M76WWRTBBAPNKM0PA2NG5Q3N","magus-upstream-docs","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-upstream-docs\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M76WWNTF03H9S5CN22QBX5ZK","magus-test-design","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-test-design\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M76WWJX1FPSWYD1RB8JXNF3C","magus-sdk","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-sdk\u002FSKILL.md",[],[]]