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.
npx agentmods add skills/facturascripts/fs-claude-plugin/php-expertnpx skills add FacturaScripts/fs-claude-plugin --skill php-expertgit clone --depth 1 https://github.com/FacturaScripts/fs-claude-pluginWhat 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 | $0.00109 | $0.01157 |
| Opus 5 | $0.00055 | $0.00579 |
| Sonnet 5 | $0.00022 | $0.00231 |
| Haiku 4.5 | $0.00011 | $0.00116 |
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 2d 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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: php-expert — Especialista en PHP para FacturaScripts
Esta skill conecta las tareas de código PHP del usuario con el agente php-expert,
que domina los patrones PHP específicos de FacturaScripts: la clase Tools, el sistema de
Closures para extensiones, Init.php, namespaces Dinamic/Core/Plugins, PSR-12 y tipado.
Por qué usar el agente
El agente php-expert conoce las convenciones PHP propias de FacturaScripts que difieren
significativamente de Laravel o Symfony: las propiedades de modelos usan @var docblocks en
vez de typed properties, las extensiones usan Closures (no interfaces), $this dentro de un
Closure se refiere al objeto original, la clase Tools reemplaza muchas funciones nativas PHP,
y el patrón Init.php tiene sus propias reglas. Responder sin el agente introduce riesgo de
aplicar convenciones PHP genéricas que rompen el framework.
Cómo invocar el agente
Usa el agente php-expert pasándole la tarea del usuario:
Agente: php-expert
Tarea: [descripción exacta de lo que necesita el usuario]
El agente:
- Consulta la documentación en
./agents/docs/(la-clase-tools, profundizando-en-el-core, el-archivo-init-php, gestion-de-errores) - Analiza el código existente del plugin para detectar patrones y problemas
- Implementa o refactoriza el código siguiendo las convenciones de FacturaScripts
- Verifica calidad con PHPStan y CS-Check
Convenciones de estilo obligatorias
Estas reglas se aplican SIEMPRE al escribir o refactorizar código PHP en FacturaScripts:
1. Comentarios en español
- Todos los comentarios del código (inline, bloques y docblocks) se escriben en español.
- Documenta siempre que sea posible y tenga sentido: describe el propósito de clases, métodos, propiedades y bloques de lógica compleja.
- Los nombres de clases, métodos y variables siguen en inglés o en el idioma del framework, pero la documentación siempre va en español.
2. Ordenación de propiedades (variables de clase)
Dos grupos, en este orden:
- Grupo 1 — public: ordenadas alfabéticamente (A → Z).
- Grupo 2 — protected/private: juntas en un mismo bloque, ordenadas alfabéticamente (A → Z).
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.
- 2d ago First seen · 118 lines · 109 tokens per session scan A 0268e7d98c43
php-expert is a skill published in the GitHub repository FacturaScripts/fs-claude-plugin (8 stars, last pushed 2mo ago), licensed MIT. It adds 109 tokens to every session and 1,157 once invoked, about $0.0005 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-31.
Other skills, from other repositories
laravel-actions
Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.
laravel-specialist
Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization…
routes
Generate route configuration for CatchAdmin module.
create-powergrid-plugin
Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.
create-module
Scaffold a new Marko module — a self-contained Composer package with composer.json, namespaced src/, and Pest tests. Use this skill whenever the user asks to create, add, or scaffold a new Marko module or package. Concrete triggers: 'create a module named payment', 'scaffold an acme/blog package', 'add a new module…