Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/corridortech/posecap/ad-hooksnpx skills add CorridorTech/PoseCap --skill ad-hooksgit clone --depth 1 https://github.com/CorridorTech/PoseCapWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00129 | $0.01689 |
| Opus 5 | $0.00064 | $0.00844 |
| Sonnet 5 | $0.00026 | $0.00338 |
| Haiku 4.5 | $0.00013 | $0.00169 |
Grade A, and why
ad-hooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<background_information>
Scaffolds the deterministic gates WORKFLOW.md §11 names. The skill writes config files for a hook runner and updates AGENTS.md Quality Gates; it does not execute install scripts. The user runs the runner's one-time bootstrap (npx husky init, lefthook install, pre-commit install) — the skill names the exact command.
Codex auto-trigger on description keywords is less mature than Claude Code's. If auto-invocation does not fire when the user asks about hooks, pre-commit, or quality gates, invoke the skill manually. </background_information>
Confirm both tiers are in scope. If the user wants only one, scaffold only that tier.
Visual / E2E for UI projects (Cypress, Playwright) live in CI, not pre-push. Out of scope.
Step 1 — detect the runner. Read repo signals in this order:
- Existing runner.
.husky/→ Husky.lefthook.ymlor.lefthook.yml→ lefthook..pre-commit-config.yaml→ pre-commit..git/hooks/with non-sample scripts → native hooks. - Stack signals (if no runner present).
package.json→ recommend Husky or lefthook.pyproject.toml→ recommend pre-commit.go.mod→ recommend lefthook.Cargo.toml→ recommend lefthook. Multiple stacks → recommend lefthook (cross-language by default). - No signals. Recommend native
.git/hooks/only as fallback. Warn the user that native hooks are not portable across clones.
If multiple runners are present, surface the conflict and ask the user before scaffolding. Never silently pick.
Step 2 — recommend the per-stack commands:
- Node: lint =
npm run lintornpx eslint .; format check =npm run format:checkornpx prettier --check .; secret-scan =gitleaks detect --no-banner; build =npm run build(skip if no script); test =npm test. - Python: lint =
ruff check .; format check =ruff format --check .orblack --check .; secret-scan =gitleaks detect --no-banner; test =pytest -q. - Go: lint =
golangci-lint run; format check =gofmt -d .; secret-scan =gitleaks detect --no-banner; build =go build ./...; test =go test ./.... - Rust: lint =
cargo clippy -- -D warnings; format check =cargo fmt --check; secret-scan =gitleaks detect --no-banner; build =cargo build; test =cargo test. - Mixed / other: ask for the per-tier command list. Do not invent.
Offer to swap any default. Confirm before writing.
Step 3 — scaffold the runner config. Write the runner-specific config file:
- Husky:
.husky/pre-commitand.husky/pre-push(shell scripts) +"prepare": "husky"inpackage.json. Bootstrap:npm install. - lefthook:
lefthook.ymlat the repo root withpre-commitandpre-pushcommands keyed by stage. Bootstrap:lefthook install. - pre-commit:
.pre-commit-config.yamlwith stack-specific hook references. Bootstrap:pre-commit installandpre-commit install --hook-type pre-push. - Native:
.git/hooks/pre-commitand.git/hooks/pre-push+ asetup-hooks.shscript the user runs after every clone (since.git/is not committed).
Step 4 — update AGENTS.md Quality Gates. Append or refresh the section with: pre-commit gate list, pre-push gate list, runner name + config path, bootstrap command, CI status if known, no-bypass policy. Honor existing managed markers if ad-bootstrap already wrote Quality Gates.
Step 5 — mirror CI locally. WORKFLOW §11: "CI failure is a local gate gap." Read the CI config and compare:
- Detect CI surface in order:
.github/workflows/*.yml,.gitlab-ci.yml,.circleci/config.yml,azure-pipelines.yml,.buildkite/pipeline.yml. If none, note the gap and skip — mirror check has no target. - Extract CI commands from
run:/script:steps — test / lint / typecheck / build. Skip checkout, setup, cache, publish. - Extract CI matrix — language versions, OS runners, feature flags. These become pre-push matrix requirements when they change the failure surface.
- Diff against pre-push. For each CI command not covered locally, warn:
CI runs <cmd> — pre-push does not. Add to pre-push or CI will catch what local won't.For each matrix dimension CI covers that pre-push does not, warn:CI matrix <dim>=<values>, pre-push runs <value>. - Offer to close the gap. Propose specific edits to the runner config; ask the user before writing (matrix mirroring can be expensive).
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 78 lines · 129 tokens per session scan A 28d5a228cbf0
ad-hooks is a skill published in the GitHub repository CorridorTech/PoseCap (190 stars, last pushed 10d ago), licensed Apache-2.0. It adds 129 tokens to every session and 1,689 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…