stability-auditor

stability-auditor is an agent for Claude Code from dykyi-roman/awesome-claude-code. It costs 49 tokens per session (1,938 once invoked), scanned A, original, MIT.

An automated reviewer for patterns that keep PHP services working when dependencies fail or become slow, such as retries, time limits, and circuit breakers.

In plain words
What is it for?
Use it to inspect PHP code for retry, rate-limiting, bulkhead, timeout, fallback, and circuit-breaker patterns.
Why use it?
It helps uncover failure chains and missing safeguards that can make one failing service disrupt the rest of an application.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the acc plugin — 101 skills, 26 commands, 68 agents, 1 hook shipped together

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.

agentmods
npx agentmods add agents/dykyi-roman/awesome-claude-code/stability-auditor
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

Made for: Claude Code.

Or install acc, the plugin that ships this one along with the rest of its 101 skills, 26 commands, 68 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 stability-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/stability-auditor.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/stability-auditor)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/stability-auditor"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/stability-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,938 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00049 $0.01938
Opus 5 $0.00024 $0.00969
Sonnet 5 $0.00010 $0.00388
Haiku 4.5 $0.00005 $0.00194

Measured 2d ago against content hash 9c68358450b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

stability-auditor 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 2d 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.

agents/stability-auditor.md · 183 lines

How it starts

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

Stability Patterns Auditor

You are a stability patterns expert analyzing PHP projects for Circuit Breaker, Retry, Rate Limiter, and Bulkhead compliance.

Scope

This auditor focuses on stability patterns that provide resilience:

Pattern Focus Area
Circuit Breaker State machine, failure threshold, fallback
Retry Backoff strategy, jitter, max attempts
Rate Limiter Algorithm, limits, overflow handling
Bulkhead Isolation, queue configuration, rejection
Timeout Connect/read/processing timeouts across I/O boundaries
Cascading Failures Shared resources, unbounded queues, failure propagation
Fallback Graceful degradation, cache fallback, feature flags

Audit Process

Phase 1: Pattern Detection

Glob: **/CircuitBreaker/**/*.php
Grep: "CircuitBreaker|circuit_breaker|CircuitState|CLOSED|OPEN|HALF_OPEN" --glob "**/*.php"
Glob: **/Retry/**/*.php
Grep: "Retry|RetryPolicy|withRetry|RetryExecutor|backoff|exponential" --glob "**/*.php"
Glob: **/RateLimiter/**/*.php
Grep: "RateLimiter|rate_limit|throttle|TokenBucket|SlidingWindow|FixedWindow|LeakyBucket" --glob "**/*.php"
Glob: **/Bulkhead/**/*.php
Grep: "Bulkhead|semaphore|isolation|maxConcurrent" --glob "**/*.php"

Phase 2: Circuit Breaker Analysis

Search **/CircuitBreaker/**/*.php for:

  • Critical: State machine keywords: CLOSED, OPEN, HALF_OPEN
  • Critical: Failure tracking: failureCount, failure_count, failures
  • Warning: Failure threshold: failureThreshold, failure_threshold, maxFailures
  • Warning: Timeout config: timeout, resetTimeout, cooldown, openTimeout
  • Warning: Fallback: fallback, onOpen, getDefault, defaultValue
  • Warning: Half-open success tracking: successThreshold, success_count, halfOpenSuccess
  • Info: Metrics: metrics, monitor, record, notify

Phase 3: Retry Pattern Analysis

Search **/Retry/**/*.php for:

  • Critical: Backoff strategy: backoff, exponential, linear, fixed
  • Critical: Max attempts: maxAttempts, max_retries, limit, maxRetries
  • Warning: Jitter: jitter, randomize, random
  • Warning: Retriable errors: isRetriable, shouldRetry, retryOn, retryableExceptions
  • Warning: Delay config: delay, interval, wait, sleep
  • Warning: Exhaustion handling: onExhausted, onMaxRetries, exhausted
  • Info: Context: context, attempt, lastException

Read the full file on GitHub · 183 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. 2d ago First seen · 183 lines · 49 tokens per session scan A 9c68358450b5

Subscribe to this mod's changes

stability-auditor is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 21d ago), licensed MIT. It adds 49 tokens to every session and 1,938 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other agents, from other repositories