crear-html-twig

crear-html-twig is a skill for Claude Code from FacturaScripts/fs-claude-plugin. It costs 39 tokens per session (2,146 once invoked), scanned A, original, MIT.

A reusable workflow for creating HTML views with Twig, a template language, in FacturaScripts. It covers view files, shared layouts, menus, styling, scripts, and plugin extensions.

In plain words
What is it for?
Use it to create new plugin pages, choose a full or minimal layout, add CSS and JavaScript, translate text, and extend existing FacturaScripts views.
Why use it?
It helps you build pages that fit the framework's existing templates instead of assembling the view structure from scratch. It also shows how other plugins can extend a view.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fs-dev plugin — 31 skills, 13 agents, 3 hooks shipped together

Good fit Use it to create new plugin pages, choose a full or minimal layout, add CSS and JavaScript, translate text, and extend existing FacturaScripts views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/facturascripts/fs-claude-plugin/crear-html-twig
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.

Any agent
npx skills add FacturaScripts/fs-claude-plugin --skill crear-html-twig
Clone the repo
git clone --depth 1 https://github.com/FacturaScripts/fs-claude-plugin

Made for: Claude Code.

Or install fs-dev, the plugin that ships this one along with the rest of its 31 skills, 13 agents, 3 hooks.

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

agentmods badge for crear-html-twig

README.md
[![agentmods](https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/crear-html-twig/github.svg)](https://agentmods.dev/skills/facturascripts/fs-claude-plugin/crear-html-twig)
Your own site
<a href="https://agentmods.dev/skills/facturascripts/fs-claude-plugin/crear-html-twig"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/crear-html-twig/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.

agentmods 80×15 button for crear-html-twig

Your own site · 80×15
<a href="https://agentmods.dev/skills/facturascripts/fs-claude-plugin/crear-html-twig"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/crear-html-twig.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,146 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00039 $0.02146
Opus 5.5 $0.00016 $0.00858
Sonnet 5.5 $0.00008 $0.00429
Haiku 4.5 $0.00004 $0.00215

Measured 1mo ago against content hash 931f7c32351e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

crear-html-twig 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 1mo 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/skills/crear-html-twig/SKILL.md · 299 lines

How it starts

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

Skill: crear vistas HTML Twig en FacturaScripts

Las vistas Twig son archivos .html.twig en la carpeta View/ del plugin. Se basan en Twig 3 (las-vistas-html-69.md).

Atajo con fsmaker

fsmaker view

fsmaker pide el nombre de la vista y genera el archivo en View/ con la herencia correcta.


1. Crear una vista básica

Ubicación

Plugins/MiPlugin/View/MiVista.html.twig

Estructura mínima con menú

{% extends "Master/MenuTemplate.html.twig" %}

{% block body %}
    {{ parent() }}
    <div class="container-fluid">
        <h1 class="h3">{{ trans('my-title') }}</h1>
    </div>
{% endblock %}

{% block css %}
    {{ parent() }}
{% endblock %}

{% block javascripts %}
    {{ parent() }}
{% endblock %}

Sin menú

{% extends "Master/MicroTemplate.html.twig" %}

{% block body %}
    <h1>{{ trans('my-title') }}</h1>
{% endblock %}

2. Usar la vista desde el controlador

Controlador nuevo (Core\Template\Controller)

La vista se pinta con $this->view(), indicando la extensión:

<?php
namespace FacturaScripts\Plugins\MiPlugin\Controller;

use FacturaScripts\Core\Template\Controller;

class MiVista extends Controller
{
    /** @var array Datos que la vista lee como fsc.datos */
    public $datos = [];

    public function run(): void
    {
        parent::run();
        $this->datos = ['clave' => 'valor'];
        $this->view('MiVista.html.twig'); // View/MiVista.html.twig
    }
}

Controlador antiguo o extendido (Core\Base\Controller, List, Edit, Panel)

// en privateCore() o en una acción
$this->setTemplate('MiVista'); // carga View/MiVista.html.twig
$this->setTemplate(false);     // desactiva la salida HTML (JSON, descargas...); booleano, no la cadena 'false'

Como pestaña de un EditController o PanelController

protected function createViews()
{
    parent::createViews(); // en EditController
    // addHtmlView(viewName, plantilla, modelo, título, icono)
    $this->addHtmlView('tab-producto', 'Tab/MiTab', 'Producto', 'product', 'fa-solid fa-box');
}

Read the full file on GitHub · 299 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. 1mo ago Changed · -6 lines · +3 tokens per session 931f7c32351e
  2. 3mo ago First seen · 305 lines · 36 tokens per session scan A fe86da57ebb4

Subscribe to this mod's changes

crear-html-twig is a skill published in the GitHub repository FacturaScripts/fs-claude-plugin (11 stars, last pushed 8d ago), licensed MIT. It adds 39 tokens to every session and 2,146 once invoked, about $0.0002 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.

Related

crear-html-twig compared with skills from other repositories

crear-html-twig next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crear-html-twigFacturaScripts/fs-claude-pluginSkill118d agoMITA39Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code