[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7595V46N5FBMXSTYGSKM5JB":3,"skill-same:01M7595V46N5FBMXSTYGSKM5JB":55},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7595V46N5FBMXSTYGSKM5JB","robust-code-design",null,"Use when hardening code against adversarial failure modes.","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\u002Frobust-code-design\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nversion: 1.0.0\nname: robust-code-design\ncategory: software-development\ndescription: Use when hardening code against adversarial failure modes.\n---\n\n# Robust Code Design — make failure modes unrepresentable\n\n## The one idea\n\nA guarantee that lives only in a comment or a test can silently regress. The\nhighest-value hardening is to make the wrong behavior *unrepresentable in the\ntype*, so the compiler refuses it — then the test only confirms what the type\nalready enforces.\n\n## Always-on rules\n\n### Make the invalid state unrepresentable\n\nPrefer a closed enum whose variants are exactly the legal actions, and omit the\ndangerous variant rather than adding it and \"never using it\": a stop-action\nenum has no `AllowlistUpdate` (only connection teardown), no\n`KillProcessGroup` beside `KillTree`, a control-status enum has no \"operating\"\nstate. The compiler then rejects the wrong call; a doc note does not.\n\n### Evict\u002Fremove by key only if the value still matches\n\nRemoving `map[key]` when retiring an *old* record corrupts a *newer* record\nthat reused the key. Guard every removal with\n`if map.get(key).is_some_and(|cur| cur == id) { map.remove(key); }`. This is a\nlease stall sweeping a live lease, or a cache evicting a freshly-written entry\n— one bug shape, and it only shows up when the sweep runs after the re-issue.\n\n### Fail closed on anything unrecognized\n\nExact-match the known set; every unknown value (unknown enum variant, wrong\ncase, empty string, a typo'd capability name) maps to the SAFE default — not an\nerror, not a best-guess. An unknown freeze capability degrades to `KillTree`,\nnever a claimed \"can freeze\"; an unknown tier degrades to the least trust.\n\n### No panic paths in the writer\n\nThe single write path must not contain `expect`\u002F`unwrap`\u002F`panic`. Capture an\nindex before the push (`let idx = v.len(); v.push(..); &v[idx]`) rather than\n`.last().expect(\"just pushed\")`.\n\n## References\n\n- `references\u002Frust-audit.md` — the concrete scan recipe (clippy, panic-path \u002F\n  single-writer \u002F unsafe greps, `Cargo.lock` under `*.lock`) to run when\n  finishing a Rust change.\n","# Robust Code Design — make failure modes unrepresentable\n\n## The one idea\n\nA guarantee that lives only in a comment or a test can silently regress. The\nhighest-value hardening is to make the wrong behavior *unrepresentable in the\ntype*, so the compiler refuses it — then the test only confirms what the type\nalready enforces.\n\n## Always-on rules\n\n### Make the invalid state unrepresentable\n\nPrefer a closed enum whose variants are exactly the legal actions, and omit the\ndangerous variant rather than adding it and \"never using it\": a stop-action\nenum has no `AllowlistUpdate` (only connection teardown), no\n`KillProcessGroup` beside `KillTree`, a control-status enum has no \"operating\"\nstate. The compiler then rejects the wrong call; a doc note does not.\n\n### Evict\u002Fremove by key only if the value still matches\n\nRemoving `map[key]` when retiring an *old* record corrupts a *newer* record\nthat reused the key. Guard every removal with\n`if map.get(key).is_some_and(|cur| cur == id) { map.remove(key); }`. This is a\nlease stall sweeping a live lease, or a cache evicting a freshly-written entry\n— one bug shape, and it only shows up when the sweep runs after the re-issue.\n\n### Fail closed on anything unrecognized\n\nExact-match the known set; every unknown value (unknown enum variant, wrong\ncase, empty string, a typo'd capability name) maps to the SAFE default — not an\nerror, not a best-guess. An unknown freeze capability degrades to `KillTree`,\nnever a claimed \"can freeze\"; an unknown tier degrades to the least trust.\n\n### No panic paths in the writer\n\nThe single write path must not contain `expect`\u002F`unwrap`\u002F`panic`. Capture an\nindex before the push (`let idx = v.len(); v.push(..); &v[idx]`) rather than\n`.last().expect(\"just pushed\")`.\n\n## References\n\n- `references\u002Frust-audit.md` — the concrete scan recipe (clippy, panic-path \u002F\n  single-writer \u002F unsafe greps, `Cargo.lock` under `*.lock`) to run when\n  finishing a Rust change.\n",{"name":5,"version":24,"category":25,"description":7},"1.0.0","software-development","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fsoftware-development\u002Frobust-code-design",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":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill robust-code-design",{"tool":41,"command":42},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill robust-code-design",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill robust-code-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Frobust-code-design\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Frust-audit.md","REFERENCE","参考文档",1593,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Frobust-code-design\u002Freferences\u002Frust-audit.md",[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":63},"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":63},"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":63},"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":63},"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",[],[]]