[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74C6F07Z1D3EPCYN5ZVFH4G":3,"skill-same:01M74C6F07Z1D3EPCYN5ZVFH4G":57},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M74C6F07Z1D3EPCYN5ZVFH4G","hook-profile-gating",null,"Runtime gate hooks via OCTO_HOOK_PROFILE (minimal|standard|strict) and OCTO_DISABLED_HOOKS (comma-separated ids) — disable noisy hooks without editing hook files. Use when onboarding a new arm, debugging a runaway hook, or running a low-context session where the full hook stack is overhead. Always-on hooks (leak-guard, secret-scan, hooks-drift) cannot be disabled via env — that's by design. Pattern adopted from affaan-m\u002FECC.","CarlosCaPe\u002Foctorato","CarlosCaPe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39838249?v=4","01M72WXX4ZRR8MBH1EP1QND2FQ","dataqbs","01M72WXX5NA7YCKRSJ54GW1GQ8",18,"MIT","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fhook-profile-gating\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: hook-profile-gating\ndescription: Runtime gate hooks via OCTO_HOOK_PROFILE (minimal|standard|strict) and OCTO_DISABLED_HOOKS (comma-separated ids) — disable noisy hooks without editing hook files. Use when onboarding a new arm, debugging a runaway hook, or running a low-context session where the full hook stack is overhead. Always-on hooks (leak-guard, secret-scan, hooks-drift) cannot be disabled via env — that's by design. Pattern adopted from affaan-m\u002FECC.\nmetadata:\n  type: runtime-pattern\n  origin: repo-deep-learn — affaan-m\u002FECC scripts\u002Flib\u002Fhook-flags.js (2026-05-28)\n---\n\n# Hook Profile Gating\n\n## Why\n\nHook stack grows over time. Some hooks are non-negotiable (secret-scan, leak-guard); some are nice-to-have (typecheck, tmux-reminder); some get noisy in specific contexts (onboarding a new arm, debugging the brain itself). Editing `settings.json` to disable one is heavy. Env-vars give per-session gating.\n\n## How\n\nThree env vars + one Python helper:\n\n| Var | Values | Default | Effect |\n|---|---|---|---|\n| `OCTO_HOOK_PROFILE` | `minimal` \\| `standard` \\| `strict` | `standard` | bulk gate by profile |\n| `OCTO_DISABLED_HOOKS` | `id1,id2,...` (comma-separated) | empty | per-hook off-switch |\n\nProfiles:\n- **minimal** — only `always_on=True` hooks run (leak-guard, secret-scan, hooks-drift). Fastest. Use when sanity-checking a brain change without firing the world.\n- **standard** — default. Everything except `strict_only=True` hooks.\n- **strict** — everything, including `strict_only` (slow type-checks, extended security scans).\n\n`OCTO_DISABLED_HOOKS` overrides everything *except* `always_on=True`. You cannot disable the leak-guard via env, ever.\n\n## Helper API\n\n`scripts\u002Flib\u002Fhook_flags.py`:\n\n```python\nfrom lib.hook_flags import should_run, profile, is_disabled\n\n# Most common pattern at the top of any hook script:\nif not should_run(\"pre:bash:tmux-reminder\"):\n    sys.exit(0)\n\n# Always-on:\nif not should_run(\"pre:push:secret-scan\", always_on=True):\n    sys.exit(0)  # never fires; always returns True\n\n# Strict-only:\nif not should_run(\"post:edit:slow-typecheck\", strict_only=True):\n    sys.exit(0)\n\n# Read profile directly:\nprof = profile()  # 'minimal' | 'standard' | 'strict'\n```\n\n## How to port an existing hook\n\n1. Pick a hook id following `\u003Cphase>:\u003Cevent>:\u003Cshort-name>` (e.g. `pre:bash:tmux-reminder`).\n2. Add at the very top of the hook script:\n   ```python\n   import sys, pathlib\n   sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent \u002F \"scripts\" \u002F \"lib\"))\n   from hook_flags import should_run\n   if not should_run(\"\u003Cyour-id>\"):\n       sys.exit(0)\n   ```\n3. Decide if it's `always_on` or `strict_only`. Default (neither) = runs in standard+strict, skipped in minimal.\n4. Document the id in the hook's docstring + a row in `~\u002F.claude\u002Fhooks\u002FREADME.md`.\n\nHooks that don't opt in are **always active** — porting is incremental, no flag-day required.\n\n## Examples\n\n```bash\n# Onboarding a new arm; minimize noise\nexport OCTO_HOOK_PROFILE=minimal\nai-pull\n\n# Debugging a specific noisy hook\nexport OCTO_DISABLED_HOOKS=\"pre:bash:tmux-reminder,post:edit:typecheck\"\nai-push \"...\"\n\n# Pre-merge strict gate (catches everything before going live)\nexport OCTO_HOOK_PROFILE=strict\nnode tests\u002Frun-all.js\n```\n\n## What NOT to do\n\n- **Don't make leak-guard env-overridable.** It's `always_on=True` for a reason — public brain.\n- **Don't gate behavior outside hooks via these env vars.** They're hook-runtime only; for runtime behavior in skills\u002Fscripts, use the operator-recall pattern (`load_config()` from a YAML).\n- **Don't ship a hook without an id.** Untrackable disabling = bad ops story.\n\n## See also\n- [[do-not-ask-to-pause]] — hooks should never prompt the operator; if they need a decision, they're not hooks\n- [[dry-run-gate-pattern]] — sibling concept: opt-in for destructive ops, opt-out for hooks via env\n","# Hook Profile Gating\n\n## Why\n\nHook stack grows over time. Some hooks are non-negotiable (secret-scan, leak-guard); some are nice-to-have (typecheck, tmux-reminder); some get noisy in specific contexts (onboarding a new arm, debugging the brain itself). Editing `settings.json` to disable one is heavy. Env-vars give per-session gating.\n\n## How\n\nThree env vars + one Python helper:\n\n| Var | Values | Default | Effect |\n|---|---|---|---|\n| `OCTO_HOOK_PROFILE` | `minimal` \\| `standard` \\| `strict` | `standard` | bulk gate by profile |\n| `OCTO_DISABLED_HOOKS` | `id1,id2,...` (comma-separated) | empty | per-hook off-switch |\n\nProfiles:\n- **minimal** — only `always_on=True` hooks run (leak-guard, secret-scan, hooks-drift). Fastest. Use when sanity-checking a brain change without firing the world.\n- **standard** — default. Everything except `strict_only=True` hooks.\n- **strict** — everything, including `strict_only` (slow type-checks, extended security scans).\n\n`OCTO_DISABLED_HOOKS` overrides everything *except* `always_on=True`. You cannot disable the leak-guard via env, ever.\n\n## Helper API\n\n`scripts\u002Flib\u002Fhook_flags.py`:\n\n```python\nfrom lib.hook_flags import should_run, profile, is_disabled\n\n# Most common pattern at the top of any hook script:\nif not should_run(\"pre:bash:tmux-reminder\"):\n    sys.exit(0)\n\n# Always-on:\nif not should_run(\"pre:push:secret-scan\", always_on=True):\n    sys.exit(0)  # never fires; always returns True\n\n# Strict-only:\nif not should_run(\"post:edit:slow-typecheck\", strict_only=True):\n    sys.exit(0)\n\n# Read profile directly:\nprof = profile()  # 'minimal' | 'standard' | 'strict'\n```\n\n## How to port an existing hook\n\n1. Pick a hook id following `\u003Cphase>:\u003Cevent>:\u003Cshort-name>` (e.g. `pre:bash:tmux-reminder`).\n2. Add at the very top of the hook script:\n   ```python\n   import sys, pathlib\n   sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent \u002F \"scripts\" \u002F \"lib\"))\n   from hook_flags import should_run\n   if not should_run(\"\u003Cyour-id>\"):\n       sys.exit(0)\n   ```\n3. Decide if it's `always_on` or `strict_only`. Default (neither) = runs in standard+strict, skipped in minimal.\n4. Document the id in the hook's docstring + a row in `~\u002F.claude\u002Fhooks\u002FREADME.md`.\n\nHooks that don't opt in are **always active** — porting is incremental, no flag-day required.\n\n## Examples\n\n```bash\n# Onboarding a new arm; minimize noise\nexport OCTO_HOOK_PROFILE=minimal\nai-pull\n\n# Debugging a specific noisy hook\nexport OCTO_DISABLED_HOOKS=\"pre:bash:tmux-reminder,post:edit:typecheck\"\nai-push \"...\"\n\n# Pre-merge strict gate (catches everything before going live)\nexport OCTO_HOOK_PROFILE=strict\nnode tests\u002Frun-all.js\n```\n\n## What NOT to do\n\n- **Don't make leak-guard env-overridable.** It's `always_on=True` for a reason — public brain.\n- **Don't gate behavior outside hooks via these env vars.** They're hook-runtime only; for runtime behavior in skills\u002Fscripts, use the operator-recall pattern (`load_config()` from a YAML).\n- **Don't ship a hook without an id.** Untrackable disabling = bad ops story.\n\n## See also\n- [[do-not-ask-to-pause]] — hooks should never prompt the operator; if they need a decision, they're not hooks\n- [[dry-run-gate-pattern]] — sibling concept: opt-in for destructive ops, opt-out for hooks via env\n",{"name":5,"metadata":24,"description":7},{"type":25,"origin":26},"runtime-pattern","repo-deep-learn — affaan-m\u002FECC scripts\u002Flib\u002Fhook-flags.js (2026-05-28)","master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fhook-profile-gating",6,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato","https:\u002F\u002Fwww.dataqbs.com\u002Foctorato","https:\u002F\u002Fgithub.com\u002FCarlosCaPe","www.dataqbs.com"," AI-powered data engineering\r\n& consulting\r\n\r\nWe build data platforms that turn complexity into clarity — from cloud architecture and ETL pipelines to AI-driven","2026-11-14 00:21:00",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add CarlosCaPe\u002Foctorato --skill hook-profile-gating",{"tool":43,"command":44},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill hook-profile-gating",{"tool":46,"command":47},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill hook-profile-gating","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fhook-profile-gating\u002FSKILL.md",true,[51],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"skill.json","REFERENCE","参考文档",550,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fhook-profile-gating\u002Fskill.json",[58,67,75,82,90,98],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M74EVAA4A4B4AKR5TT732GP4","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M74EV4WMRDKP2NQS4YWR8PXH","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M74EV05MHTXKEXD4B2QJEYTF","workspace-skill-discovery","Discover and include ALL skills across the workspace — not just global ones. Use at the start of every session or when the user asks about available skills. Ensures project-level skills (under .claude\u002Fskills\u002F or skills\u002F in any repo) are never missed.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkspace-skill-discovery\u002FSKILL.md",[],[],{"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":62,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M74ETV78525B4VP2F28Z6NRD","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"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":62,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M74ETR75NF67WGVEN7288ACV","winui-app","Create, build and design WinUI 3 desktop apps with C# and the Windows App SDK following Microsoft's official guidance and CommunityToolkit. Covers XAML, navigation, theming, accessibility and deployment.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M74ETJFRNPPNSQZ36C6HD6CW","windows-brain-script-portability","Scripts in ~\u002F.claude\u002Fscripts\u002F that run on a Windows brain: use the python3.cmd shim and not bare python3, and reconfigure stdout to UTF-8 if you print symbols. Use it when writing a brain script or triaging a Windows-only crash.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwindows-brain-script-portability\u002FSKILL.md",[],[]]