[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76WWGW39RTK0GRPX4QJXF9V":3,"skill-same:01M76WWGW39RTK0GRPX4QJXF9V":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},"01M76WWGW39RTK0GRPX4QJXF9V","magus-run",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-run\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# Running work through magus\n\n{{if .Full}}magus is the task orchestrator, and its unit of work is the target. Targets declare\ntheir inputs, outputs and sandbox. magus caches results and computes what a change\naffects. A raw language tool bypasses all of that, so the cache goes stale, declared\noutputs drift, and `{{cmd \"affected\"}}` can no longer vouch for your change.{{else}}magus: task orchestrator; unit of work: target.\nTargets declare inputs, outputs, sandbox; magus caches results, computes what change affects.\nRaw language tool bypasses all that: cache goes stale, `{{cmd \"affected\"}}` cannot vouch for change.{{end}}\n\n{{if .Full}}## Which project a command hits{{else}}## Project scope{{end}}\n\n{{if .Full}}magus is CWD-relative: a bare `{{cmd \"run\"}}`\u002F`ls`\u002F`describe` acts on the project holding\nyour current directory, or the whole workspace from the root. Do not assume the root.\nScope explicitly so a command means the same anywhere: name the project (`{{cmd \"run\"}}\ntest web`), or let `{{cmd \"affected\"}}` compute the set from the diff. `{{cmd \"where\"}} \u003Cname>`\nresolves a name to its path; over MCP, `{{tool \"client\"}}` (`{{buzz \"where\"}}`, the project that contains a directory) ignores the CWD.{{else}}magus is CWD-relative -> never assume root. Scope explicitly:\n- Name project: `{{cmd \"run\"}} test web`.\n- Or `{{cmd \"affected\"}}` computes set from diff.{{end}}{{if .Full}}\n\n`--root \u003Cpath>`, or `-C` after make's idiom, sets where that walk STARTS. Its argument\nis a plain path: any directory, holding one file or none, nested or not. It is not a\nworkspace and not a checkout; calling it either leads a reader to think it must be\none.{{end}}{{if .Full}}\n\nWhat the walk FINDS is separate:{{end}}\n\n{{if .Full}}1. The nearest `magus.yaml` wins.\n2. Absent any, the outermost CONTIGUOUS run of `magusfiles\u002F`, `magusfile.buzz` or\n   `go.mod` wins.\n\nIt can resolve somewhere other than the path you passed, or resolve nothing.\n\nTwo consequences worth knowing before you debug one. Running a binary by\nabsolute path does NOT set its working directory, so `\u002Felsewhere\u002Fmagus run build .`\nstill walks up from YOUR cwd and can act on a tree you never named. And nearest-wins\nmeans a directory holding its own `magus.yaml` inside a larger checkout resolves to\nitself, so where a command lands is a question about markers on disk, never about the\nVCS.{{else}}`{{cmd \"where\"}} \u003Cname>`: name -> path. MCP tools ignore CWD.\n`--root \u003Cpath>` (or `-C`): where walk STARTS: any directory, not workspace or checkout.\nWhere it lands is separate: nearest `magus.yaml` wins, else outermost contiguous run of `magusfiles\u002F`, `magusfile.buzz` or `go.mod`.\nBinary run by absolute path does NOT set working directory: walks up from cwd -> pass `--root` when you mean elsewhere.{{end}}\n\n## How to run work\n\n{{if .Full}}1. Prefer the MCP tools; they return structured content with nothing to silence.\n   Call an exposed MCP tool directly. If it is missing or its call fails, use the\n   CLI fallback below.\n   - Do not gate that choice on `{{cmd \"server status\"}} --probe=mcp`. It tests loopback HTTP,\n     while a host may use stdio or the server's Unix socket.\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   - Hosts manage their own connection; never start a server for an agent.\n     Do not make the connection a prerequisite for completing the work.\n   - `{{tool \"client\"}}` (`{{buzz \"run\"}}`): run named projects, with the same arguments as `{{cmd \"run\"}}` (or the cwd\n     project). Use when you know which projects to run.\n   - `{{tool \"client\"}}` (`{{buzz \"change.affected\"}}`): the projects a VCS change touched. It\n     returns the set and does not run it. The gate is `{{cmd \"affected\"}} ci`.{{else}}1. Prefer MCP tools; call exposed tool directly. If missing or call fails -> CLI fallback below.\n   - Do not gate that choice on `{{cmd \"server status\"}} --probe=mcp`: tests loopback HTTP; host may use stdio or server Unix socket.\n   - `{{cmd \"server status\"}} --probe=readiness`: checks workspace loaded on server socket; does not test host MCP registration.\n   - Hosts manage own connection; never start server for agent.\n   - `{{tool \"client\"}}` (`{{buzz \"run\"}}`): run named projects, same arguments as `{{cmd \"run\"}}`.\n   - `{{tool \"client\"}}` (`{{buzz \"change.affected\"}}`): projects VCS change touched; returns set, does not run it.{{end}}\n\n{{if .Full}}   `{{tool \"client\"}}` is bounded at 10 minutes when called directly. A host that\n   supports MCP tasks can run it as a task without that bound. Send a long run (a\n   full `ci`, a gate) to the CLI unless your host runs `{{tool \"client\"}}` as a task.{{else}}   `{{tool \"client\"}}` bounded at 10 minutes when called directly; host supporting MCP tasks can run it as task without bound.\n   Long run (full `ci`, gate) -> CLI unless host runs `{{tool \"client\"}}` as task.{{end}}\n\n{{if .Full}}   If the MCP tool errors or is absent, run the CLI equivalent: `{{cmd \"run\"}}\n   \u003Ctarget>`, `{{cmd \"affected\"}} list` for the set, `{{cmd \"affected\"}} \u003Ctarget>` to run\n   it. Do not stop, and do not drop to a raw language tool. When you shell out,\n   silence it (`-s`) so a\n   passing run costs a few lines, not a scroll of progress.{{else}}   If MCP tool errors or absent -> CLI equivalent:\n   - `{{cmd \"run\"}} \u003Ctarget>`: run target.\n   - `{{cmd \"affected\"}} list`: set; `{{cmd \"affected\"}} \u003Ctarget>`: run it.\n   - Silence with `-s`. Do not stop; do not drop to raw language tool.{{end}}\n{{if .Full}}2. Verification is `ci`'s job, not a sequence you compose. `ci` is the one target\n   name magus enforces: the command that composes the pipeline\n   (typically generate, lint, build, test) in the order the magusfile declares.\n   Bare \"ci\" is also everyday shorthand for the host's CI\u002FCD (GitHub Actions and\n   the rest). When the person says \"ci\" without naming one meaning, ask which; the\n   `ambiguous-ci-word` guard refuses a call that picks either until they clarify.\n   - Run `{{cmd \"run\"}} ci \u003Cproject>` for the project you are working in.\n   - Run `{{cmd \"affected\"}} ci` as the final gate once the change is done; it runs the\n     full pipeline over every project your change reaches, which is how you learn\n     about ramifications in projects you never touched.\n   - Never hand-run lint, format, and test one at a time. That re-derives an order\n     the magusfile owns, and the step you forget fails silently by omission.\n   - A gate you ADDED this session is not proven by its green. Make it FAIL once\n     (break the input it checks, watch it go red, restore) before counting its\n     pass. A check wired to the wrong path passes the same way.\n   - Verify in place; never `git stash`\u002F`reset` first (data-loss-prone and pointless: the tree is\n     already what you want to verify).{{else}}2. Verification is `ci`'s job, not sequence you compose; `ci` is only target name magus enforces.\n   Bare \"ci\" also means host CI\u002FCD (GitHub Actions, ...). Ambiguous -> ask which; `ambiguous-ci-word` refuses assuming either.\n   - `{{cmd \"run\"}} ci \u003Cproject>` for project you work in.\n   - `{{cmd \"affected\"}} ci`: final gate once change done.\n   - Never hand-run lint, format, test one at a time: re-derives order magusfile owns; forgotten step fails silently by omission.\n   - Gate you ADDED this session not proven by its green. Make it FAIL once (break input it checks, watch red, restore) before counting its pass; check wired to wrong path passes same way.\n   - Verify in place; never `git stash`\u002F`reset` first: destroys concurrent agent's untracked work, and tree already is what you verify.{{end}}\n{{if .Full}}3. Reach for an individual target only to iterate on a failure `ci` named.\n   Narrow it as \"When a target fails\" below says; `ci` afterwards proves the\n   change. `{{cmd \"describe targets\"}}` lists every target (`-o name` for\n   bare names) and classifies each as canonical, spell,\n   or custom; `{{tool \"client\"}}` (`{{buzz \"describe.target\"}}`) is the MCP equivalent. Ask the\n   workspace; do not read `MAGUS.md`: that file is a generated index\n   for humans, true only as of its last regeneration.{{else}}3. Individual target only to iterate on failure `ci` named: narrow it as \"When a target fails\" says; `ci` afterwards proves change. `{{cmd \"describe targets\"}}` lists every target (`-o name` for bare names). Ask workspace; do not read `MAGUS.md`.{{end}}\n{{if .Full}}4. Do not run raw language tools (`go test`, `eslint`, `pytest`, `tsc`, ...) for\n   work a target covers. If no target covers it, say so; never silently go around\n   magus.{{else}}4. Never raw language tools (`go test`, `eslint`, `pytest`, `tsc`, ...) for work target covers. If no target covers it, say so; never silently go around magus.{{end}}\n{{if .Full}}5. Rewriting DEPENDENCY state needs the `update` charm: `{{cmd \"run\"}}\n   \u003Ctarget>:update \u003Cproject>`, so the rewrite happens inside magus, cached and\n   visible to affected tracking. That covers `go get`, `go mod tidy`, `pnpm add`,\n   `cargo update`, `uv lock` and `pip-compile`.\n   - `update` is reserved and not part of `rw`. `rw` covers output reproducible\n     from a clean checkout; `update` covers what a registry serves today. `ci`\n     strips both, so a gate verifies the committed lockfile rather than refreshing it.\n   - Applying a lockfile (`npm ci`, `pnpm install --frozen-lockfile`) re-resolves\n     nothing and needs no charm.{{else}}5. Rewriting DEPENDENCY state needs `update` charm: `{{cmd \"run\"}} \u003Ctarget>:update \u003Cproject>`; covers `go get`, `go mod tidy`, `pnpm add`, `cargo update`, `uv lock`, `pip-compile`.\n   - `update` reserved, not part of `rw`. `rw`: output reproducible from clean checkout; `update`: what registry serves today.\n   - Applying lockfile (`npm ci`, `pnpm install --frozen-lockfile`) re-resolves nothing, needs no charm.{{end}}\n\n## Command patterns\n\n```sh\nmagus run ci web                  # verify one project: the composed pipeline, in order\nmagus affected ci                 # the final gate: everything the diff reaches\nmagus run test web                # iterate on the one failing target ci named\nmagus run test web -- -k 'name'   # rerun only the failing tests (pytest filter shown)\nmagus affected test               # only projects affected by the VCS diff\n```\n{{if .Full}}\nMCP equivalents: `{{tool \"client\"}}` (`{{buzz \"run\"}}`) with the arguments of `{{cmd \"run\"}}`.\n`{{buzz \"change.affected\"}}` returns the affected project set and does not run it. `{{buzz \"change.impact\"}}` is why each project is in that set. `{{buzz \"where\"}}` answers which project contains a directory.\n{{end}}\n{{if .Full}}WRONG: `go test .\u002F...` after editing Go in a magus workspace; also wrong is\nhand-sequencing `{{cmd \"run\"}} lint`, `format`, `test` to check your own work.\nCORRECT: `{{cmd \"run\"}} ci \u003Cproject>` while working, `{{cmd \"affected\"}} ci` once the\nchange is done, and a single narrower target only to iterate on a failure.{{else}}Wrong: `go test .\u002F...` after editing Go; hand-sequencing `{{cmd \"run\"}} lint`, `format`, `test` to check own work.\nRight: `{{cmd \"run\"}} ci \u003Cproject>` while working; `{{cmd \"affected\"}} ci` once done.{{end}}\n\n{{if .Full}}## Output control: silence runs, read structure{{else}}## Output control{{end}}\n{{if .Full}}\nYou are a machine reader; no news is good news. Shape the output instead of\ntruncating it after the fact:\n{{end}}\n{{if .Full}}- `-s` \u002F `--silent`: the default for every CLI run. Progress is dropped; a pass\n  prints one line, `ref  \u003Coutput ref>`, and a failure keeps a bounded tail of\n  the failing project plus the ref to fetch the rest. With `--tee \u003Cfile>` a\n  structured record goes to the file alone.\n  DROP it when the question is what RAN versus what replayed. The per-target\n  timings and the `(cached, 320ms)` \u002F `(ran, 5m28s)` verdict print only without\n  it. Reaching for shell `time` around a silent run measures the wall clock magus\n  already reported and hides which targets were cache hits.{{else}}- `-s` \u002F `--silent`: default for every CLI run. Pass: one `ref` line; failure adds bounded tail. DROP it when question is what RAN versus replayed: per-target timings and `(cached, 320ms)` \u002F `(ran, 5m28s)` verdict print only without it.{{end}}\n{{if .Full}}- `-q` \u002F `--quiet`: looser; drops progress, keeps errors and the failing project's\n  full output.{{else}}- `-q` \u002F `--quiet`: looser; drops progress, keeps errors and failing project's full output.{{end}}\n{{if .Full}}- `-o \u003Cfmt>`: `text|json|yaml|jsonl|name|template=\u003Cgo-template>`. Ask for the\n  shape you want. `json`\u002F`yaml` to parse, `jsonl` to stream records, `name` for\n  bare identifiers one per line, `template=` to project exactly the fields you\n  need and nothing else.{{else}}- `-o \u003Cfmt>`: `text|json|yaml|jsonl|name|template=\u003Cgo-template>`.{{end}}\n\n### Read worker streams as records\n\nJSONL is a record stream, not a progress message. Keep the complete capture with\nthe host or `-o jsonl --tee \u003Cfile>`; parse its contract before selecting fields.\nProject the terminal outcome, validation refs, unresolved risks and requests for\ninput before returning data to the orchestrator. Fetch tool transcripts only to\ninvestigate a specific failure. Handled tool errors and denials stay in the\ncapture. A filter must preserve terminal failures, unresolved blockers, unchecked work,\nmissing or malformed terminal records, and the producer's exit status; an empty\nprojection is not success. Never select failures by searching prose for words\nsuch as `deny`, or truncate a stream with head or tail.\n\nFor magus records, use `-o template` or `-o json` with a JSON projection. Full\nrecords stay available for audit; replaying every claim, permitted deviation and\nroutine guard event spends context without changing the next action.\n\n{{if .Full}}### Never pipe or redirect a magus command{{else}}### Never pipe or redirect magus{{end}}\n\n{{if .Full}}**Do NOT pipe magus output through `grep`, `head`, `tail`, `awk`, `sed`, `cut`, or\n`wc`. Do NOT redirect it with `> file`, `>> file`, or `2>&1`.** The guard denies\nboth.\n{{else}}Never pipe magus output through `grep`, `head`, `tail`, `awk`, `sed`, `cut`, `wc`. Never redirect with `> file`, `>> file`, `2>&1`. Guard denies both.{{end}}\n{{if .Full}}- A pipe REPLACES the exit status with the last stage's. `{{cmd \"affected\"}} ci | tail`\n  reports tail's success, so a failing gate reads as exit 0.{{else}}- Pipe REPLACES exit status with last stage's: `{{cmd \"affected\"}} ci | tail` reports tail's success -> failing gate reads as exit 0.{{end}}\n{{if .Full}}- You never need to capture the output. Every run persists its full log, and a\n  failure prints that path with the output ref.{{else}}- Never need to capture output: every run persists full log; failure prints path with output ref.{{end}}{{if .Full}}\n\nEvery magus command already has an output contract, so filtering its\ntext after the fact is always the wrong tool. It is not a style preference; it\nactively breaks things:{{end}}{{if .Full}}\n\n- It is lossy in the direction that matters. A truncating filter drops the\n  failing tail and the output ref, which is the only part you needed.\n- It hides progress on a long run, so a working command looks hung and gets\n  killed.\n- It scrapes a human-facing layout that is free to change, instead of reading a\n  stable contract that is not.\n- `grep` cannot see structure. A field you matched textually may belong to a\n  different record entirely.{{end}}{{if .Full}}\n\nReplace the filter with the flag that already does it:{{end}}\n\n{{if .Full}}| Instead of | Use |\n|---|---|\n| `\\| grep \u003Cfield>` | `-o template='{{\"{{.Field}}\"}}'` |\n| `\\| grep -c .` (counting) | `-o json` and read the count, or the verb's own summary |\n| `\\| head` \u002F `\\| tail` (quieting) | `-s` \u002F `--silent` |\n| `\\| grep -i error` | `-s` (a pass prints almost nothing; failures already surface) |\n| `\\| awk '{print $1}'` | `-o name` |\n| `\\| jq` after `-o text` | `-o json` first, then `jq` |{{else}}Flag instead:\n- `-o template='{{\"{{.Field}}\"}}'`: field.\n- `-o name`: bare identifiers; `-o json`: parse.\n- `-s`: quieten.{{end}}\n\n{{if .Full}}`jq` on `-o json` is fine: that is consuming a contract, not scraping text. The\nprohibition is on text filters standing in for an output format.{{else}}`jq` over `-o json` fine: contract, not scraped text.{{end}}\n\n{{if .Full}}**Piping magus INTO magus is supported and encouraged.** The composition seam is\n`--stdin`. `--tee \u003Cfile>` is not a composition seam: it mirrors STRUCTURED output\nonly (`-o json|yaml|jsonl|template`), never console text. These are contracts on both\nends, so they are the opposite of the antipattern above:{{else}}Piping magus INTO magus supported, encouraged; composition seam: `--stdin`.\n`--tee \u003Cfile>` not composition seam: mirrors STRUCTURED output only (`-o json|yaml|jsonl|template`), never console text.{{end}}\n\n```sh\nmagus watch | magus affected --stdin        # changed paths -> affected set\nmagus affected ci --plan | magus run --stdin      # plan -> run its shards\n```\n\n{{if .Full}}A pipe into magus, or `jq` over `-o json`, is composition. A pipe into a text filter\nis a missing `-o`.\n\nA backgrounded run's capture is magus output too: grepping the task file your host\nwrote hits the `capture-filter` guard rule, since a grep drops the `output:` and `inspect:` lines\nunder the `cause:` you matched. Background it as `-o jsonl --tee \u003Cfile>` to get a\ncontract you can `jq`; otherwise read the file whole.{{else}}Pipe into magus, or `jq` over `-o json`: composition. Pipe into text filter: missing `-o`.\nBackgrounded run's capture is magus output too: grepping host's task file hits `capture-filter` guard rule. Background as `-o jsonl --tee \u003Cfile>` -> contract you can `jq`; otherwise read file whole.{{end}}{{if .Full}}\n\nWRONG: `{{cmd \"run\"}} test | head -50` (drops the failing tail that matters).\nWRONG: `{{cmd \"query\"}} \"kind=target\" -o name | grep -c .` (use the JSON count).\nCORRECT: `{{cmd \"run\"}} test -s`, then fetch the printed ref for full detail.{{end}}{{if .Full}}\n\nThe silent run plus ref-fetch IS the low-token failure loop: never re-run a\ntarget just to see its error again.\n{{end}}\n\n## When you need finer granularity\n\n{{if .Full}}Every top-level target composes spell ops (tool-native operations). When you\ngenuinely need one op (a single formatter, one linter), address one directly\nwith the spell-qualified form:{{else}}Every top-level target composes spell ops (tool-native operations); address one op with spell-qualified form:{{end}}\n\n```sh\nmagus run go::go-test             # one op from the go spell\nmagus run buf::buf-lint\n```\n\n{{if .Full}}List the ops behind a target with `{{cmd \"describe target\"}} \u003Cname>`: it prints the\nfully-evaluated dispatch plan per project (sources, outputs, spells, policy).\nRe-run the top-level target before you call the work done: ci runs the full\ncomposition, so the full composition is what has to pass.{{else}}Ops behind target: `{{cmd \"describe target\"}} \u003Cname>`.\nRe-run top-level target before calling work done.{{end}}\n\n{{if .Full}}## When a target fails{{else}}## When target fails{{end}}\n\n{{if .Full}}Each target's result line mints an output reference id (`out1a2b3c`).\n{{else}}Each target's result line mints output reference id (`out1a2b3c`).{{end}}\n{{if .Full}}1. Fetch the exact captured output: `{{tool \"client\"}}` (`{{buzz \"output\"}}`) over MCP, or\n   `{{cmd \"query output\"}} out1a2b3c` on the CLI. Do this instead of re-running the\n   target to see the error again.{{else}}1. Fetch exact captured output: `{{tool \"client\"}}` (`{{buzz \"output\"}}`) over MCP, or `{{cmd \"query output\"}} out1a2b3c` on CLI. Never re-run to see error again.{{end}}\n{{if .Full}}2. With no ref in hand, find it in the run that minted it. Every `{{cmd \"run\"}}` prints\n   one per target. `{{cmd \"session\"}}` lists recent invocations with the targets\n   they ran. There is no tool that fetches \"the latest log for a\n   project\", because a second door onto the same bytes only makes an agent holding a\n   ref pick between two.{{else}}2. No ref -> find it in minting run: every `{{cmd \"run\"}}` prints one per target; `{{cmd \"session\"}}` lists recent invocations with targets they ran.{{end}}\n{{if .Full}}3. `{{cmd \"doctor\"}}` validates the workspace itself (config, cache, tool availability,\n   cycles) when failures look environmental rather than caused by\n   your change.{{else}}3. `{{cmd \"doctor\"}}` validates workspace itself (config, cache, tool availability, cycles).{{end}}\n\nFix a failed full run by narrowing, not by repeating it:\n\n1. Read the failure from its ref and list the failing tests.\n2. Rerun only those with the test runner's own filter, passed after `--`, until they\n   pass: `{{cmd \"run\"}} test \u003Cproject> -- \u003Cfilter>`. Examples by runner:\n   - Go (go test): `-- -run 'TestA|TestB'`\n   - pytest: `-- -k 'name'`\n   - Jest or Vitest: `-- -t 'name'`\n   - cargo test: `-- name`\n3. Run the full target ONCE more. A full run after a failed full run, with nothing\n   narrowed between them, reports nothing new{{if .Full}} and costs the whole suite again{{end}}.\n\nA test known to fail for an outside reason is named once and left out of every rerun.\nRun generators before the full test run, so a drift test does not fail for nothing.\n\n{{if .Full}}## When another magus process holds the project{{else}}## When another magus process holds project{{end}}\n\n{{if .Full}}A run whose project lock or machine budget another magus invocation holds exits 75\nat once, naming the holder.\n{{else}}Run whose project lock or machine budget another magus invocation holds: exits 75 at once, naming holder.{{end}}\n{{if .Full}}- Never write `sleep`\u002F`ps`\u002F`pgrep` polling loops. The guard denies `pgrep`,\n  `pidof`, and `ps` for this reason.{{else}}- Never write `sleep`\u002F`ps`\u002F`pgrep` polling loops; guard denies `pgrep`, `pidof`, `ps`.{{end}}\n{{if .Full}}- `{{cmd \"server status\"}}` reads that lock state once: holder PID, command, directory,\n  and age. To wait, background your run as `{{cmd \"job exec\"}} --timeout \u003Cd> -- \u003Ccommand>`\n  and wait for its completion notice.{{else}}- `{{cmd \"server status\"}}`: reads lock state once: holder PID, command, directory, age. To wait: background run as `{{cmd \"job exec\"}} --timeout \u003Cd> -- \u003Ccommand>`, wait for its completion notice.{{end}}\n{{if .Full}}- A long-running holder is not, by itself, evidence of a hang.{{else}}- Long-running holder alone: not evidence of hang.{{end}}\n\n```sh\nmagus server status\n```\n\n{{if .Full}}If the lock has crossed its stale warning threshold, report the exact holder and\ninspect its captured target output. Never signal a guessed PID or act on a fixed\nelapsed delay. Process termination needs an explicit, verified owner policy.{{else}}If lock crossed stale warning threshold -> report exact holder, inspect its captured target output.\nNever signal guessed PID or act on fixed elapsed delay; process termination needs explicit, verified owner policy.{{end}}{{if .Full}}\n\nThe same view lists shared services, each with its lifecycle state and dependent\ncount. Use it to tell an idle retained service from active shared work before\ndeciding how to proceed.\n{{end}}\n\n{{if .Full}}## Fetching current behavior{{else}}## Current behavior{{end}}\n\n{{if .Full}}Flags and target sets differ per workspace and magus version. Trust\n`{{cmd \"describe targets\"}}`, `{{cmd \"describe target\"}} \u003Cname>`, and `magus \u003Cverb> -h`\nover anything remembered, and over `MAGUS.md`, which is generated output that\nlags the tree between regenerations.{{else}}Trust `{{cmd \"describe targets\"}}`, `{{cmd \"describe target\"}} \u003Cname>`, `magus \u003Cverb> -h` over memory and `MAGUS.md`.{{end}}\n",{},"main","5f0df014d9eaf4aea1a930b0bd13c3338e2642de","internal\u002Fagent\u002Fskills\u002Fmagus-run",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-run",{"tool":37,"command":38},"bunx","bunx skills add egladman\u002Fmagus --skill magus-run",{"tool":40,"command":41},"pnpm","pnpm dlx skills add egladman\u002Fmagus --skill magus-run","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-run\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",[],[]]