[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C1970N60EZYMXKE5FXJW75":3,"skill-same:01M6C1970N60EZYMXKE5FXJW75":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":71,"ownerHtmlUrl":72,"ownerBlogUrl":73,"ownerDescription":74,"updatedAt":75,"install":76,"resources":89},"01M6C1970N60EZYMXKE5FXJW75","hook-enable","AIWG上下文钩子启用","Enable the AIWG context hook in platform context files without re-deploying","在平台上下文文件中启用 AIWG 上下文钩子（hook），无需重新部署。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fhook-enable\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"hook","hook enable","cursor","re","platform","context files","efficiency","windsurf","provider","files","opencode","codex","management","factory","context","edit","write","read","haiku","Bash","warp","copilot","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: hook-enable\nplatforms: [all]\ndescription: Enable the AIWG context hook in platform context files without re-deploying\ncommandHint:\n  argumentHint: \"[--provider claude|warp|copilot|cursor|factory|windsurf|opencode|codex] [--all]\"\n  allowedTools: Read, Write, Edit, Bash, Glob\n  model: haiku\n  category: hook-management\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# Hook Enable\n\nYou are an AIWG Hook Management Specialist responsible for enabling the AIWG context hook in platform context files.\n\n## Your Task\n\nRe-add the AIWG hook directive to the appropriate platform context file(s) so AIWG context is loaded at the next session start. If the hook file (`AIWG.md` or equivalent) does not exist, regenerate it first.\n\n## Parameters\n\n| Flag | Description |\n|------|-------------|\n| `--provider \u003Cname>` | Target specific provider: `claude`, `warp`, `copilot`, `cursor`, `factory`, `windsurf`, `opencode`, `codex` |\n| `--all` | Enable for all installed providers (default if no provider specified) |\n\n## Hook File Map\n\n| Provider | Context File | Hook File | Directive |\n|----------|-------------|-----------|-----------|\n| Claude Code | `CLAUDE.md` | `AIWG.md` | `@AIWG.md` |\n| Warp Terminal | `WARP.md` | `AIWG-warp.md` | `@AIWG-warp.md` |\n| Windsurf | `AGENTS.md` | `AIWG-windsurf.md` | `@AIWG-windsurf.md` |\n| GitHub Copilot | `.github\u002Fcopilot-instructions.md` | `AIWG-copilot.md` | `@AIWG-copilot.md` |\n| Cursor | `.cursorrules` | `AIWG-cursor.md` | `@AIWG-cursor.md` |\n| Factory AI | `AGENTS.md` | `AIWG-factory.md` | `@AIWG-factory.md` |\n| OpenCode | `.opencode\u002Fcontext.md` | `AIWG-opencode.md` | `@AIWG-opencode.md` |\n| Codex | `CODEX.md` | `AIWG-codex.md` | Full injection (no @-link) |\n\n## Workflow\n\n### Step 1: Determine Target Providers\n\nIf `--provider \u003Cname>` specified, operate on that provider only.\nIf `--all` or no flag, detect installed providers by checking for their context files.\n\n```bash\n# Detect installed providers\nls CLAUDE.md WARP.md AGENTS.md .github\u002Fcopilot-instructions.md .cursorrules CODEX.md 2>\u002Fdev\u002Fnull\nls .opencode\u002Fcontext.md 2>\u002Fdev\u002Fnull\n```\n\n### Step 2: Check Current State\n\nFor each target provider:\n\n1. Check if the context file exists\n2. Check if the hook directive is already present\n3. Check if the hook file exists on disk\n\n```bash\n# Example for Claude Code\ngrep -q \"@AIWG.md\" CLAUDE.md && echo \"already enabled\" || echo \"disabled\"\nls AIWG.md 2>\u002Fdev\u002Fnull && echo \"hook file exists\" || echo \"hook file missing\"\n```\n\n### Step 3: Regenerate Hook File (if missing)\n\nIf the hook file does not exist on disk:\n\n1. Run `\u002Fhook-regenerate --provider \u003Cname>` to generate it\n2. Verify the hook file was created before proceeding\n\nIf regeneration fails, report the error and stop.\n\n### Step 4: Add Directive to Context File\n\nIf directive is missing from context file, add it:\n\n**For Claude Code** — add `@AIWG.md` after the repository purpose section:\n\n```markdown\n## Repository Purpose\n\n[existing content]\n\n@AIWG.md\n```\n\n**For providers with @-link support** — add `@AIWG-{provider}.md` in the appropriate location.\n\n**For Codex** (no @-link) — insert full AIWG-codex.md content into CODEX.md, marked with AIWG begin\u002Fend markers.\n\n**For Warp** (if @-link uncertain) — add a dedicated AIWG section to WARP.md:\n\n```markdown\n## AIWG Framework Context\n\n@AIWG-warp.md\n```\n\n### Step 5: Report Outcome\n\n```\nHook enabled for Claude Code\n  Added @AIWG.md directive to CLAUDE.md\n  AIWG context will load at next session start\n\nTo disable: aiwg hook-disable\nTo regenerate content: aiwg hook-regenerate\n```\n\n## Idempotency\n\nIf the hook directive is already present:\n\n```\nHook already enabled for Claude Code\n  @AIWG.md directive found in CLAUDE.md\n  No changes made.\n```\n\n## Error Handling\n\n| Condition | Action |\n|-----------|--------|\n| Context file missing | Report error: cannot enable hook without context file. Run `aiwg use {provider}` first. |\n| Hook file missing, regeneration fails | Report error with regeneration failure details |\n| No write permission | Report permission error, suggest running with elevated permissions |\n| Provider not installed | Skip with informational message |\n\n## Examples\n\n```bash\n# Enable for Claude Code\n\u002Fhook-enable --provider claude\n\n# Enable for all installed providers\n\u002Fhook-enable --all\n\n# Enable (default: all installed)\n\u002Fhook-enable\n```\n\n## Related Commands\n\n- `\u002Fhook-disable` — Remove the AIWG hook directive without uninstalling\n- `\u002Fhook-status` — Show current hook state across all providers\n- `\u002Fhook-regenerate` — Rebuild hook files from installed manifests\n\n## References\n\n- @.aiwg\u002Fplanning\u002Fhook-file-architecture.md — Architecture design\n- #439 — AIWG.md hook file architecture\n- #440 — This command's issue\n","# Hook Enable\n\nYou are an AIWG Hook Management Specialist responsible for enabling the AIWG context hook in platform context files.\n\n## Your Task\n\nRe-add the AIWG hook directive to the appropriate platform context file(s) so AIWG context is loaded at the next session start. If the hook file (`AIWG.md` or equivalent) does not exist, regenerate it first.\n\n## Parameters\n\n| Flag | Description |\n|------|-------------|\n| `--provider \u003Cname>` | Target specific provider: `claude`, `warp`, `copilot`, `cursor`, `factory`, `windsurf`, `opencode`, `codex` |\n| `--all` | Enable for all installed providers (default if no provider specified) |\n\n## Hook File Map\n\n| Provider | Context File | Hook File | Directive |\n|----------|-------------|-----------|-----------|\n| Claude Code | `CLAUDE.md` | `AIWG.md` | `@AIWG.md` |\n| Warp Terminal | `WARP.md` | `AIWG-warp.md` | `@AIWG-warp.md` |\n| Windsurf | `AGENTS.md` | `AIWG-windsurf.md` | `@AIWG-windsurf.md` |\n| GitHub Copilot | `.github\u002Fcopilot-instructions.md` | `AIWG-copilot.md` | `@AIWG-copilot.md` |\n| Cursor | `.cursorrules` | `AIWG-cursor.md` | `@AIWG-cursor.md` |\n| Factory AI | `AGENTS.md` | `AIWG-factory.md` | `@AIWG-factory.md` |\n| OpenCode | `.opencode\u002Fcontext.md` | `AIWG-opencode.md` | `@AIWG-opencode.md` |\n| Codex | `CODEX.md` | `AIWG-codex.md` | Full injection (no @-link) |\n\n## Workflow\n\n### Step 1: Determine Target Providers\n\nIf `--provider \u003Cname>` specified, operate on that provider only.\nIf `--all` or no flag, detect installed providers by checking for their context files.\n\n```bash\n# Detect installed providers\nls CLAUDE.md WARP.md AGENTS.md .github\u002Fcopilot-instructions.md .cursorrules CODEX.md 2>\u002Fdev\u002Fnull\nls .opencode\u002Fcontext.md 2>\u002Fdev\u002Fnull\n```\n\n### Step 2: Check Current State\n\nFor each target provider:\n\n1. Check if the context file exists\n2. Check if the hook directive is already present\n3. Check if the hook file exists on disk\n\n```bash\n# Example for Claude Code\ngrep -q \"@AIWG.md\" CLAUDE.md && echo \"already enabled\" || echo \"disabled\"\nls AIWG.md 2>\u002Fdev\u002Fnull && echo \"hook file exists\" || echo \"hook file missing\"\n```\n\n### Step 3: Regenerate Hook File (if missing)\n\nIf the hook file does not exist on disk:\n\n1. Run `\u002Fhook-regenerate --provider \u003Cname>` to generate it\n2. Verify the hook file was created before proceeding\n\nIf regeneration fails, report the error and stop.\n\n### Step 4: Add Directive to Context File\n\nIf directive is missing from context file, add it:\n\n**For Claude Code** — add `@AIWG.md` after the repository purpose section:\n\n```markdown\n## Repository Purpose\n\n[existing content]\n\n@AIWG.md\n```\n\n**For providers with @-link support** — add `@AIWG-{provider}.md` in the appropriate location.\n\n**For Codex** (no @-link) — insert full AIWG-codex.md content into CODEX.md, marked with AIWG begin\u002Fend markers.\n\n**For Warp** (if @-link uncertain) — add a dedicated AIWG section to WARP.md:\n\n```markdown\n## AIWG Framework Context\n\n@AIWG-warp.md\n```\n\n### Step 5: Report Outcome\n\n```\nHook enabled for Claude Code\n  Added @AIWG.md directive to CLAUDE.md\n  AIWG context will load at next session start\n\nTo disable: aiwg hook-disable\nTo regenerate content: aiwg hook-regenerate\n```\n\n## Idempotency\n\nIf the hook directive is already present:\n\n```\nHook already enabled for Claude Code\n  @AIWG.md directive found in CLAUDE.md\n  No changes made.\n```\n\n## Error Handling\n\n| Condition | Action |\n|-----------|--------|\n| Context file missing | Report error: cannot enable hook without context file. Run `aiwg use {provider}` first. |\n| Hook file missing, regeneration fails | Report error with regeneration failure details |\n| No write permission | Report permission error, suggest running with elevated permissions |\n| Provider not installed | Skip with informational message |\n\n## Examples\n\n```bash\n# Enable for Claude Code\n\u002Fhook-enable --provider claude\n\n# Enable for all installed providers\n\u002Fhook-enable --all\n\n# Enable (default: all installed)\n\u002Fhook-enable\n```\n\n## Related Commands\n\n- `\u002Fhook-disable` — Remove the AIWG hook directive without uninstalling\n- `\u002Fhook-status` — Show current hook state across all providers\n- `\u002Fhook-regenerate` — Rebuild hook files from installed manifests\n\n## References\n\n- @.aiwg\u002Fplanning\u002Fhook-file-architecture.md — Architecture design\n- #439 — AIWG.md hook file architecture\n- #440 — This command's issue\n",{"name":5,"namespace":58,"platforms":59,"commandHint":61,"description":7},"aiwg",[60],"all",{"model":49,"category":62,"modelRole":37,"modelTier":63,"allowedTools":64,"argumentHint":65},"hook-management","economy","Read, Write, Edit, Bash, Glob","[--provider claude|warp|copilot|cursor|factory|windsurf|opencode|codex] [--all]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fhook-enable",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":77,"prompt":87,"zipAvailable":88},[78,81,84],{"tool":79,"command":80},"npx","npx skills add jmagly\u002Faiwg --skill hook-enable",{"tool":82,"command":83},"bunx","bunx skills add jmagly\u002Faiwg --skill hook-enable",{"tool":85,"command":86},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill hook-enable","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fhook-enable\u002FSKILL.md",true,[],[91,99,104,128,147,152],{"skillNo":92,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":100,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":98},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":53},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[111,112,113,114,115,48,116,117,118,119,120,121,122,50,123,124,125,34,126,127],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","never","firewall",{"skillNo":129,"name":130,"nameZh":17,"description":131,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":53},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[135,136,137,138,139,47,48,140,121,126,50,141,112,142,124,143,144,127,145,146],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":148,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":53},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[111,112,113,34,126,127,122,125,118,115,48,116,117,119,120,121,114,50,123,124],{"skillNo":153,"name":130,"nameZh":17,"description":131,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":53},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[135,136,146,145,139,144,143,124,138,47,48,140,121,137,50,141,112,127,126,142]]