/soundcheck:contract-reviewfrom soundcheck
Audits API contracts for mismatches between caller assumptions and implementation guarantees. Designed for nightly CI, pre-release scans, or manual deep audits. Surfaces bugs missed by single-pass OWASP review.
Ships in soundcheck. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bugs that only resolve across both sides of a contract — a helper
whose body guarantees less than callers assume. security-review
pattern-matches 45 OWASP/LLM categories; this exists for what that
misses. Nightly CI or manual audits; not per-PR.
Deliberately none. Pattern lists bias the search; contract-audit
uses one open question per hotspot — what does the caller assume
that the body doesn't enforce? — and the orchestrator does not
inspect code.
Use the Agent tool to dispatch subagents. Don't audit yourself. Keep state in conversation memory; don't write files.
Dispatch one threat-modeling subagent. Keep its JSON in
conversation context; thread it into every later subagent.
Dispatch one hotspot-mapping subagent with the threat model
JSON. It scans the whole repo and returns a list of
{file, lines, name, category, priority, why} entries —
interesting functions to audit. Keep that list in conversation
memory.
Track two things in conversation memory:
probed: a mapping from hotspot key to the count of prior roundsrefuted[hotspot]: per-hotspot list of REFUTED (impl, caller, gap) triples from prior roundsWhile stop conditions not met:
probed
(ties: order in the seed list).contract-audit subagent with the threat model
JSON, Hotspot:, Why:, Round:, and the refuted[hotspot]
block. The threat model informs reachability of the caller path
(untrusted-input-reachable → real severity; trusted-only → Low).<soundcheck-contract> trailer. Append every
VERIFIED hypothesis to an in-memory findings list, copying
every field verbatim (including guards_traced and any other
fields the auditor emitted), and adding hotspot_key and
round annotations. Append every REFUTED to refuted[hotspot].probed[hotspot].Stop conditions (in priority order):
rounds_done >= max_roundsmax_hoursstagnation_limitreason: exhausted onceOutput is a human-readable Markdown report. Emit in this order:
# Contract Review heading.| Severity | Impl | Caller | Gap | Trigger |. Zero findings:
skip the table; write No contract gaps found across N hotspots, R rounds.### <Severity>: <impl> ↔ <caller>
heading each, then gap, trigger, and a short guards_traced
summary as prose. This is what reviewers actually read.N findings across M hotspots, R rounds (stopped: <reason>).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thejefflarson/soundcheck --plugin soundcheck52 skills in this plugin
/authentication-failuresDetects weak password storage, flawed JWT validation, sessions surviving logout, and missing MFA in authentication code. Use when writing login flows, session management, password storage, JWT handling, MFA implementation, credential validation, or any code that authenticates users. Also invoke when implementing "remember me" functionality or API key management./broken-access-controlDetects missing ownership checks, broken role enforcement, and IDOR vulnerabilities that let users access other users' resources. Use when writing code that checks authorization, enforces resource ownership, handles IDOR (object-level authorization), processes server-side requests to external URLs, or implements access control middleware./concurrency-correctnessDetects multi-threaded code where a lock is held across a blocking operation, lock acquisition order risks deadlock, lock-free atomics use the wrong memory ordering, or double-checked locking is missing the necessary barrier. Use when writing or modifying code that acquires multiple locks, uses atomic operations with explicit memory orders (std::memory_order_*, atomic.LoadAcquire, Ordering::Relaxed), implements lazy initialization with double-checked locking, or calls a blocking operation (I/O, sleep, await, blocking channel send) inside a locked region./cryptographic-failuresDetects weak or broken cryptography that lets attackers recover plaintext passwords, forge tokens, or decrypt sensitive data. Use when writing code that encrypts or decrypts data, hashes passwords or tokens, generates random values for security purposes, manages cryptographic keys, or configures TLS/SSL settings. Also invoke when storing sensitive data at rest./crypto-library-misuseDetects library-internal cryptographic correctness bugs that pattern matchers and crypto-failures skills miss — AEAD nonce reuse, ECDSA k-value reuse, length-extension on bare hashes, padding-oracle exception distinguishability, and branching on secret material. Use when writing code that calls a crypto primitive directly (AEAD encrypt/decrypt, ECDSA/DSA sign, raw hash, RSA decrypt). Distinct from cryptographic-failures, which covers application-layer choices like MD5 for passwords; this skill is about how primitives are wired up./csrfDetects forms and state-changing endpoints missing CSRF protection. Use when writing HTML forms that submit POST/PUT/DELETE requests, configuring session cookies, or setting up CSRF middleware for web applications. Also invoke when disabling or bypassing CSRF protections in framework configuration.Other plugins' skills for the same job