hook-audit
Analyze hook effectiveness and session telemetry. Use when auditing hook latency, violations, zero-fire rules, severity, manifest drift, skill firing, session trends, or retrospectives.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- hook-audit
- description
- Analyze hook effectiveness and session telemetry. Use when auditing hook latency, violations, zero-fire rules, severity, manifest drift, skill firing, session trends, or retrospectives.
02 资源文件 1
- 参考文档REFERENCE.md5.0 KB
03 SKILL.md 正文
Repeated corrections/skill improvements: read Poteto.
Audit ~/.claude/hook-metrics/ per REFERENCE.md.
Modes: default/--hooks activity; --retro adds flow/environment; --all also adds latency, skill firing and drift.
Flow
- Inventory hooks/date range; separate evals from real runs. Cohort by harness version/model; split or exclude mixed-model sessions using
model-switches.jsonl. - Aggregate blocks, warnings, nudges, denials, sessions, trend; compute P50/P95 and wall time when requested.
- Compare scripts, observed keys, and enforcement; distinguish true zero-fire candidates, untested hooks, and advisory rules.
- Retro: follow Session-environment retrospective; add available retro metrics. Missing telemetry does not block transcript findings.
- All: inspect
skill-fires.jsonl; runbash scripts/generate-hook-configs.sh --check. - Model-switch policy: use
/quantify-impact; success/rework is primary, cache-write cost a guardrail. - Rank at most five actions by telemetry/session impact. Recommend only unless edits were requested.
Before deletion, shadow via HOOK_SHADOW_RULES in a representative, version-qualified trial; compare outcomes/violations. Never shadow strict safety/permission.
Done
Report metrics/values, sample size, 7-day trend, next action; name gaps. Below five comparable real sessions is preliminary. Cite source files and exact harness_version + model cohort for prune/severity changes.
04 同仓库更多 Skills
hill-climb
Optimize a defined outcome through bounded evaluation loops. Use for hill-climb requests or repeated improvement against an executable eval, benchmark, or visual comparison; not a one-pass review.
gestures
Build or fix web drag, swipe, sheet, reorder, and hold interactions: direct tracking, rubber banding, release velocity, momentum, snap points, and interruption. Not native React Native or Swift.
hill-climb
Optimize a defined outcome through bounded evaluation loops. Use for hill-climb requests or repeated improvement against an executable eval, benchmark, or visual comparison; not a one-pass review.
gestures
Build or fix web drag, swipe, sheet, reorder, and hold interactions: direct tracking, rubber banding, release velocity, momentum, snap points, and interruption. Not native React Native or Swift.
improve-animations
Audit existing web UI motion and prioritize concrete improvements or self-contained implementation plans. Use for a motion roadmap; animate owns implementation and diff review.
effect-ts
Use when setting up a repository that uses the Effect TypeScript library.