[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79Q2VE5QGC691GSY8QV84BH":3,"skill-same:01M79Q2VE5QGC691GSY8QV84BH":47},{"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":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79Q2VE5QGC691GSY8QV84BH","safety-guard",null,"Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard combines both. Advisory: the agent applies these rules itself; no hook ships with it. Use when working on production systems, running agents autonomously, restricting edits to a directory, or during migrations, deploys, and data changes.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fsafety-guard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: safety-guard\ndescription: \"Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard combines both. Advisory: the agent applies these rules itself; no hook ships with it. Use when working on production systems, running agents autonomously, restricting edits to a directory, or during migrations, deploys, and data changes.\"\nmetadata:\n  origin: ECC\n---\n\n# Safety Guard — Prevent Destructive Operations\n\n## When to Use\n\n- When working on production systems\n- When agents are running autonomously (full-auto mode)\n- When you want to restrict edits to a specific directory\n- During sensitive operations (migrations, deploys, data changes)\n\n## How It Works\n\nThree modes of protection. They are instructions the agent follows, not enforced blocks (see [Enforcement](#enforcement)).\n\n### Mode 1: Careful Mode\n\nBefore it runs a destructive command, the agent stops and warns:\n\n```\nWatched patterns:\n- rm -rf (especially \u002F, ~, or project root)\n- git push --force\n- git reset --hard\n- git checkout . (discard all changes)\n- DROP TABLE \u002F DROP DATABASE\n- docker system prune\n- kubectl delete\n- chmod 777\n- sudo rm\n- npm publish (accidental publishes)\n- Any command with --no-verify\n```\n\nWhen detected: shows what the command does, asks for confirmation, suggests safer alternative.\n\n### Mode 2: Freeze Mode\n\nLocks file edits to a specific directory tree, for example: \"freeze edits to `src\u002Fcomponents\u002F`\".\n\nThe agent does not Write\u002FEdit outside `src\u002Fcomponents\u002F`, and explains why when a change would need it. Useful when you want an agent to focus on one area without touching unrelated code.\n\n### Mode 3: Guard Mode (Careful + Freeze combined)\n\nBoth protections active, for example: \"guard mode, write only to `src\u002Fapi\u002F`, read anything\".\n\nThe agent can read anything but only writes to `src\u002Fapi\u002F`, and asks before any destructive command.\n\n### Unlock\n\nTell the agent to stop applying the rules.\n\n## Enforcement\n\nThis skill is advisory. ECC ships no `\u002Fsafety-guard` command and no hook for it, so nothing blocks a tool call that breaks these rules. For blocking that does not depend on the agent, use Claude Code [permission deny rules](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fpermissions) (for example `Bash(rm -rf *)`) or a [PreToolUse hook](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks).\n\n## Integration\n\n- Enable by default for `codex -a never` sessions\n- Pair with observability risk scoring in ECC 2.0\n","# Safety Guard — Prevent Destructive Operations\n\n## When to Use\n\n- When working on production systems\n- When agents are running autonomously (full-auto mode)\n- When you want to restrict edits to a specific directory\n- During sensitive operations (migrations, deploys, data changes)\n\n## How It Works\n\nThree modes of protection. They are instructions the agent follows, not enforced blocks (see [Enforcement](#enforcement)).\n\n### Mode 1: Careful Mode\n\nBefore it runs a destructive command, the agent stops and warns:\n\n```\nWatched patterns:\n- rm -rf (especially \u002F, ~, or project root)\n- git push --force\n- git reset --hard\n- git checkout . (discard all changes)\n- DROP TABLE \u002F DROP DATABASE\n- docker system prune\n- kubectl delete\n- chmod 777\n- sudo rm\n- npm publish (accidental publishes)\n- Any command with --no-verify\n```\n\nWhen detected: shows what the command does, asks for confirmation, suggests safer alternative.\n\n### Mode 2: Freeze Mode\n\nLocks file edits to a specific directory tree, for example: \"freeze edits to `src\u002Fcomponents\u002F`\".\n\nThe agent does not Write\u002FEdit outside `src\u002Fcomponents\u002F`, and explains why when a change would need it. Useful when you want an agent to focus on one area without touching unrelated code.\n\n### Mode 3: Guard Mode (Careful + Freeze combined)\n\nBoth protections active, for example: \"guard mode, write only to `src\u002Fapi\u002F`, read anything\".\n\nThe agent can read anything but only writes to `src\u002Fapi\u002F`, and asks before any destructive command.\n\n### Unlock\n\nTell the agent to stop applying the rules.\n\n## Enforcement\n\nThis skill is advisory. ECC ships no `\u002Fsafety-guard` command and no hook for it, so nothing blocks a tool call that breaks these rules. For blocking that does not depend on the agent, use Claude Code [permission deny rules](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fpermissions) (for example `Bash(rm -rf *)`) or a [PreToolUse hook](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks).\n\n## Integration\n\n- Enable by default for `codex -a never` sessions\n- Pair with observability risk scoring in ECC 2.0\n",{"name":5,"metadata":24,"description":7},{"origin":25},"ECC","main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Fsafety-guard","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill safety-guard",{"tool":39,"command":40},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill safety-guard",{"tool":42,"command":43},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill safety-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fsafety-guard\u002FSKILL.md",true,[],[48,54,60,66,72,78],{"skillNo":49,"name":50,"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":51,"categories":52,"keywords":53,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"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":57,"categories":58,"keywords":59,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"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":63,"categories":64,"keywords":65,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\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},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"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":75,"categories":76,"keywords":77,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"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":81,"categories":82,"keywords":83,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]