[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70TE45B51ZZ5NCQGDGQ2SW2":3,"skill-same:01M70TE45B51ZZ5NCQGDGQ2SW2":81},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M70TE45B51ZZ5NCQGDGQ2SW2","apex-guard",null,"Opt-in session guard that confirms destructive commands and freezes edits to one directory. Use when asked to \"be careful\", \"freeze edits to src\u002F\", or \"guard this session\".","tonone-ai\u002Ftonone","tonone-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252718527?v=4","01M6E0753HQVTQWJCQCV4AHAAS","tonone.ai","01M6E075828PMH1WMX0VEB5SV8",77,"MIT","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fskills\u002Fapex-guard\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"apex guard","apex","guard","Safety","commands","write","hello","src","read","directory","code","freeze","Bash","when","use","Guardrails","session","careful","for","opt","2026-11-10 10:12:30",false,"---\nname: apex-guard\ndescription: Opt-in session guard that confirms destructive commands and freezes edits to one directory. Use when asked to \"be careful\", \"freeze edits to src\u002F\", or \"guard this session\".\nallowed-tools: Bash, Read, Write\nversion: 0.1.0\nauthor: tonone-ai \u003Chello@tonone.ai>\nlicense: MIT\ncompatibility: Designed for Claude Code\ntags: [engineering, safety, guardrails]\n---\n\n\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Apex Guard\n\nYou are Apex — the engineering lead. Arm, change, or clear the destructive-command guard for this session. Terse. No ceremony.\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n## What it is (say this plainly)\n\nAdvisory string matching in a PreToolUse hook (`team\u002Fapex\u002Fhooks\u002Fapex-guard.js`). Trivially bypassable: aliases, scripts, `eval`, base64, `sh -c`, other tools. Not a security boundary. A guardrail against accidents.\n\nInert until armed. State lives in `.claude\u002Ftonone-guard.json`.\n\n| Mode           | Effect                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |\n| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `careful`      | Bash only. Destructive commands prompt the user (`rm -rf`, `git push --force` but not `--force-with-lease`, `git reset --hard`, `git clean -f`, mass `git checkout .`\u002F`restore .`, `git branch -D`, DROP\u002FTRUNCATE\u002F`DELETE` without WHERE, `kubectl delete`, `terraform destroy`, `docker system prune`\u002F`volume rm`, `chmod -R 777`, `dd of=\u002Fdev\u002F`, `mkfs`). `rm -rf` of only `node_modules`, `dist`, `build`, `.next`, `target`, `__pycache__`, `.cache`, `coverage` is exempt. Catastrophic ones are denied outright: `rm -rf \u002F`, `~`, `$HOME`, `\u002F*`, fork bomb, `mkfs`\u002F`dd` onto `\u002Fdev\u002Fsd*`\u002F`disk*`. |\n| `freeze \u003Cdir>` | Edit, MultiEdit, Write, NotebookEdit outside `\u003Cdir>` are denied. **Bash is NOT constrained by freeze** — `sed -i`, `>` redirects, `mv` still work.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |\n| `guard \u003Cdir>`  | Both.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n\n## Steps\n\n### Step 1: Parse the mode\n\nArgument is one of `careful`, `freeze \u003Cdir>`, `guard \u003Cdir>`, `off`, `status`. Missing or unknown: ask once. `freeze`\u002F`guard` without a dir: ask for it. Refuse dirs containing `\"` or `\\`.\n\n### Step 2: Apply it\n\nRun from the project root. `\u003Cdir>` becomes an absolute path.\n\n**careful \u002F freeze \u002F guard:**\n\n```bash\nmkdir -p .claude\nFREEZE=$(cd \"\u003Cdir>\" && pwd -P)   # freeze\u002Fguard only; for careful write null below\ncat > .claude\u002Ftonone-guard.json \u003C\u003CEOF\n{\"version\":1,\"careful\":true,\"freeze\":\"$FREEZE\",\"session_id\":null,\"armed_at\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}\nEOF\n```\n\n- `careful`: `\"careful\":true,\"freeze\":null`\n- `freeze \u003Cdir>`: `\"careful\":false,\"freeze\":\"$FREEZE\"`\n- `guard \u003Cdir>`: `\"careful\":true,\"freeze\":\"$FREEZE\"`\n\nIf `cd` fails, stop: dir does not exist.\n\n**off:** `rm -f .claude\u002Ftonone-guard.json`\n\n**status:** `cat .claude\u002Ftonone-guard.json 2>\u002Fdev\u002Fnull || echo \"not armed\"`, then report mode, frozen dir, bound session, age.\n\n### Step 3: Verify the hook is registered\n\n- Installed as the full tonone plugin: the hook is in root `hooks\u002Fhooks.json`, nothing to do.\n- Installed as a per-agent apex plugin: the hook is NOT registered. Say so, and print this for the user's `.claude\u002Fsettings.json` (substitute the real absolute path):\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash|Edit|MultiEdit|Write|NotebookEdit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node \\\"\u002Fabs\u002Fpath\u002Fto\u002Fteam\u002Fapex\u002Fhooks\u002Fapex-guard.js\\\"\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nUntil registered, the state file does nothing. Smoke test:\n\n```bash\nnode \u003Cpath>\u002Fapex-guard.js --check '{\"tool_name\":\"Bash\",\"tool_input\":{\"command\":\"git reset --hard\"},\"cwd\":\".\"}'\n```\n\nExpect a JSON `ask`. Silent means not armed, expired, or bound to another session.\n\n### Step 4: Report\n\nBox header, one line per fact: mode, frozen dir, expiry. Then the caveats:\n\n- `session_id: null` = armed. The first hook call binds it to that session. A file bound to another session is stale: ignored and deleted. Also ignored after 24h. Re-run `\u002Fapex-guard` to re-arm.\n- Disable temporarily: `TONONE_GUARD=off` (or `TONONE_APEX_GUARD=off`). Fails open on any error.\n- Optional: add `.claude\u002Ftonone-guard.json` to `.gitignore`.\n- Reminder: advisory only. Bash escapes freeze.\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt.\n\n## Severity\n\n■ CRITICAL: hook unregistered while the user expects protection. ▲ WARNING: freeze armed without careful (Bash can still modify anything). ● INFO: armed, bound, healthy.\n","\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Apex Guard\n\nYou are Apex — the engineering lead. Arm, change, or clear the destructive-command guard for this session. Terse. No ceremony.\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n## What it is (say this plainly)\n\nAdvisory string matching in a PreToolUse hook (`team\u002Fapex\u002Fhooks\u002Fapex-guard.js`). Trivially bypassable: aliases, scripts, `eval`, base64, `sh -c`, other tools. Not a security boundary. A guardrail against accidents.\n\nInert until armed. State lives in `.claude\u002Ftonone-guard.json`.\n\n| Mode           | Effect                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |\n| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `careful`      | Bash only. Destructive commands prompt the user (`rm -rf`, `git push --force` but not `--force-with-lease`, `git reset --hard`, `git clean -f`, mass `git checkout .`\u002F`restore .`, `git branch -D`, DROP\u002FTRUNCATE\u002F`DELETE` without WHERE, `kubectl delete`, `terraform destroy`, `docker system prune`\u002F`volume rm`, `chmod -R 777`, `dd of=\u002Fdev\u002F`, `mkfs`). `rm -rf` of only `node_modules`, `dist`, `build`, `.next`, `target`, `__pycache__`, `.cache`, `coverage` is exempt. Catastrophic ones are denied outright: `rm -rf \u002F`, `~`, `$HOME`, `\u002F*`, fork bomb, `mkfs`\u002F`dd` onto `\u002Fdev\u002Fsd*`\u002F`disk*`. |\n| `freeze \u003Cdir>` | Edit, MultiEdit, Write, NotebookEdit outside `\u003Cdir>` are denied. **Bash is NOT constrained by freeze** — `sed -i`, `>` redirects, `mv` still work.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |\n| `guard \u003Cdir>`  | Both.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n\n## Steps\n\n### Step 1: Parse the mode\n\nArgument is one of `careful`, `freeze \u003Cdir>`, `guard \u003Cdir>`, `off`, `status`. Missing or unknown: ask once. `freeze`\u002F`guard` without a dir: ask for it. Refuse dirs containing `\"` or `\\`.\n\n### Step 2: Apply it\n\nRun from the project root. `\u003Cdir>` becomes an absolute path.\n\n**careful \u002F freeze \u002F guard:**\n\n```bash\nmkdir -p .claude\nFREEZE=$(cd \"\u003Cdir>\" && pwd -P)   # freeze\u002Fguard only; for careful write null below\ncat > .claude\u002Ftonone-guard.json \u003C\u003CEOF\n{\"version\":1,\"careful\":true,\"freeze\":\"$FREEZE\",\"session_id\":null,\"armed_at\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}\nEOF\n```\n\n- `careful`: `\"careful\":true,\"freeze\":null`\n- `freeze \u003Cdir>`: `\"careful\":false,\"freeze\":\"$FREEZE\"`\n- `guard \u003Cdir>`: `\"careful\":true,\"freeze\":\"$FREEZE\"`\n\nIf `cd` fails, stop: dir does not exist.\n\n**off:** `rm -f .claude\u002Ftonone-guard.json`\n\n**status:** `cat .claude\u002Ftonone-guard.json 2>\u002Fdev\u002Fnull || echo \"not armed\"`, then report mode, frozen dir, bound session, age.\n\n### Step 3: Verify the hook is registered\n\n- Installed as the full tonone plugin: the hook is in root `hooks\u002Fhooks.json`, nothing to do.\n- Installed as a per-agent apex plugin: the hook is NOT registered. Say so, and print this for the user's `.claude\u002Fsettings.json` (substitute the real absolute path):\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash|Edit|MultiEdit|Write|NotebookEdit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node \\\"\u002Fabs\u002Fpath\u002Fto\u002Fteam\u002Fapex\u002Fhooks\u002Fapex-guard.js\\\"\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nUntil registered, the state file does nothing. Smoke test:\n\n```bash\nnode \u003Cpath>\u002Fapex-guard.js --check '{\"tool_name\":\"Bash\",\"tool_input\":{\"command\":\"git reset --hard\"},\"cwd\":\".\"}'\n```\n\nExpect a JSON `ask`. Silent means not armed, expired, or bound to another session.\n\n### Step 4: Report\n\nBox header, one line per fact: mode, frozen dir, expiry. Then the caveats:\n\n- `session_id: null` = armed. The first hook call binds it to that session. A file bound to another session is stale: ignored and deleted. Also ignored after 24h. Re-run `\u002Fapex-guard` to re-arm.\n- Disable temporarily: `TONONE_GUARD=off` (or `TONONE_APEX_GUARD=off`). Fails open on any error.\n- Optional: add `.claude\u002Ftonone-guard.json` to `.gitignore`.\n- Reminder: advisory only. Bash escapes freeze.\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt.\n\n## Severity\n\n■ CRITICAL: hook unregistered while the user expects protection. ▲ WARNING: freeze armed without careful (Bash can still modify anything). ● INFO: armed, bound, healthy.\n",{"name":5,"tags":49,"author":53,"license":15,"version":54,"description":7,"allowed-tools":55,"compatibility":56},[50,51,52],"engineering","safety","guardrails","tonone-ai \u003Chello@tonone.ai>","0.1.0","Bash, Read, Write","Designed for Claude Code","main","117b48ffd82ffc8429954da42f2bf062e84e1b26","skills\u002Fapex-guard",11,"https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone","https:\u002F\u002Fsecond.tonone.ai","https:\u002F\u002Fgithub.com\u002Ftonone-ai","https:\u002F\u002Ftonone.ai","Founded by @thisisfatih","2026-11-11 05:05:57",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add tonone-ai\u002Ftonone --skill apex-guard",{"tool":73,"command":74},"bunx","bunx skills add tonone-ai\u002Ftonone --skill apex-guard",{"tool":76,"command":77},"pnpm","pnpm dlx skills add tonone-ai\u002Ftonone --skill apex-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fskills\u002Fapex-guard\u002FSKILL.md",true,[],[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":89},"01M7451MJNZW81Y6PWDK32PBR1","tonone-doctor","Read-only health report for tonone state — corrupt .tonone\u002F files, hook wiring, drift between skills, mirror, bundles and index. Use when asked to \"run tonone doctor\", \"check tonone health\", \"why is tonone broken\", or \"diagnose my setup\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Ftonone-doctor\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"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":89},"01M7451A88EVFJJASWTTWT26YG","prism-harden","Make UI survive real data — overflow, i18n, empty\u002Ferror\u002Floading states, extreme values. Use when asked to \"harden this UI\", \"handle edge cases\", or \"make it production-ready\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-harden\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":89},"01M74517FB11SCPTJ32C9A5TMX","prism-extract","Extract repeated values and markup into design tokens and components. Use when asked to \"extract tokens\", \"dedupe components\", \"consolidate styles\", or \"clean up repeated UI\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-extract\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":89},"01M7450P0X19MTYVTFKDG3MBXZ","apex-skillify","Turn a flow that just worked in this session into a reusable skill. Use when asked to \"skillify this\", \"make this a skill\", or \"save this workflow\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-skillify\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":89},"01M7450FYBRZ9BNTFBC5ENTPCX","apex-retro","Weekly engineering retrospective from git history. Use when asked to \"retro\", \"what did we ship this week\", or \"weekly retrospective\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-retro\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":125},"01M72R4DFY3VK3ZQEQ147XB9JC","prism-redesign","Fix an existing UI in a bounded scan, diagnose, fix, re-lint loop. Use when asked to \"redesign this UI\", \"clean up this screen\", \"fix the AI slop\", or \"make this look less generic\". Lint-driven, max 3 loops, never changes brand direction silently.","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Fprism\u002Fskills\u002Fprism-redesign\u002FSKILL.md",[],[],"2026-11-10 22:39:42"]