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/FacturaScripts/fs-claude-pluginnpx agentmods add skills/facturascripts/fs-claude-plugin/depurar-y-testearWrote 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/skills/facturascripts/fs-claude-plugin/depurar-y-testear)<a href="https://agentmods.dev/skills/facturascripts/fs-claude-plugin/depurar-y-testear"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/depurar-y-testear/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/skills/facturascripts/fs-claude-plugin/depurar-y-testear"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/depurar-y-testear.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00036 | $0.01916 |
| Opus 5.5 | $0.00014 | $0.00766 |
| Sonnet 5.5 | $0.00007 | $0.00383 |
| Haiku 4.5 | $0.00004 | $0.00192 |
Grade A, and why
depurar-y-testear 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 11d 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 — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Depurar y testear en FacturaScripts
La documentación de referencia está en ../../references/docs/, relativa a este archivo: testeo-de-plugins.md, anadir-una-github-action-para-ejecutar-los-tests-unitarios.md, mostrar-mensajes-errores-y-alertas.md, gestion-de-errores.md, profundizando-en-el-core.md y test-625.md. Sus ejemplos contienen entidades HTML (<, '…): decodifícalas antes de reutilizarlos.
Activar el modo debug
Editar config.php en la raíz de FacturaScripts:
define('FS_DEBUG', true);
Esto activa la barra de debug en la parte inferior derecha, con las consultas, los mensajes del log y los temporizadores del Kernel.
Mostrar mensajes y errores
use FacturaScripts\Core\Tools;
// mensajes que se muestran al usuario en la interfaz (canal master por defecto)
Tools::log()->notice('record-updated-correctly');
Tools::log()->warning('access-denied');
Tools::log()->error('record-save-error');
// error con parámetros de traducción
Tools::log()->error('field-value-too-long', ['%field%' => 'nombre']);
// otros niveles
Tools::log()->info('Mensaje informativo');
Tools::log()->critical('Error grave');
Tools::log()->debug('Solo visible en la barra de debug');
// canal propio: se guarda en el historial de logs
Tools::log('mi-plugin')->info('Acción completada');
Desde JavaScript, la función setToast(mensaje, estilo, título, duración) muestra un aviso en la vista.
Ver logs
Los logs antiguos se consultan en Administrador > Logs:
- En el canal
mastersolo se guardan los errores y los mensajes críticos. - En los demás canales se guardan todos los mensajes salvo los de
debug(); los días de retención se configuran en el Panel de control.
Medir tiempos de ejecución
use FacturaScripts\Core\Kernel;
Kernel::startTimer('mi-prueba');
// código a medir
$total = Kernel::stopTimer('mi-prueba'); // segundos
Con el modo debug activo, los temporizadores aparecen en la barra de debug.
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.
- 11d ago Changed · +8 lines 7b878f1ea7d9
- 1mo ago Changed · +57 lines · +6 tokens per session 3a544f2981f7
- 3mo ago First seen · 128 lines · 30 tokens per session scan A 0087a2362601
depurar-y-testear is a skill published in the GitHub repository FacturaScripts/fs-claude-plugin (11 stars, last pushed 8d ago), licensed MIT. It adds 36 tokens to every session and 1,916 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-31.
depurar-y-testear compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| depurar-y-testearFacturaScripts/fs-claude-plugin | Skill | 11 | 8d ago | MIT | A | 36 | Claude Code |
| testinggarrytan/gbrain | Skill | 34k | today | MIT | A | 63 | Claude Code |
| verifyYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 12 | Claude Code |
| detect-static-dependenciesdotnet/skills | Skill | 6.4k | today | MIT | A | 135 | Claude Code |
| dart-downstream-fixdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 25 | Claude Code |
| experiment-iterative-coderEvoScientist/EvoSkills | Skill | 488 | 17d ago | Apache-2.0 | A | 145 | Claude Code |
| mockito-stale-mock-silent-trycatch-failuredivinevideo/divine-mobile | Skill | 263 | today | MPL-2.0 | A | 186 | Claude Code, Codex |