Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add yurukusa/claude-code-hooks/plugin install claude-code-hooksWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yurukusa/claude-code-hooks/diagnose)<a href="https://agentmods.dev/skills/yurukusa/claude-code-hooks/diagnose"><img src="https://agentmods.dev/badge/skills/yurukusa/claude-code-hooks/diagnose.svg" alt="Measured on agentmods" height="20"></a>What 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.1 | $0.00026 | $0.00435 |
| Opus 5 | $0.00013 | $0.00217 |
| Sonnet 5 | $0.00005 | $0.00087 |
| Haiku 4.5 | $0.00003 | $0.00044 |
Grade B, and why
diagnose scanned grade B with 1 finding 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 6d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Check `~/.claude/settings.json` for hook entries What it actually says
Diagnose Claude Code Hooks
Run a diagnostic check on the user's Claude Code hooks setup.
Checks to perform
-
Hook files exist and are executable
for hook in context-monitor.sh syntax-check.sh activity-logger.sh branch-guard.sh decision-warn.sh cdp-safety-check.sh error-gate.sh no-ask-human.sh proof-log-session.sh session-start-marker.sh; do if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/$hook" ]; then if [ -x "${CLAUDE_PLUGIN_ROOT}/hooks/$hook" ]; then echo "OK: $hook (executable)" else echo "WARN: $hook exists but not executable" fi else echo "MISSING: $hook" fi done -
Dependencies available
jq— required by most hookspython3— required by activity-logger, proof-log, context-monitornode— optional, for JS syntax checking
-
Environment variables
- Check if CC_ACTIVITY_LOG, CC_PROOF_LOG_DIR, CC_CONTEXT_MISSION_FILE are set
- Report defaults if not set
-
Settings.json integration
- Check
~/.claude/settings.jsonfor hook entries - Report which hooks are wired and which are missing
- Check
-
Recent activity
- Check if activity log exists and has recent entries
- Check if proof-log directory has recent session logs
Output format
Present results as a health report:
=== Claude Code Hooks Health Check ===
Hooks: 8/10 active
Deps: jq ✓ python3 ✓ node ✓
Env: 3/5 configured
Activity: Last entry 2h ago
Overall: HEALTHY (2 warnings)
List any warnings or errors with actionable fix instructions.
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.
- 6d ago First seen · 57 lines · 26 tokens per session scan B dae4936547c3
diagnose is a skill published in the GitHub repository yurukusa/claude-code-hooks (19 stars, last pushed 7d ago), licensed MIT. It adds 26 tokens to every session and 435 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
complexity
Satisfy cyclomatic lint; never disable. Use when lint is red or the user asks for simpler code.
debugging
Evidence-first debug for unknown or intermittent bugs. Use when the cause is unknown or the user asks to diagnose.
claw-admin
Claw system administration: service management, IM connections, logs, cron, and workspace diagnostics. Use when the user asks to manage claw services, connect/disconnect IM platforms, view logs, or perform system-wide operations.
optimize
Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance.
logging-and-error-reporting
How and when to log (log:: levels, safe macros) and report errors to Sentry (reporterror!) in the Warp codebase. Use when adding or reviewing any logging or error reporting — picking a log level, deciding log vs. reporterror!, keeping sensitive data out of logs, or surfacing an error to Sentry.
triage-issue-local
Repo-specific triage guidance for warp. Only the categories declared overridable by the core triage-issue skill may be specialized here.