crear-modelo

crear-modelo is a skill for Claude Code from FacturaScripts/fs-claude-plugin. It costs 22 tokens per session (1,503 once invoked), scanned A, original, MIT.

A guide for creating a FacturaScripts model, including its PHP class and XML file that defines the database table.

In plain words
What is it for?
Use it to define a model's name, table, plugin, and columns, then generate or write the files needed for that model.
Why use it?
It helps ensure the model code and database definition match the framework's expected structure and naming conventions.

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 define a model's name, table, plugin, and columns, then generate or write the files needed for that model.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/facturascripts/fs-claude-plugin/crear-modelo"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/crear-modelo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,503 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.00022 $0.01503
Opus 5.5 $0.00009 $0.00601
Sonnet 5.5 $0.00004 $0.00301
Haiku 4.5 $0.00002 $0.00150

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

Security

Grade A, and why

crear-modelo 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-modelo/SKILL.md · 192 lines

How it starts

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

Skill: Crear Modelo FacturaScripts

Cuando el usuario pida crear un modelo, genera los dos archivos necesarios: la clase PHP y el XML de tabla.

Atajo con fsmaker

Antes de crear los archivos a mano, considera usar la herramienta CLI:

fsmaker model

fsmaker solicita el nombre del modelo, nombre de la tabla y las columnas, y genera automáticamente la clase PHP y el XML de tabla. Los pasos siguientes explican la estructura en detalle para cuando necesites ajustar o crear los archivos manualmente.

Paso 1: Información necesaria

Pregunta al usuario:

  • Nombre del modelo (singular, PascalCase. Ej: Project)
  • Nombre de la tabla (plural, snake_case. Ej: projects)
  • Plugin al que pertenece
  • Columnas que tendrá (nombre como snake_case, tipo, obligatorio)

Paso 2: Crear la clase PHP

Archivo: Plugins/MiPlugin/Model/NombreModelo.php

<?php

namespace FacturaScripts\Plugins\MiPlugin\Model;

use FacturaScripts\Core\Template\ModelClass;
use FacturaScripts\Core\Template\ModelTrait;
use FacturaScripts\Core\Tools;

class NombreModelo extends ModelClass
{
    use ModelTrait;

    /** @var bool */
    public $active;

    /** @var string */
    public $creation_date;

    /** @var int */
    public $id;

    /** @var string */
    public $name;

    public function clear(): void
    {
        parent::clear();
        $this->active = true;
        $this->creation_date = Tools::dateTime();
    }

    public static function primaryColumn(): string
    {
        return 'id';
    }

    public static function tableName(): string
    {
        return 'nombre_tabla';
    }

    public function test(): bool
    {
        // Validaciones antes de guardar
        $this->name = Tools::noHtml($this->name);
        if (empty($this->name)) {
            // clave de traducción del plugin, definida en Translation/es_ES.json
            Tools::log()->warning('mi-plugin-nombre-obligatorio');
            return false;
        }

        // comprueba los NOT NULL y la longitud máxima de cada columna
        return parent::test();
    }
}

Read the full file on GitHub · 192 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 · +18 lines da383ddbb5db
  2. 3mo ago First seen · 174 lines · 22 tokens per session scan A 4db04ed1dbf3

Subscribe to this mod's changes

crear-modelo is a skill published in the GitHub repository FacturaScripts/fs-claude-plugin (11 stars, last pushed 8d ago), licensed MIT. It adds 22 tokens to every session and 1,503 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.

Related

crear-modelo compared with skills from other repositories

crear-modelo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crear-modeloFacturaScripts/fs-claude-pluginSkill118d agoMITA22Claude Code
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k5d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.5k2d agoApache-2.0A65Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill937todayMITA79Claude Code, Codex