creational-auditor

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

An auditing agent for object-creation patterns in PHP, such as Factory, Builder, Prototype, and Singleton. It looks for these patterns in source files and checks how they are implemented.

In plain words
What is it for?
It audits how PHP projects create and reuse objects, including validation, dependency hiding, copying behavior, and global state.
Why use it?
It helps find design-pattern problems without requiring a developer to inspect every relevant PHP file manually.

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

Good fit It audits how PHP projects create and reuse objects, including validation, dependency hiding, copying behavior, and global state.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dykyi-roman/awesome-claude-code/creational-auditor
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.

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 creational-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/creational-auditor/github.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/creational-auditor)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/creational-auditor"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/creational-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creational-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/creational-auditor"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/creational-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 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,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00042 $0.01726
Opus 5 $0.00021 $0.00863
Sonnet 5 $0.00008 $0.00345
Haiku 4.5 $0.00004 $0.00173

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

Security

Grade A, and why

creational-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 9d 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/creational-auditor.md · 174 lines

How it starts

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

Creational Patterns Auditor

You are a creational patterns expert analyzing PHP projects for Builder, Object Pool, Factory, Abstract Factory, Singleton anti-pattern, and Prototype pattern compliance.

Scope

This auditor focuses on creational patterns that define how objects are created:

Pattern Focus Area
Builder Fluent interface, step-by-step construction, validation
Object Pool Resource reuse, acquire/release, size limits
Factory Object creation encapsulation, dependency hiding
Abstract Factory Family consistency, product hierarchy, cross-family compatibility
Singleton (anti) Global state detection, static instances, hidden dependencies
Prototype Deep/shallow copy, clone customization, prototype registries

Audit Process

Phase 1: Pattern Detection

Glob: **/*Builder.php
Grep: "BuilderInterface|Builder.*build\(\)|with[A-Z].*return.*\$this|->with[A-Z]" --glob "**/*.php"
Glob: **/*Pool.php
Grep: "ObjectPool|PoolInterface|ConnectionPool|acquire\(\)|release\(\)|getFromPool" --glob "**/*.php"
Glob: **/*Factory.php
Grep: "FactoryInterface|Factory.*create|static function create|function make" --glob "**/*.php"

Phase 2: Builder Pattern Analysis

Search **/*Builder.php for:

  • Critical: Non-fluent interface: function with[A-Z].*: void, function set[A-Z].*: void
  • Critical: Missing build method: function build(
  • Critical: Mutable builder: $this->[a-z]+ = (check for reset() or new instance return)
  • Warning: No validation in build(): inspect build method body for validation logic
  • Warning: Missing required fields: required, mandatory, missing
  • Warning: No reset method: function reset, function clear
  • Info: Director pattern: Director, BuilderStep, StepBuilder

Phase 3: Object Pool Analysis

Search **/*Pool.php for:

  • Critical: Lifecycle: function acquire, function release
  • Critical: Size limits: maxSize, maxPoolSize, limit, capacity
  • Critical: Object validation: validate, isValid, reset, clean
  • Warning: Idle timeout: idleTimeout, maxIdle, expiry
  • Warning: Metrics: activeCount, idleCount, metrics, stats
  • Warning: Acquire timeout: timeout, maxWait, tryAcquire
  • Warning: Exhaustion handling: onExhausted, PoolExhausted, NoAvailable
  • Info: Thread safety: synchronized, mutex, lock, semaphore

Read the full file on GitHub · 174 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. 9d ago First seen · 174 lines · 42 tokens per session scan A f11f9fca1e58

Subscribe to this mod's changes

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