inspect

inspect is a skill for Claude Code from jun0-ds/sonmat. It costs 50 tokens per session (2,448 once invoked), scanned A, original, BSD-3-Clause.

A one-time deeper review triggered by a discovery that could affect other code, such as editing shared code or changing authentication. It checks related files, assumptions, side effects, test coverage, and possible rollback concerns.

In plain words
What is it for?
Reviewing changes to shared utilities, infrastructure, authentication, migrations, or other work with a wider impact. You can also run it manually for the current change.
Why use it?
A change can work in its own file while breaking code that depends on it. This review expands attention only when the change reveals a reason to investigate further.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the sonmat plugin — 6 skills, 3 agents, 1 hook shipped together

Good fit Reviewing changes to shared utilities, infrastructure, authentication, migrations, or other work with a wider impact. You can also run it manually for the current change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jun0-ds/sonmat/inspect
Install

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.

Any agent
npx skills add jun0-ds/sonmat --skill inspect
Clone the repo
git clone --depth 1 https://github.com/jun0-ds/sonmat

Made for: Claude Code.

Or install sonmat, the plugin that ships this one along with the rest of its 6 skills, 3 agents, 1 hook.

Wrote 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.

agentmods badge for inspect

README.md
[![agentmods](https://agentmods.dev/badge/skills/jun0-ds/sonmat/inspect/github.svg)](https://agentmods.dev/skills/jun0-ds/sonmat/inspect)
Your own site
<a href="https://agentmods.dev/skills/jun0-ds/sonmat/inspect"><img src="https://agentmods.dev/badge/skills/jun0-ds/sonmat/inspect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for inspect

Your own site · 80×15
<a href="https://agentmods.dev/skills/jun0-ds/sonmat/inspect"><img src="https://agentmods.dev/badge/skills/jun0-ds/sonmat/inspect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02448
Opus 5.5 $0.00020 $0.00979
Sonnet 5.5 $0.00010 $0.00490
Haiku 4.5 $0.00005 $0.00245

Measured 2mo ago against content hash 8786c04530f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

inspect 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 2mo 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.

skills/inspect/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Inspect — Discovery-Led Depth

Inspect is not a mode. It is a set of checks that fire in response to a specific discovery. The discovery-led principle: active discovery pulls depth in, not the other way around — depth is not a dial you turn up before knowing what you are looking at.

When a System 1 signal (see Triggers below) surfaces, inspect pulls System 2 checks scoped to that specific signal. One discovery → depth on that discovery → checks resolve → back to default operation. No "inspect on / inspect off" state.

Manual invocation (/inspect) is still available when the user wants to force a depth pass without waiting for an auto-detected trigger — but even then, it runs once for the current change and exits.


What inspect does when triggered

Scope of a single depth pass

Default operation Depth pass fires
Changed files only Changed files + direct dependents
Tests pass? Tests pass + are tests covering the right cases?
Does it work? Does it work + what could it break?

The depth scope is bounded by the trigger. A "shared utility edit" trigger pulls depth into its dependents; it does not turn on "inspect mode" for the rest of the session.

Additional checks (on top of guard)

Four check types. A depth pass does not run all four by default — which check fires is determined by the trigger. Running all four regardless of trigger would violate the discovery-led principle (depth chosen without a specific discovery).

  1. Dependency trace: For each modified function/module, list callers and downstream consumers. Flag any that might behave differently.
  2. Side effect scan: State changes (DB writes, file writes, env mutations, global state) — are they intended? Are they reversible?
  3. Assumption audit: What does this code assume about its inputs, environment, or execution order? Are those assumptions documented or tested?
  4. Rollback viability: If this change goes wrong in production, how do you undo it? Is there a migration, a flag, a revert path?

Read the full file on GitHub · 168 lines

Changes

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.

  1. 2mo ago First seen · 168 lines · 50 tokens per session scan A 8786c04530f6

Subscribe to this mod's changes

inspect is a skill published in the GitHub repository jun0-ds/sonmat (6 stars, last pushed 19d ago), licensed BSD-3-Clause. It adds 50 tokens to every session and 2,448 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other skills, from other repositories

monitoring-observability

OpenTelemetry, structured logging, distributed tracing, alerting, and dashboards. Use when instrumenting services, designing logs/traces/metrics, defining SLOs and alerts, or debugging production behavior from telemetry.

travisjneuman/.claude · 48 tokens

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

windows-ops

Comprehensive Windows workstation operations - diagnose slow boot, failing drives, BSOD crashes, startup bloat, runaway processes, event logs. Use for: Windows is slow, slow bootup, won't boot, blue screen, BSOD, kernel crash, drive failing, SMART errors, disk errors, Event 41, Event 129, storahci reset, BugCheck…

0xDarkMatter/claude-mods · 233 tokens

debug-ops

Systematic debugging methodology, language-specific debuggers, and common scenario playbooks. Use for: debug, debugging, bug, crash, hang, memory leak, race condition, deadlock, bisect, reproduce, root cause, breakpoint, profiling, performance issue, segfault, stack trace, core dump.

0xDarkMatter/claude-mods · 67 tokens

log-ops

Log analysis and JSONL processing - structured extraction, cross-log correlation, timeline reconstruction, pattern search.

0xDarkMatter/claude-mods · 23 tokens

net-ops

Cross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect)…

0xDarkMatter/claude-mods · 175 tokens