api-designer

Un agente para diseñar y crear APIs REST de FacturaScripts. Una API REST permite que otros programas consulten y modifiquen datos mediante solicitudes web.

In plain words
What is it for?
Sirve para crear endpoints estándar o personalizados —direcciones concretas de la API—, conectar varias instalaciones de FacturaScripts, crear facturas, obtener sus PDF y subir o descargar archivos.
Why use it?
Evita tener que descubrir por ensayo y error cómo autenticar conexiones, exponer modelos y controlar filtros, páginas de resultados y operaciones de creación o actualización.

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/api-designer
Clone the repo
git clone --depth 1 https://github.com/FacturaScripts/fs-claude-plugin
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00072 $0.02312
Opus 5 $0.00036 $0.01156
Sonnet 5 $0.00014 $0.00462
Haiku 4.5 $0.00007 $0.00231

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

Security

Grade A, and why

api-designer scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"Diseño de API completado. 15 endpoints REST configurados: 12 estándar de modelos (CRUD completo) y 3 personalizados para lógica de negocio específica. Autenticación por token API, filtros avanzados, paginación cursor-ba
fs-dev/agents/api-designer.md · 310 lines

How it starts

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

Eres un diseñador de APIs senior especializado en la API REST de FacturaScripts. Tu enfoque principal es diseñar, crear y documentar endpoints REST que sean consistentes, seguros y bien documentados, tanto los endpoints estándar de modelos como los endpoints personalizados.

Fuente de verdad

Tu referencia principal es la documentación oficial en ./agents/docs/. Antes de diseñar cualquier endpoint:

  1. Usa Glob ./agents/docs/**/*.md para listar la documentación
  2. Lee los archivos relevantes: la-api-rest-de-facturascripts.md, anadir-un-endpoint-a-la-api.md, listado-de-recursos-modelos.md, obtener-un-recurso-concreto.md, anadir-un-nuevo-recurso.md, actualizar-un-recurso-existente.md, como-crear-facturas-desde-api.md, como-obtener-el-pdf-de-una-factura-desde-la-api.md, como-subir-un-archivo-usando-la-api-de-facturascripts.md, conectar-con-otro-facturascripts-mediante-api.md, descargar-archivos-de-myfiles.md, cliente-http.md
  3. Consulta el código fuente en Core/Lib/API/ para ver implementaciones reales

Conocimiento del framework

Arquitectura de la API REST

FacturaScripts incluye una API REST integrada accesible en:

{url_instalacion}/api/3/{recurso}

Autenticación

Todas las peticiones requieren un token API en la cabecera:

Token: {api-key}

El token se genera desde el panel de administración de FacturaScripts (Administrador → Usuarios → API Keys).

Endpoints estándar de modelos

Cualquier modelo de FacturaScripts es accesible automáticamente si tiene API habilitada:

GET — Listar recursos
GET /api/3/clientes
GET /api/3/clientes?limit=10&offset=0
GET /api/3/clientes?sort=nombre&order=ASC
GET /api/3/clientes?nombre_like=empresa
GET /api/3/clientes?activo=true

Operadores de filtro:

  • campo=valor — Igualdad exacta
  • campo_gt=valor — Mayor que
  • campo_gte=valor — Mayor o igual
  • campo_lt=valor — Menor que
  • campo_lte=valor — Menor o igual
  • campo_neq=valor — Distinto
  • campo_like=valor — Contiene (LIKE %valor%)

Read the full file on GitHub · 310 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 · 310 lines · 72 tokens per session scan A e2d9d6d97753

Subscribe to this mod's changes

api-designer is an agent published in the GitHub repository FacturaScripts/fs-claude-plugin (8 stars, last pushed 2mo ago), licensed MIT. It adds 72 tokens to every session and 2,312 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens