[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CYADE8ZTX1ZTBFARAEEMH":3,"skill-same:01M78CYADE8ZTX1ZTBFARAEEMH":58},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M78CYADE8ZTX1ZTBFARAEEMH","guardrails",null,"Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy\u002Fconfig changes, force operations — to derive a risk level and an APPROVED\u002FREJECTED call with a rollback plan. Don't use it for routine read-only work.","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fguardrails\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: guardrails\nversion: \"1.0.0\"\nowner: \"swarmery-core\"\ndescription: \"Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy\u002Fconfig changes, force operations — to derive a risk level and an APPROVED\u002FREJECTED call with a rollback plan. Don't use it for routine read-only work.\"\ncolor: red\ndocs:\n  status: draft\n  updated: 2026-09-01\n---\n\n# Purpose\n\nA risky action gets a structured go\u002Fno-go before it runs, derived from an\nImpact × Reversibility matrix — not ad-hoc vibes. The output contract is\nbinary: `APPROVED` (possibly with conditions) or `REJECTED` (with the\nreason) — never ambiguous.\n\n# The check\n\n1. **Short-circuit:** read-only actions (viewing files, running tests) are\n   APPROVED immediately — no ceremony.\n2. **Risk level** = Impact (Low \u002F High \u002F Critical) × Reversible (Yes \u002F No):\n   Low×Yes → Low; High×Yes → Medium; Low\u002FHigh×No → High; Critical×anything →\n   Critical. The matrix and per-action guidance: `resources\u002Frisk-checks.md`.\n3. **Deterministic checks** for the affected stack (typecheck\u002Flint\u002Ftests for\n   code, dry-run\u002Flint for config, `--dry-run` for migrations where the\n   tooling offers one). A failing deterministic check is an automatic\n   REJECTED.\n4. **Rollback plan** with actionable commands (\"`DROP TABLE IF EXISTS x;`\",\n   \"`git revert \u003Csha>`\") — \"revert the change\" is not a plan.\n5. **Critical never auto-approves.** Anything Critical (prod data loss\n   potential, credential changes, irreversible deletes) escalates to the user\n   regardless of checks.\n\nVerdict line: `GUARDRAIL: {APPROVED|REJECTED} | Risk: {level} | Checks:\n{pass\u002Ffail\u002Fskip} | Rollback: {one line}`.\n\n# How to use\n\n## What it does\n\nDerives a risk level for a proposed action from an Impact × Reversibility matrix, runs the stack's deterministic checks, and emits an unambiguous APPROVED\u002FREJECTED call with a concrete rollback plan — escalating anything Critical to the user instead of auto-approving.\n\n## When to use it\n\nBefore migrations, bulk deletes or renames, deploy\u002Finfra config changes, force operations, or anything an orchestrator flags as hard to reverse — especially inside autonomous runs where no human watches each step.\n\n## How to invoke\n\n`@core:tech-lead` loads it via `skills:` and applies it before risky delegations; load it manually (`\u002Fguardrails` context or read `resources\u002Frisk-checks.md`) when about to run a risky command yourself.\n\n## Worked example\n\nProposed: migration adding a `flight_logs` table. Additive CREATE TABLE → Impact Low, Reversible Yes (DROP TABLE) → Risk Low; typecheck\u002Flint\u002Ftests pass. `GUARDRAIL: APPROVED | Risk: Low | Checks: 3 pass | Rollback: DROP TABLE IF EXISTS flight_logs;`. The same flow on `DROP COLUMN` with data present would come back High and REJECTED pending an expand\u002Fcontract plan.\n","# Purpose\n\nA risky action gets a structured go\u002Fno-go before it runs, derived from an\nImpact × Reversibility matrix — not ad-hoc vibes. The output contract is\nbinary: `APPROVED` (possibly with conditions) or `REJECTED` (with the\nreason) — never ambiguous.\n\n# The check\n\n1. **Short-circuit:** read-only actions (viewing files, running tests) are\n   APPROVED immediately — no ceremony.\n2. **Risk level** = Impact (Low \u002F High \u002F Critical) × Reversible (Yes \u002F No):\n   Low×Yes → Low; High×Yes → Medium; Low\u002FHigh×No → High; Critical×anything →\n   Critical. The matrix and per-action guidance: `resources\u002Frisk-checks.md`.\n3. **Deterministic checks** for the affected stack (typecheck\u002Flint\u002Ftests for\n   code, dry-run\u002Flint for config, `--dry-run` for migrations where the\n   tooling offers one). A failing deterministic check is an automatic\n   REJECTED.\n4. **Rollback plan** with actionable commands (\"`DROP TABLE IF EXISTS x;`\",\n   \"`git revert \u003Csha>`\") — \"revert the change\" is not a plan.\n5. **Critical never auto-approves.** Anything Critical (prod data loss\n   potential, credential changes, irreversible deletes) escalates to the user\n   regardless of checks.\n\nVerdict line: `GUARDRAIL: {APPROVED|REJECTED} | Risk: {level} | Checks:\n{pass\u002Ffail\u002Fskip} | Rollback: {one line}`.\n\n# How to use\n\n## What it does\n\nDerives a risk level for a proposed action from an Impact × Reversibility matrix, runs the stack's deterministic checks, and emits an unambiguous APPROVED\u002FREJECTED call with a concrete rollback plan — escalating anything Critical to the user instead of auto-approving.\n\n## When to use it\n\nBefore migrations, bulk deletes or renames, deploy\u002Finfra config changes, force operations, or anything an orchestrator flags as hard to reverse — especially inside autonomous runs where no human watches each step.\n\n## How to invoke\n\n`@core:tech-lead` loads it via `skills:` and applies it before risky delegations; load it manually (`\u002Fguardrails` context or read `resources\u002Frisk-checks.md`) when about to run a risky command yourself.\n\n## Worked example\n\nProposed: migration adding a `flight_logs` table. Additive CREATE TABLE → Impact Low, Reversible Yes (DROP TABLE) → Risk Low; typecheck\u002Flint\u002Ftests pass. `GUARDRAIL: APPROVED | Risk: Low | Checks: 3 pass | Rollback: DROP TABLE IF EXISTS flight_logs;`. The same flow on `DROP COLUMN` with data present would come back High and REJECTED pending an expand\u002Fcontract plan.\n",{"docs":24,"name":5,"color":27,"owner":28,"version":29,"description":7},{"status":25,"updated":26},"draft",1788220800000,"red","swarmery-core","1.0.0","main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fcore\u002Fskills\u002Fguardrails",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add atretyak1985\u002Fswarmery --skill guardrails",{"tool":44,"command":45},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill guardrails",{"tool":47,"command":48},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fguardrails\u002FSKILL.md",true,[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"resources\u002Frisk-checks.md","REFERENCE","参考文档",1997,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fguardrails\u002Fresources\u002Frisk-checks.md",[59,66,72,79,86,93],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]