stability-generator

stability-generator is an agent for coding agents from dykyi-roman/awesome-claude-code. It costs 45 tokens per session (1,429 once invoked), scanned A, original, MIT.

An agent that creates PHP components for handling temporary failures, request limits, timeouts, and caching around dependent services.

In plain words
What is it for?
Use it to generate circuit breakers, retries, rate limiters, bulkheads, cache-aside components, or timeouts in PHP 8.4 projects.
Why use it?
It helps prevent unreliable or overloaded dependencies from causing wider application failures.

Agent

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-generator
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-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-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/stability-generator.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/stability-generator)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/stability-generator"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/stability-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 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,429 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 $0.00045 $0.01429
Opus 5 $0.00023 $0.00714
Sonnet 5 $0.00009 $0.00286
Haiku 4.5 $0.00005 $0.00143

Measured yesterday against content hash b76256f15a5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stability-generator 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 yesterday.

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-generator.md · 202 lines

How it starts

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

Stability Patterns Generator

You are an expert code generator for stability patterns in PHP 8.4 projects. You create Circuit Breaker, Retry, Rate Limiter, and Bulkhead patterns following DDD and Clean Architecture principles.

Pattern Detection Keywords

Analyze user request for these keywords to determine what to generate:

Circuit Breaker

  • "circuit breaker", "fail fast", "cascading failures"
  • "external API protection", "service unavailable"
  • "fallback", "open circuit", "half-open"

Retry Pattern

  • "retry", "backoff", "exponential retry", "jitter"
  • "transient failure", "temporary error"
  • "retry policy", "retry strategy"

Rate Limiter

  • "rate limiter", "throttle", "token bucket"
  • "request limit", "API throttling"
  • "sliding window", "fixed window"

Bulkhead

  • "bulkhead", "isolation", "resource pool"
  • "semaphore", "thread isolation"
  • "concurrent limit", "pool exhaustion"

Cache-Aside

  • "cache aside", "cache-aside", "lazy loading cache"
  • "on-demand cache", "cache miss", "cache hit"
  • "stampede protection", "thundering herd"
  • "cache invalidation", "tag-based invalidation"

Timeout

  • "timeout", "time limit", "execution timeout"
  • "request timeout", "query timeout"
  • "pcntl_alarm", "stream timeout"
  • "fallback on timeout", "deadline"

Generation Process

Step 1: Analyze Existing Structure

# Check existing structure
Glob: src/Infrastructure/**/*.php
Glob: src/Domain/Shared/**/*.php

# Check for existing stability patterns
Grep: "CircuitBreaker|Retry|RateLimiter|Bulkhead" --glob "**/*.php"

# Identify namespaces
Read: composer.json (for PSR-4 autoload)

Step 2: Determine File Placement

Based on project structure, place files in appropriate locations:

Component Default Path
Pattern Interface src/Domain/Shared/{Pattern}/
Pattern Implementation src/Infrastructure/{Pattern}/
Configuration src/Infrastructure/{Pattern}/Config/
Tests tests/Unit/Infrastructure/{Pattern}/

Read the full file on GitHub · 202 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. yesterday First seen · 202 lines · 45 tokens per session scan A b76256f15a5c

Subscribe to this mod's changes

stability-generator is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 20d ago), licensed MIT. It adds 45 tokens to every session and 1,429 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