[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DZYN81E6WTN0N4GE3ZP4RG":3,"skill-same:01M6DZYN81E6WTN0N4GE3ZP4RG":99},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DZYN81E6WTN0N4GE3ZP4RG","careful",null,"Safety guardrails for destructive commands. (gstack)","westn\u002Fgstack-pi-port","westn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F224833?v=4","01M6DZW54VKKV0RAMJWH6EGXZ5","Fredrik Nordell","01M6DZW596W0RYE47PT4SZSDJA",1,"MIT","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fcareful\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26],"Guardrails","Safety","Bash","check","command","pi","gstack","commands","2026-11-10 10:12:30",false,"---\nname: careful\nversion: 0.1.0\ndescription: Safety guardrails for destructive commands. (gstack)\ntriggers:\n  - be careful\n  - warn before destructive\n  - safety mode\nhooks:\n  PreToolUse:\n    - matcher: \"Bash\"\n      hooks:\n        - type: command\n          command: \"bash $HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh\"\n          statusMessage: \"Checking for destructive commands...\"\n---\n\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nWarns before rm -rf, DROP TABLE,\nforce-push, git reset --hard, kubectl delete, and similar destructive operations.\nUser can override each warning. Use when touching prod, debugging live systems,\nor working in a shared environment. Use when asked to \"be careful\", \"safety mode\",\n\"prod mode\", or \"careful mode\".\n\n# \u002Fskill:careful — Destructive Command Guardrails\n\nSafety mode is now **active**. Every bash command will be checked for destructive\npatterns before running. If a destructive command is detected, you'll be warned\nand can choose to proceed or cancel.\n\n```bash\nmkdir -p ~\u002F.gstack\u002Fanalytics\necho '{\"skill\":\"careful\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"unknown\")'\"}'  >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\n```\n\n## What's protected\n\n| Pattern | Example | Risk |\n|---------|---------|------|\n| `rm -rf` \u002F `rm -r` \u002F `rm --recursive` | `rm -rf \u002Fvar\u002Fdata` | Recursive delete |\n| `DROP TABLE` \u002F `DROP DATABASE` | `DROP TABLE users;` | Data loss |\n| `TRUNCATE` | `TRUNCATE orders;` | Data loss |\n| `git push --force` \u002F `-f` | `git push -f origin main` | History rewrite |\n| `git reset --hard` | `git reset --hard HEAD~3` | Uncommitted work loss |\n| `git checkout .` \u002F `git restore .` | `git checkout .` | Uncommitted work loss |\n| `kubectl delete` | `kubectl delete pod` | Production impact |\n| `docker rm -f` \u002F `docker system prune` | `docker system prune -a` | Container\u002Fimage loss |\n\n## Safe exceptions\n\nThese patterns are allowed without warning:\n- `rm -rf node_modules` \u002F `.next` \u002F `dist` \u002F `__pycache__` \u002F `.cache` \u002F `build` \u002F `.turbo` \u002F `coverage`\n\n## How it works\n\nThe hook reads the command from the tool input JSON, checks it against the\npatterns above, and returns a `hookSpecificOutput` payload with\n`permissionDecision: \"ask\"` and a warning reason if a match is found (the\ndecision must be nested under `hookSpecificOutput` — pi ignores a\ntop-level `permissionDecision`). You can always override a MEDIUM warning and\nproceed.\n\n## HIGH tier (hard deny)\n\nTwo catastrophic shapes are **denied**, not asked: `rm -r`\u002F`-R` of exactly\n`\u002F`, `~`, or `$HOME`, and force-push to the repo's **default branch**. SIMPLE\ncommands only (no `;`, `&&`, `||`, `|`, newline) — compound shapes fall\nthrough to the MEDIUM ask; `--force-with-lease` is never HIGH. A best-effort\nadvisory hard-stop, not a policy boundary: the escape hatch is ending the\nopt-in, session-scoped \u002Fskill:careful session.\n\n## Project patterns (additive only)\n\nAdd warn rules — one POSIX ERE per line, `#` comments OK — in\n`~\u002F.gstack\u002Fcareful-patterns.txt` (global) or\n`~\u002F.gstack\u002Fprojects\u002F\u003Cslug>\u002Fcareful-patterns.txt` (per-project). Consulted\nafter the built-in families, so config can only ADD rules, never suppress a\nbaseline warning. Invalid regex lines are skipped.\n\nTo deactivate, end the conversation or start a new one. Hooks are session-scoped.\n","\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nWarns before rm -rf, DROP TABLE,\nforce-push, git reset --hard, kubectl delete, and similar destructive operations.\nUser can override each warning. Use when touching prod, debugging live systems,\nor working in a shared environment. Use when asked to \"be careful\", \"safety mode\",\n\"prod mode\", or \"careful mode\".\n\n# \u002Fskill:careful — Destructive Command Guardrails\n\nSafety mode is now **active**. Every bash command will be checked for destructive\npatterns before running. If a destructive command is detected, you'll be warned\nand can choose to proceed or cancel.\n\n```bash\nmkdir -p ~\u002F.gstack\u002Fanalytics\necho '{\"skill\":\"careful\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo \"unknown\")'\"}'  >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\n```\n\n## What's protected\n\n| Pattern | Example | Risk |\n|---------|---------|------|\n| `rm -rf` \u002F `rm -r` \u002F `rm --recursive` | `rm -rf \u002Fvar\u002Fdata` | Recursive delete |\n| `DROP TABLE` \u002F `DROP DATABASE` | `DROP TABLE users;` | Data loss |\n| `TRUNCATE` | `TRUNCATE orders;` | Data loss |\n| `git push --force` \u002F `-f` | `git push -f origin main` | History rewrite |\n| `git reset --hard` | `git reset --hard HEAD~3` | Uncommitted work loss |\n| `git checkout .` \u002F `git restore .` | `git checkout .` | Uncommitted work loss |\n| `kubectl delete` | `kubectl delete pod` | Production impact |\n| `docker rm -f` \u002F `docker system prune` | `docker system prune -a` | Container\u002Fimage loss |\n\n## Safe exceptions\n\nThese patterns are allowed without warning:\n- `rm -rf node_modules` \u002F `.next` \u002F `dist` \u002F `__pycache__` \u002F `.cache` \u002F `build` \u002F `.turbo` \u002F `coverage`\n\n## How it works\n\nThe hook reads the command from the tool input JSON, checks it against the\npatterns above, and returns a `hookSpecificOutput` payload with\n`permissionDecision: \"ask\"` and a warning reason if a match is found (the\ndecision must be nested under `hookSpecificOutput` — pi ignores a\ntop-level `permissionDecision`). You can always override a MEDIUM warning and\nproceed.\n\n## HIGH tier (hard deny)\n\nTwo catastrophic shapes are **denied**, not asked: `rm -r`\u002F`-R` of exactly\n`\u002F`, `~`, or `$HOME`, and force-push to the repo's **default branch**. SIMPLE\ncommands only (no `;`, `&&`, `||`, `|`, newline) — compound shapes fall\nthrough to the MEDIUM ask; `--force-with-lease` is never HIGH. A best-effort\nadvisory hard-stop, not a policy boundary: the escape hatch is ending the\nopt-in, session-scoped \u002Fskill:careful session.\n\n## Project patterns (additive only)\n\nAdd warn rules — one POSIX ERE per line, `#` comments OK — in\n`~\u002F.gstack\u002Fcareful-patterns.txt` (global) or\n`~\u002F.gstack\u002Fprojects\u002F\u003Cslug>\u002Fcareful-patterns.txt` (per-project). Consulted\nafter the built-in families, so config can only ADD rules, never suppress a\nbaseline warning. Invalid regex lines are skipped.\n\nTo deactivate, end the conversation or start a new one. Hooks are session-scoped.\n",{"name":5,"hooks":32,"version":39,"triggers":40,"description":7},{"PreToolUse":33},[34],{"hooks":35,"matcher":21},[36],{"type":23,"command":37,"statusMessage":38},"bash $HOME\u002F.pi\u002Fagent\u002Fskills\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh","Checking for destructive commands...","0.1.0",[41,42,43],"be careful","warn before destructive","safety mode","main","30109be4b796544f50f067915edf4d9874dc50d2","port\u002Fgstack\u002Fcareful",0,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port","https:\u002F\u002Fgithub.com\u002Fwestn","2026-09-04 10:21:48",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add westn\u002Fgstack-pi-port --skill careful",{"tool":57,"command":58},"bunx","bunx skills add westn\u002Fgstack-pi-port --skill careful",{"tool":60,"command":61},"pnpm","pnpm dlx skills add westn\u002Fgstack-pi-port --skill careful","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fcareful\u002FSKILL.md",true,[65,71,75,79,85,89,95],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"bin\u002Fcheck-careful.sh","SCRIPT","脚本",14763,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fcareful\u002Fbin\u002Fcheck-careful.sh",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"bin\u002Fhook-extract.sh",4296,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fcareful\u002Fbin\u002Fhook-extract.sh",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"core.py",371,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fzero_trust_validation\u002Fcore.py",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"manifest.yaml","REFERENCE","参考文档",190,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fzero_trust_validation\u002Fmanifest.yaml",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"SKILL.md.meta.json",636,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fzero_trust_validation\u002FSKILL.md.meta.json",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"SKILL.md.tmpl","OTHER","其他",3405,"https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fcareful\u002FSKILL.md.tmpl",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"tests\u002Ftest_core.py",311,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Farchive\u002Flegacy_pillars\u002F10_engineering_devops\u002F01_software_engineering\u002Fdeveloping\u002Fskills\u002Fzero_trust_validation\u002Ftests\u002Ftest_core.py",[100,113,124,136,157,173],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":27},"01M6E05W3NMBAPS04BTY5022R0","unfreeze","Clear the freeze boundary set by \u002Fskill:freeze, allowing edits to all directories again. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Funfreeze\u002FSKILL.md",[],[102,107,108,109,110,111,25,112],"SET","boundary","freeze","edit","remove","clear",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":27},"01M6E05TJPTDXG2ARV08KYYWJG","beta","Clean fixture tool skill with no forced reads and no mode table.","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Fbeta\u002FSKILL.md",[],[115,120,121,122,123],"tool","table","clean","fixture",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":27},"01M6E05RERN8G9QBE7WNMZSQ4M","alpha","Fixture dispatcher with a mode table and forced-read references.","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Ftest\u002Ffixtures\u002Fcontext-bill\u002Ftree-a\u002Falpha\u002FSKILL.md",[],[126,131,121,132,133,134,135,123],"dispatcher","read","router","references","upstream",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":147,"publishedAt":27},"01M6E05MJ4R9JDPFPZG9RXNKDS","sync-gbrain","Keep gbrain current with this repo's code and refresh agent search guidance in AGENTS.md. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fsync-gbrain\u002FSKILL.md",[142],{"categoryNo":143,"categoryName":144,"taxonomyType":145,"taxonomyTypeDesc":146},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[148,149,150,151,25,152,153,154,155,156],"gbrain","sync gbrain","sync","refresh","update","code","search","repo","guidance",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":27},"01M6E05FKKHRASN15HCDPRVX1F","spec","Turn vague intent into a precise, executable spec in five phases. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fspec\u002FSKILL.md",[],[159,164,165,166,167,168,169,170,25,171,172],"github issue","github","file","write","up","issue","intent","backlog","ticket",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":27},"01M6E05BF4C4WZXYY4MKX78KQX","skillify","Codify the most recent successful \u002Fskill:scrape flow into a permanent browser-skill on disk. (gstack)","https:\u002F\u002Fgithub.com\u002Fwestn\u002Fgstack-pi-port\u002Fblob\u002Fmain\u002Fport\u002Fgstack\u002Fskillify\u002FSKILL.md",[],[175,180,181,182,183,184,25],"browser","flow","scrape","disk","save"]