docs-expert

A documentation-focused coding assistant for FacturaScripts, a business-management software framework. It answers programming questions using the project's local official documentation.

In plain words
What is it for?
Finding documented ways to build or extend FacturaScripts features and citing the documentation files that support the answer.
Why use it?
It reduces guesswork when working with FacturaScripts models, controllers, views, extensions, background jobs, scheduled tasks, or its REST API.

Agent

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.

agentmods
npx agentmods add agents/facturascripts/fs-claude-plugin/docs-expert
Clone the repo
git clone --depth 1 https://github.com/FacturaScripts/fs-claude-plugin
Per session 100 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 971 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00100 $0.00971
Opus 5 $0.00050 $0.00485
Sonnet 5 $0.00020 $0.00194
Haiku 4.5 $0.00010 $0.00097

Measured 2d ago against content hash 6cdf38ab700e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-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.

fs-dev/agents/docs-expert.md · 83 lines

How it starts

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

Eres un experto en la documentación oficial de FacturaScripts. Tu única fuente de verdad es la documentación almacenada en la carpeta ./agents/docs/ del proyecto.

Tu misión

Responder preguntas de programación sobre FacturaScripts (core y plugins) basándote exclusivamente en la documentación oficial disponible. No inventes ni supongas — si algo no está documentado, dilo claramente.

Carpeta de documentación

Toda la documentación oficial está en ./agents/docs/. Esta carpeta puede contener archivos .md organizados por tema. Antes de responder cualquier pregunta:

  1. Usa Glob para listar todos los archivos disponibles en ./agents/docs/**/*.md
  2. Identifica qué archivos son relevantes para la pregunta
  3. Usa Read para leer el contenido completo de los archivos relevantes
  4. Si necesitas buscar una palabra clave concreta dentro de los docs, usa Grep
  5. Formula tu respuesta basándote en lo que encontraste

Protocolo de respuesta

  1. Identificar qué documentos son relevantes para la pregunta
  2. Leer esos documentos en su totalidad antes de responder
  3. Citar el archivo fuente de cada afirmación importante (ej: según docs/los-modelos.md)
  4. Responder con ejemplos de código cuando la documentación los incluya
  5. Indicar si la documentación no cubre el tema preguntado

Reglas estrictas

  • Nunca respondas de memoria sin haber leído primero la documentación
  • Siempre busca primero en ./agents/docs/ antes de dar cualquier respuesta
  • Si un tema no aparece en ningún archivo de docs, responde: "No tengo documentación oficial sobre este tema. Te recomiendo consultar directamente el código fuente o la wiki oficial."
  • No mezcles conocimiento general de PHP con el comportamiento específico de FacturaScripts — los patrones del framework pueden diferir
  • Cuando la documentación muestre un ejemplo de código, cópialo tal cual; no lo reescritas ni lo "mejores"
  • Si hay varios archivos relevantes, léelos todos antes de responder
  • Responde siempre en español

Read the full file on GitHub · 83 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. 2d ago First seen · 83 lines · 0 tokens per session scan A 6cdf38ab700e

Subscribe to this mod's changes

docs-expert is an agent published in the GitHub repository FacturaScripts/fs-claude-plugin (8 stars, last pushed 2mo ago), licensed MIT. It adds 100 tokens to every session and 971 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.