[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7593KYGYD1192P5KB7RPTF8":3,"skill-same:01M7593KYGYD1192P5KB7RPTF8":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7593KYGYD1192P5KB7RPTF8","large-mechanical-refactor",null,"Use when a wide refactor ripples across many files.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Flarge-mechanical-refactor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: large-mechanical-refactor\ndescription: >-\n  Use when a wide refactor ripples across many files.\nversion: 1.0.0\nauthor: Moses\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [refactor, async, signature, delegation, verification]\n    related_skills: [test-driven-development, subagent-driven-development, survey-before-action]\n---\n\n# Large Mechanical Refactor — safe execution of a wide API\u002Fsignature change\n\n## When to Use\nA refactor changes a signature (or makes an API async, sync, callback, etc.) and the change\nripples across many files in one repo — so wide it cannot be proven by the compiler alone and\nmust land as one compiling commit (an intermediate HEAD won't build). Trigger on: converting an\nAPI to async across call sites, renaming a symbol tree-wide, or a signature change used in many\nfiles. The failure shape is doing this by hand across dozens of files, or delegating it blind.\n\n## The discipline\n\n1. **Baseline the suite first.** Capture the true count `cargo test --workspace -- --list | grep -cE ': test$'`\n   BEFORE touching anything. A wide refactor cannot be measured against a broken baseline — a\n   stray missing-import compile error in an unrelated test file surfaces here as the blocker it\n   is, and you fix it as a separate commit BEFORE your refactor so your diff is clean.\n2. **Map the full blast radius, not just the named methods.** A sync→async conversion on three\n   core methods forces every internal caller chain async too (helpers that call them), plus a\n   runtime in any bin, plus each sync `#[test]` caller must become `#[tokio::test] async fn`\n   with `.await`. Grep for the SYMBOL across the whole tree (`.handle(`, `.record(`, `.dispatch(`)\n   so you know every file and call-site count before writing the first patch — hand-rolled mocks\n   and sibling helpers silently re-implement the old shape and fail on a shard you did not run.\n3. **Prove the recipe on ONE small instance by hand.** Pick the smallest affected test file,\n   apply the full conversion by hand, watch it compile and pass. This locks the exact pattern:\n   marker becomes `#[tokio::test] async fn`, `.await` goes BEFORE `.unwrap()`\n   (`x.handle().await.unwrap()`), helper `fn`s that call async methods become `async fn` and all\n   their call sites gain `.await`. Encapsulate this in the delegation context.\n4. **Delegate the bulk to a subagent with the proven recipe.** The remaining files are the same\n   mechanical transformation, independent per file. Hand the subagent the exact recipe (steps,\n   the `.await`-before-`.unwrap()` ordering, which symbols become async vs stay sync, an\n   explicit DON'T-TOUCH list, and the per-file verify command `cargo test -p \u003Ccrate> --test \u003Cname> --no-run`)\n   plus the ONE already-converted file path as a forbidden-to-edit reference. Tell it not to\n   git add\u002Fcommit and not to run the full suite.\n5. **Verify the full suite YOURSELF — the subagent's `--no-run` pass is a claim, not proof.**\n   After it returns, run the full workspace suite and confirm the count you captured at step 1\n   holds (or grew exactly as expected). Never report green without your own real output.\n6. **Commit and verify often.** This user prefers small, frequent, verified commits over one\n   giant dump. One atomic commit per logical slice (baseline-fix commit, then the refactor\n   commit, each verifiable), never batch unrelated edits.\n\n## Pitfalls\n\n- **Do not re-derive call sites from memory** — `search_files` the symbol every time; a\n  refactor targets what the compiler and the grep agree on, never what you remember.\n- **Ignore linter \"async fn not permitted in Rust 2015\" on an edition-2021 workspace** — the\n  lint tool reads the default edition and misreports; cargo is the source of truth, not the\n  inline linter.\n- **A compile-breaking refactor must land green or not at all** — either it lands as one\n  compiling commit or the committed HEAD fails the suite; an intermediate HEAD that doesn't\n  build is not a checkpoint.\n- **Keep unrelated rustfmt diffs out of the commit** — a whole-crate `cargo fmt` reformats\n  pre-existing files and turns `git status` into noise. Revert files you didn't otherwise touch;\n  confirm a remaining diff is pre-existing via `git stash` + `cargo fmt --check` + `git stash pop`.\n- **A new doc that reuses a numbered vocabulary claimed by an earlier plan in the same repo\n  collides corpus-wide** (two plans each with their own \"Story 0–7\" \u002F \"Story 0–9\").\n  `search_files` the corpus for the planned label before naming new stories\u002Fslices; if the\n  number is taken, namespace the new set with a thematic prefix (`SS0`–`SS9`) and carry both\n  the slice code and the story id in the ownership table so the owning plan is unambiguous.\n\nSee `references\u002Fasync-conversion-rust.md` for the explicit Rust sync→async recipe.\n","# Large Mechanical Refactor — safe execution of a wide API\u002Fsignature change\n\n## When to Use\nA refactor changes a signature (or makes an API async, sync, callback, etc.) and the change\nripples across many files in one repo — so wide it cannot be proven by the compiler alone and\nmust land as one compiling commit (an intermediate HEAD won't build). Trigger on: converting an\nAPI to async across call sites, renaming a symbol tree-wide, or a signature change used in many\nfiles. The failure shape is doing this by hand across dozens of files, or delegating it blind.\n\n## The discipline\n\n1. **Baseline the suite first.** Capture the true count `cargo test --workspace -- --list | grep -cE ': test$'`\n   BEFORE touching anything. A wide refactor cannot be measured against a broken baseline — a\n   stray missing-import compile error in an unrelated test file surfaces here as the blocker it\n   is, and you fix it as a separate commit BEFORE your refactor so your diff is clean.\n2. **Map the full blast radius, not just the named methods.** A sync→async conversion on three\n   core methods forces every internal caller chain async too (helpers that call them), plus a\n   runtime in any bin, plus each sync `#[test]` caller must become `#[tokio::test] async fn`\n   with `.await`. Grep for the SYMBOL across the whole tree (`.handle(`, `.record(`, `.dispatch(`)\n   so you know every file and call-site count before writing the first patch — hand-rolled mocks\n   and sibling helpers silently re-implement the old shape and fail on a shard you did not run.\n3. **Prove the recipe on ONE small instance by hand.** Pick the smallest affected test file,\n   apply the full conversion by hand, watch it compile and pass. This locks the exact pattern:\n   marker becomes `#[tokio::test] async fn`, `.await` goes BEFORE `.unwrap()`\n   (`x.handle().await.unwrap()`), helper `fn`s that call async methods become `async fn` and all\n   their call sites gain `.await`. Encapsulate this in the delegation context.\n4. **Delegate the bulk to a subagent with the proven recipe.** The remaining files are the same\n   mechanical transformation, independent per file. Hand the subagent the exact recipe (steps,\n   the `.await`-before-`.unwrap()` ordering, which symbols become async vs stay sync, an\n   explicit DON'T-TOUCH list, and the per-file verify command `cargo test -p \u003Ccrate> --test \u003Cname> --no-run`)\n   plus the ONE already-converted file path as a forbidden-to-edit reference. Tell it not to\n   git add\u002Fcommit and not to run the full suite.\n5. **Verify the full suite YOURSELF — the subagent's `--no-run` pass is a claim, not proof.**\n   After it returns, run the full workspace suite and confirm the count you captured at step 1\n   holds (or grew exactly as expected). Never report green without your own real output.\n6. **Commit and verify often.** This user prefers small, frequent, verified commits over one\n   giant dump. One atomic commit per logical slice (baseline-fix commit, then the refactor\n   commit, each verifiable), never batch unrelated edits.\n\n## Pitfalls\n\n- **Do not re-derive call sites from memory** — `search_files` the symbol every time; a\n  refactor targets what the compiler and the grep agree on, never what you remember.\n- **Ignore linter \"async fn not permitted in Rust 2015\" on an edition-2021 workspace** — the\n  lint tool reads the default edition and misreports; cargo is the source of truth, not the\n  inline linter.\n- **A compile-breaking refactor must land green or not at all** — either it lands as one\n  compiling commit or the committed HEAD fails the suite; an intermediate HEAD that doesn't\n  build is not a checkpoint.\n- **Keep unrelated rustfmt diffs out of the commit** — a whole-crate `cargo fmt` reformats\n  pre-existing files and turns `git status` into noise. Revert files you didn't otherwise touch;\n  confirm a remaining diff is pre-existing via `git stash` + `cargo fmt --check` + `git stash pop`.\n- **A new doc that reuses a numbered vocabulary claimed by an earlier plan in the same repo\n  collides corpus-wide** (two plans each with their own \"Story 0–7\" \u002F \"Story 0–9\").\n  `search_files` the corpus for the planned label before naming new stories\u002Fslices; if the\n  number is taken, namespace the new set with a thematic prefix (`SS0`–`SS9`) and carry both\n  the slice code and the story id in the ownership table so the owning plan is unambiguous.\n\nSee `references\u002Fasync-conversion-rust.md` for the explicit Rust sync→async recipe.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"Moses","1.0.0",{"hermes":27},{"tags":28,"related_skills":34},[29,30,31,32,33],"refactor","async","signature","delegation","verification",[35,36,37],"test-driven-development","subagent-driven-development","survey-before-action","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fsoftware-development\u002Flarge-mechanical-refactor",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill large-mechanical-refactor",{"tool":53,"command":54},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill large-mechanical-refactor",{"tool":56,"command":57},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill large-mechanical-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Flarge-mechanical-refactor\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fasync-conversion-rust.md","REFERENCE","参考文档",2196,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Flarge-mechanical-refactor\u002Freferences\u002Fasync-conversion-rust.md",[68,76,83,90,97,104],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":75},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":75},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":75},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":75},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":75},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]