[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76WWTJYGRCKKXH948KN6RR3":3,"skill-same:01M76WWTJYGRCKKXH948KN6RR3":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},"01M76WWTJYGRCKKXH948KN6RR3","magus-upstream-source",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-upstream-source\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"{{if .Full}}# Reading magus's own source at your build{{else}}# magus source at your build{{end}}\n\n{{if .Full}}This is a last resort. Assume the workspace is wrong before you assume magus is:\nmost behavior that looks like a magus bug is a magusfile, a config key or an\ninput that magus rejects as documented. Reading magus's code is how you find\nthe line that rejects it, not a hunt for upstream defects.{{else}}Last resort; assume workspace wrong before magus.{{end}}\n\n{{if .Full}}Read magus's source only when both hold:\n{{else}}Read magus source only when both hold:{{end}}\n{{if .Full}}- magus crashed (a Go panic and trace), or the {{skill \"upstream-docs\"}} skill could\n  not reconcile the docs with what the binary does.{{else}}- magus crashed (Go panic, trace), or {{skill \"upstream-docs\"}} could not reconcile docs with binary.{{end}}\n{{if .Full}}- You have a reproduction: one command and the output that shows the problem.{{else}}- Reproduction: one command, output showing problem.{{end}}\n\n{{if .Full}}## Pin the source to the binary{{else}}## Pin source to binary{{end}}\n\n```sh\n{{cmd \"version\"}} -o json\n```\n{{if .Full}}\nRead `commit`, `dirty` and `repository`. Use the full `commit`: a forge\nrefuses a shallow fetch by an abbreviated revision.\n{{end}}\n{{if .Full}}Stop when `dirty` is true or `commit` is `unknown`. That build's source exists\nnowhere you can fetch, so say so and work from the reproduction alone.\n\nNever read main or the latest release instead. Another version explains\nbehavior your binary lacks, and it reads as authoritative while doing\nit.{{else}}Read `commit`, `dirty`, `repository`; use full `commit`.\nStop when `dirty` true or `commit` is `unknown`: source unfetchable; say so, use reproduction alone.\nNever read main or latest release: other version explains behavior binary lacks.{{end}}\n\n{{if .Full}}## Fetch it outside the workspace{{else}}## Fetch outside workspace{{end}}\n\n{{if .Full}}Keep one clone per commit in the user cache. Never clone into the workspace:\nit would show up in the workspace's VCS status and in its knowledge graph.{{else}}One clone per commit, in user cache.\nNever clone into workspace: VCS status and graph pick it up.{{end}}\n\n```sh\ndir=\"${XDG_CACHE_HOME:-$HOME\u002F.cache}\u002Fmagus-upstream\u002F\u003Ccommit>\"\ngit init -q \"$dir\"\ngit -C \"$dir\" remote add origin \u003Crepository>\ngit -C \"$dir\" fetch --depth 1 origin \u003Ccommit>\ngit -C \"$dir\" checkout -q FETCH_HEAD\n```\n\n{{if .Full}}Reuse the directory when it already exists. `couldn't find remote ref` means the\ncommit was never pushed: a local build of an unpublished commit, whose\nsource lives only on the machine that built it. Stop, as for a dirty build.{{else}}Reuse directory when it exists.\n`couldn't find remote ref` -> commit never pushed -> stop, as dirty.{{end}}\n\n{{if .Full}}## Read it without changing it{{else}}## Read, never change{{end}}\n\n{{if .Full}}Point every command at the clone with `--root \"$dir\"`, placed before the verb.\n\n- `magus --root \"$dir\" query \"\u003Cterms>\"` finds doc sections, spells, targets and\n  Buzz functions. It needs no build step.\n- `magus --root \"$dir\" refs --text \"\u003Cpattern>\"` searches the clone's files.\n- `magus --root \"$dir\" refs \u003Csymbol>` needs a symbol index. Run\n  `{{cmd \"graph build\"}}` with the same `--root` once. It runs each\n  language's indexer, so it needs that language's toolchain. When refs\n  still answers \"unknown, not absent\", use `refs --text`.\n- Read files with your ordinary file tools.{{else}}Every command: `--root \"$dir\"` before verb.\n- `magus --root \"$dir\" query \"\u003Cterms>\"`: doc sections, spells, targets, Buzz functions; no build step.\n- `magus --root \"$dir\" refs --text \"\u003Cpattern>\"`: searches files.\n- `magus --root \"$dir\" refs \u003Csymbol>`: needs symbol index -> run `{{cmd \"graph build\"}}` with same `--root` once.\n- When refs still answers \"unknown, not absent\" -> `refs --text`.\n- Read files with ordinary tools.{{end}}\n\n{{if .Full}}Never run targets in the clone, build it, test it or edit it. Each of\nthose executes upstream code on your machine for no gain. The question is\nwhat the code says, and reading answers it.{{else}}Never run targets in clone, build, test or edit it; reading suffices.{{end}}\n\n{{if .Full}}## Report what the code says{{else}}## Report{{end}}\n\n{{if .Full}}Cite each claim as `\u003Crepository>\u002Fblob\u002F\u003Ccommit>\u002F\u003Cpath>#L\u003Cline>`.\n\nConclude one of two things:\n{{else}}Cite each claim: `\u003Crepository>\u002Fblob\u002F\u003Ccommit>\u002F\u003Cpath>#L\u003Cline>`.\nConclude one:{{end}}\n{{if .Full}}- The workspace does X and the code requires Y. Fix the workspace. This is the usual result.{{else}}- Workspace does X, code requires Y -> fix workspace; usual.{{end}}\n{{if .Full}}- magus has a defect. Give the reproduction and the code path that produces it.{{else}}- magus defect -> give reproduction, code path.{{end}}\n\n{{if .Full}}Never patch the clone to work around a defect. Never file an issue or post\nanything. Hand the finding to the person: whether and where to report\nit is their decision, and the reproduction and citations are what they need to\nmake it.{{else}}Never patch clone around defect.\nNever file issue or post anything.\nHand finding to person.{{end}}\n",{},"main","5f0df014d9eaf4aea1a930b0bd13c3338e2642de","internal\u002Fagent\u002Fskills\u002Fmagus-upstream-source",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-upstream-source",{"tool":37,"command":38},"bunx","bunx skills add egladman\u002Fmagus --skill magus-upstream-source",{"tool":40,"command":41},"pnpm","pnpm dlx skills add egladman\u002Fmagus --skill magus-upstream-source","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-upstream-source\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},"01M76WWRTBBAPNKM0PA2NG5Q3N","magus-upstream-docs","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-upstream-docs\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},"01M76WWNTF03H9S5CN22QBX5ZK","magus-test-design","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-test-design\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},"01M76WWJX1FPSWYD1RB8JXNF3C","magus-sdk","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-sdk\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},"01M76WWGW39RTK0GRPX4QJXF9V","magus-run","https:\u002F\u002Fgithub.com\u002Fegladman\u002Fmagus\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fmagus-run\u002FSKILL.md",[],[]]