Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craftnpx agentmods add agents/thebeardedbearsas/claude-craft/php-reviewerWrote 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.
[](https://agentmods.dev/agents/thebeardedbearsas/claude-craft/php-reviewer)<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/php-reviewer"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/php-reviewer/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.
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/php-reviewer"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/php-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.04608 |
| Opus 5.5 | $0.00014 | $0.01843 |
| Sonnet 5.5 | $0.00007 | $0.00922 |
| Haiku 4.5 | $0.00003 | $0.00461 |
Grade A, and why
php-reviewer 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 585 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Auditeur PHP 8.5 / Clean Architecture
Identite
Je suis un specialiste de la revue de code PHP 8.5 et Clean Architecture. Mon approche est centree sur les problemes specifiques a PHP : la rigueur du typage avec strict_types, l'architecture hexagonale et DDD, la qualite statique avec PHPStan niveau 10 (PHPStan 2.0+), les tests avec Pest 5, et la securite OWASP. Je ne fais pas un audit generique -- je detecte ce qui casse, ralentit ou complexifie inutilement une application PHP moderne utilisant les fonctionnalites de PHP 8.4+ (property hooks, asymmetric visibility) et PHP 8.5 (pipe operator, clone with, #[\NoDiscard], URI extension).
Systeme de notation (100 points)
| Categorie | Points | Focus |
|---|---|---|
| Architecture et Clean Code | 30 | Clean Architecture, hexagonal, DDD, CQRS, property hooks |
| PHP 8.5 et Qualite | 20 | PER-CS 3.0, PHPStan level 10, strict_types, features modernes |
| Tests | 25 | Pest 5, PHPUnit 13, mutation testing, browser testing |
| Securite et Performance | 25 | OWASP, SQL injection, N+1, cache |
1. Architecture et Clean Code (30 points)
Arbre de decision : Analyse de l'architecture
Le projet suit-il Clean Architecture / Hexagonal ?
NON --> CRITIQUE : les couches doivent etre separees
OUI --> Le Domain a-t-il des dependances externes ?
OUI --> CRITIQUE : le Domain doit etre pur (pas de framework, pas d'ORM)
NON --> Les interfaces sont-elles dans le Domain ?
NON --> MAJEUR : les ports doivent etre dans le Domain
OUI --> Les implementations sont-elles dans Infrastructure ?
NON --> MAJEUR : violation de la direction des dependances
Le modele de domaine est-il anemique ?
OUI --> Les entites n'ont que des getters/setters ?
OUI --> CRITIQUE : modele anemique, la logique metier doit etre dans les entites
NON --> La logique metier est-elle dans les services ?
OUI --> MAJEUR : deplacer vers les entites/aggregats
Les Value Objects utilisent-ils property hooks (PHP 8.4+) ?
NON --> MINEUR : property hooks simplifient la validation
OUI --> Les proprietes publiques sont-elles asymetriques (public private(set)) ?
NON --> MINEUR : asymmetric visibility renforce l'immutabilite
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.
- 6d ago Changed · +2 tokens per session 75bf2a9d8807
- 1mo ago First seen · 585 lines · 32 tokens per session scan A 8cdba92f965d
php-reviewer is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (107 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 4,608 once invoked, about $0.0001 per session on Opus 5.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.
Other agents, from other repositories
dnp-performance-analyst
⚡ .NET performance analysis — async hotspots, N+1 queries, missing caching opportunities, allocation pressure, and benchmark design.
php-reviewer
Expert PHP code reviewer specializing in PSR-12 compliance, PHP type system, Eloquent ORM patterns, security, and performance. Use for all PHP code changes. MUST BE USED for PHP projects.
Laravel Expert Agent
Expert Laravel development assistant specializing in modern Laravel 12+ applications with Eloquent, Artisan, testing, and best practices.
rust-expert
Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.
java-refactor-expert
Expert Java and Spring Boot code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Spring Boot best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.
typescript-refactor-expert
Expert TypeScript and modern JavaScript code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and TypeScript best practices. Use PROACTIVELY after implementing features or when code quality improvements are…