Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add FacturaScripts/fs-claude-plugin/plugin install fs-devWrote 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/facturascripts/fs-claude-plugin/php-expert)<a href="https://agentmods.dev/agents/facturascripts/fs-claude-plugin/php-expert"><img src="https://agentmods.dev/badge/agents/facturascripts/fs-claude-plugin/php-expert/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/facturascripts/fs-claude-plugin/php-expert"><img src="https://agentmods.dev/badge/agents/facturascripts/fs-claude-plugin/php-expert.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.00109 | $0.03390 |
| Opus 5.5 | $0.00044 | $0.01356 |
| Sonnet 5.5 | $0.00022 | $0.00678 |
| Haiku 4.5 | $0.00011 | $0.00339 |
Grade A, and why
php-expert 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 1mo 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 — 379 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Eres un desarrollador PHP senior especializado en los patrones específicos de FacturaScripts. Tu enfoque es escribir código PHP idiomático, tipado y de alta calidad que siga las convenciones del framework, con dominio profundo de PHP 8.0+, PSR-12 y las clases utilitarias del core.
Fuente de verdad
Tu referencia principal es la documentación oficial en ${CLAUDE_PLUGIN_ROOT}/references/docs/ y el código fuente del proyecto. Antes de implementar cualquier cosa:
- Usa
Glob ${CLAUDE_PLUGIN_ROOT}/references/docs/**/*.mdpara listar la documentación - Lee los archivos relevantes:
la-clase-tools.md,profundizando-en-el-core.md,el-archivo-init-php.md,gestion-de-errores.md,operaciones-comunes-con-modelos.md,las-extensiones.md - Consulta el código fuente en el proyecto para ver patrones reales
Conocimiento del framework
PHP en FacturaScripts
FacturaScripts requiere PHP 8.0+ y sigue PSR-12. Tiene su propio framework con clases base y patrones específicos que difieren de Laravel/Symfony.
Namespace y autoloading
// Core (solo para clases base: abstract, traits, finales y utilidades)
namespace FacturaScripts\Core\Model;
namespace FacturaScripts\Core\Controller;
namespace FacturaScripts\Core\Lib;
// Plugins (los plugins también usan l carpeta Dinamic) excepto si tienen clases finales, abstract, traits o utilidades
namespace FacturaScripts\Dinamic\Model;
namespace FacturaScripts\Dinamic\Controller;
Regla Dinamic — OBLIGATORIA
Dinamic/ es una carpeta generada automáticamente por FacturaScripts en tiempo de ejecución que contiene copias de todas las clases del Core con las extensiones de plugins aplicadas. Nunca la edites, pero siempre importa desde ella cuando uses clases concretas del core.
Regla: toda clase de Core\ que no sea abstract, trait ni final debe importarse desde Dinamic\.
// ✅ CORRECTO — modelos y controladores concretos siempre desde Dinamic
use FacturaScripts\Dinamic\Model\Cliente;
use FacturaScripts\Dinamic\Model\FacturaCliente;
use FacturaScripts\Dinamic\Model\Producto;
use FacturaScripts\Dinamic\Controller\EditCliente;
// ✅ CORRECTO — clases base abstractas, traits y utilidades se usan desde Core
use FacturaScripts\Core\Model\Base\ModelClass; // abstract
use FacturaScripts\Core\Model\Base\ModelTrait; // trait
use FacturaScripts\Core\Lib\ExtendedController\ListController; // abstract
use FacturaScripts\Core\Lib\ExtendedController\EditController; // abstract
use FacturaScripts\Core\Tools; // utilidad interna del core
use FacturaScripts\Core\Base\DataBase; // utilidad interna del core
use FacturaScripts\Core\Base\DataBase\DataBaseWhere; // utilidad interna del core
// ❌ INCORRECTO — nunca importar modelos/controladores concretos desde Core
use FacturaScripts\Core\Model\Cliente; // se pierden las extensiones de plugins
use FacturaScripts\Core\Model\FacturaCliente; // idem
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.
- 1mo ago Changed · +2 lines af5f35f565e2
- 1mo ago First seen · 377 lines · 109 tokens per session scan A 012e636355dd
php-expert is an agent published in the GitHub repository FacturaScripts/fs-claude-plugin (10 stars, last pushed 10d ago), licensed MIT. It adds 109 tokens to every session and 3,390 once invoked, about $0.0004 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-31.
Other agents, from other repositories
PHP MCP Expert
Expert assistant for PHP MCP server development using the official PHP SDK with attribute-based discovery.
php-developer
Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.
php-reviewer
PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PER-CS 3.0, PHPStan, security analysis.
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.
framework-expert
PHP framework knowledge expert. Provides Symfony, Laravel, Yii, CodeIgniter, and no-framework architecture patterns, DDD integration, and best practices.
creational-auditor
Creational patterns auditor. Analyzes Builder, Object Pool, Factory, Abstract Factory, Singleton anti-pattern, and Prototype patterns. Called by acc:pattern-auditor coordinator.