Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Skobynv0.2.0MITIn 1 marketplace
Tool-contract validation + runtime reliability: a PostToolUse ledger that infers per-tool schemas and flags contract drift, plus FlakeGuard detection of non-deterministic agent failures (retries, partial failures, flaky tools).
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
contracts, reliability, tool-validation, schema-drift, flake-detection, hooks, observability, apex
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Tool-contract validation + runtime reliability: a PostToolUse ledger that infers per-tool schemas and flags contract drift, plus FlakeGuard detection of non-deterministic agent failures (retries, partial failures, flaky tools).
Trust your tools, not your luck. Watches every tool and MCP call an agent makes, infers each tool's contract, and tells you the moment that contract drifts — or a tool starts failing non-deterministically.
Ordinary tests and linters check your source code. They say nothing about the live tool-call traffic an agent produces at runtime — which is exactly where two of the most expensive, hardest-to-reproduce failures hide:
tool-contract-check)flake-guard)apex-contracts-reliability captures both from real traffic — zero config, no source instrumentation, no MCP server of its own.
A single capture-tool-io.sh hook is bound to PreToolUse and PostToolUse for
every tool ("*"). On each call it appends one record — the shape of the
input (and output), never the raw values — to a local JSONL ledger at
.claude/contracts-reliability/ledger.jsonl. Two analyses run over that ledger:
| Feature | Lens | Surfaces |
|---|---|---|
F1 ToolContractCheck (tool-contract-check skill) | shape | Per-tool inferred schema (first call = baseline) and any later call that adds a field, drops a field, or changes a type — flagged as CONTRACT DRIFT. |
F2 FlakeGuard (flake-guard skill) | success/failure | Per-tool failure rate, retry runs (repeated identical calls), and flip-flops (same call succeeds then fails) — flagged as FLAKY. |
Render either report with /apex-contracts-reliability:reliability-report
(reliability by default, drift, or all), or run the analyzer directly. It
exits 3 when drift or flakiness is found, so it can gate a loop or CI step.
The capture hook is observational only — it never decides a tool call: it
exits 0 and prints nothing (no permissionDecision, never allow), even on
error, so it is safe to leave installed everywhere. Claude Code composes hooks
from all plugins in parallel and deny-first; only apex-guardrails and
apex-dispatch vote (apex-dev-harness's apex-app hook may also deny). Each record carries the call's tool_use_id, which joins its
PreToolUse and PostToolUse records (and other ledgers keyed on the same id).
# From the Apex marketplace
/plugin marketplace add Skobyn/Apex-Dev-Skills
/plugin install apex-contracts-reliability@apex-dev-skills
# …or test locally against this repo
claude --plugin-dir ./plugins/apex-contracts-reliability
Then /reload-plugins (or restart Claude Code) to activate. The hook starts
recording on the next tool call; invoke a few tools, then run the report.
# Let an agent run normally for a bit (the hook records every tool call), then:
# FlakeGuard reliability report
/apex-contracts-reliability:reliability-report
# Contract-drift report
/apex-contracts-reliability:reliability-report drift
# Or call the engine directly (exits 3 on drift/flakiness, 0 when clean)
bash plugins/apex-contracts-reliability/scripts/analyze-ledger.sh reliability
bash plugins/apex-contracts-reliability/scripts/analyze-ledger.sh drift --json
| Surface | Name | Trigger |
|---|---|---|
| Skill | tool-contract-check | A tool's call shape changed (new/missing field, type flip); reviewing contract drift |
| Skill | flake-guard | Intermittent tool failures, retries, or success-then-failure; reviewing reliability |
| Command | /apex-contracts-reliability:reliability-report [drift|all] | Render the report from the captured ledger |
| Hook | capture-tool-io.sh (PreToolUse + PostToolUse, "*") | Records every tool call's shape to the JSONL ledger |
PreToolUse /
PostToolUse events and ${CLAUDE_PLUGIN_ROOT} / ${CLAUDE_PROJECT_DIR}
substitution).allowed-tools in the skills and
command are an explicit, wildcard-free list (Bash, Read, Grep, Glob).npx claudepluginhub skobyn/apex-dev-skills --plugin apex-contracts-reliabilityPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.