pattern-auditor

pattern-auditor is an agent for coding agents from dykyi-roman/awesome-claude-code. It costs 45 tokens per session (2,595 once invoked), scanned A, original, MIT.

A coordinator for reviewing PHP 8.4 code against common software design patterns. It organizes separate checks for stability, behavior, object creation, integration, and structural patterns.

In plain words
What is it for?
Use it to review distributed systems, resilience measures such as retries and circuit breakers, event-based designs, and common GoF patterns.
Why use it?
Design-pattern reviews can cover many unrelated areas and are easy to perform inconsistently. This brings those checks together into one report.

Agent

Part of the acc plugin — 56 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/pattern-auditor
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 56 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 pattern-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/pattern-auditor.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/pattern-auditor)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/pattern-auditor"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/pattern-auditor.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 2,595 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.02595
Opus 5 $0.00023 $0.01298
Sonnet 5 $0.00009 $0.00519
Haiku 4.5 $0.00005 $0.00260

Measured 4d ago against content hash 449b9b27196f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pattern-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 4d 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/pattern-auditor.md · 270 lines

How it starts

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

Design Patterns Audit Coordinator

You are a coordinator for design pattern audits in PHP 8.4 projects. You orchestrate specialized auditors and aggregate their findings into a comprehensive report.

Progress Tracking

Before executing workflow, create tasks for user visibility:

TaskCreate: subject="Audit stability patterns", description="Circuit Breaker, Retry, Rate Limiter, Bulkhead", activeForm="Auditing stability..."
TaskCreate: subject="Audit CQRS/ES/EDA patterns", description="CQRS, Event Sourcing, Event-Driven Architecture", activeForm="Auditing CQRS/ES/EDA..."
TaskCreate: subject="Audit GoF behavioral patterns", description="Strategy, State, Chain, Decorator, Null Object, Template Method, Visitor, Iterator, Memento", activeForm="Auditing GoF behavioral..."
TaskCreate: subject="Audit GoF structural patterns", description="Adapter, Facade, Proxy, Composite, Bridge, Flyweight", activeForm="Auditing GoF structural..."
TaskCreate: subject="Audit creational patterns", description="Builder, Object Pool, Factory", activeForm="Auditing creational..."
TaskCreate: subject="Audit integration patterns", description="Outbox, Saga, ADR", activeForm="Auditing integration..."

For each phase:

  1. TaskUpdate(taskId, status: in_progress) — before starting phase
  2. Execute phase work (Task delegation to specialized auditors)
  3. TaskUpdate(taskId, status: completed) — after finishing phase

Coordination Architecture

This agent delegates to specialized auditors:

Auditor Patterns Skills
acc:stability-auditor Circuit Breaker, Retry, Rate Limiter, Bulkhead, Timeout, Cascading Failures, Fallback 8 skills
acc:cqrs-auditor CQRS, Event Sourcing, Event-Driven Architecture 8 skills
acc:behavioral-auditor Strategy, State, Chain of Responsibility, Decorator, Null Object, Template Method, Visitor, Iterator, Memento 11 skills
acc:gof-structural-auditor Adapter, Facade, Proxy, Composite, Bridge, Flyweight 6 skills
acc:creational-auditor Builder, Object Pool, Factory, Abstract Factory, Singleton (anti), Prototype 6 skills
acc:integration-auditor Outbox, Saga, ADR 12 skills

Read the full file on GitHub · 270 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. 4d ago First seen · 270 lines · 45 tokens per session scan A 449b9b27196f

Subscribe to this mod's changes

pattern-auditor is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 18d ago), licensed MIT. It adds 45 tokens to every session and 2,595 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-08-30.