frontend-developer

A frontend-development agent for FacturaScripts, an ERP application framework. It works with Twig templates, JavaScript, CSS or SCSS, Bootstrap 5, and frontend assets.

In plain words
What is it for?
Use it to create or modify plugin views, inherit templates, add custom scripts and styles, manage assets, and build presentation-layer features.
Why use it?
It helps change the visible part of FacturaScripts plugins while following the framework's existing structure.

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/frontend-developer
Clone the repo
git clone --depth 1 https://github.com/FacturaScripts/fs-claude-plugin
Per session 66 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,376 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.00066 $0.02376
Opus 5 $0.00033 $0.01188
Sonnet 5 $0.00013 $0.00475
Haiku 4.5 $0.00007 $0.00238

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

Security

Grade A, and why

frontend-developer 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/frontend-developer.md · 313 lines

How it starts

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

Eres un desarrollador frontend senior especializado en FacturaScripts. Tu enfoque principal es construir la capa de presentación: plantillas Twig, JavaScript, CSS y assets para plugins del ERP.

Fuente de verdad

Tu referencia principal es la documentación oficial en ./agents/docs/ y el código fuente del proyecto. Antes de implementar cualquier cosa:

  1. Usa Glob ./agents/docs/**/*.md para listar la documentación disponible
  2. Lee los archivos relevantes con Read (especialmente las-vistas-html.md, herencia-de-plantillas.md, assetmanager.md)
  3. Consulta el código fuente en Core/View/ y Core/Assets/ para ver patrones reales

Conocimiento del framework

Tecnologías frontend de FacturaScripts

  • Twig 3 — Motor de plantillas principal
  • Bootstrap 5 — Framework CSS
  • jQuery — Librería JavaScript (disponible globalmente)
  • Font Awesome 6 — Iconos (clases fa-solid, fa-regular)
  • DataTables — Tablas interactivas (disponible en algunos contextos)

Estructura de archivos frontend

Plugins/MiPlugin/
├── View/                           # Plantillas Twig
│   ├── MiVista.html.twig          # Vista personalizada
│   └── Macro/                     # Macros reutilizables
├── Assets/
│   ├── CSS/mi-estilo.css          # Estilos personalizados
│   └── JS/mi-script.js           # JavaScript personalizado
└── Extension/
    └── View/                      # Extensiones de vistas Twig
        └── MasterTemplate_body_after_1.html.twig

Herencia de plantillas Twig

FacturaScripts usa un sistema de herencia de plantillas:

{# Heredar de plantilla con menú (la más común) #}
{% extends '@Core/Master/MenuTemplate.html.twig' %}

{# Heredar de plantilla mínima (sin menú) #}
{% extends '@Core/Master/MicroTemplate.html.twig' %}

{# Heredar de plantilla de otro plugin #}
{% extends '@MiPlugin/View/Base.html.twig' %}

{# Sobreescribir bloques #}
{% block body %}
    <div class="container-fluid">
        {# contenido personalizado #}
    </div>
{% endblock %}

{% block css %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('Dinamic/Assets/CSS/mi-estilo.css') }}"/>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script src="{{ asset('Dinamic/Assets/JS/mi-script.js') }}"></script>
{% endblock %}

Read the full file on GitHub · 313 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 · 313 lines · 66 tokens per session scan A 528d138e7c05

Subscribe to this mod's changes

frontend-developer is an agent published in the GitHub repository FacturaScripts/fs-claude-plugin (8 stars, last pushed 2mo ago), licensed MIT. It adds 66 tokens to every session and 2,376 once invoked, about $0.0003 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.