besser-generators

besser-generators is a skill for Claude Code from BESSER-PEARL/BESSER-Skills. It costs 246 tokens per session (2,622 once invoked), scanned A, original, Apache-2.0.

A reference guide for BESSER, a tool that turns software models into source code. It explains generator settings, generated files, regeneration, customization, and failure diagnosis.

In plain words
What is it for?
Use it when configuring or running BESSER generators, changing templates, customizing generated output, or checking regeneration results.
Why use it?
It helps prevent generated code from being overwritten accidentally and clarifies how to recover when generation fails.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for cline.

Part of the besser plugin — 4 skills shipped together

Good fit Use it when configuring or running BESSER generators, changing templates, customizing generated output, or checking regeneration results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/besser-pearl/besser-skills/besser-generators
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 BESSER-PEARL/BESSER-Skills --skill besser-generators
Clone the repo
git clone --depth 1 https://github.com/BESSER-PEARL/BESSER-Skills

Made for: Claude Code.

Or install besser, the plugin that ships this one along with the rest of its 4 skills.

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 besser-generators

README.md
[![agentmods](https://agentmods.dev/badge/skills/besser-pearl/besser-skills/besser-generators/github.svg)](https://agentmods.dev/skills/besser-pearl/besser-skills/besser-generators)
Your own site
<a href="https://agentmods.dev/skills/besser-pearl/besser-skills/besser-generators"><img src="https://agentmods.dev/badge/skills/besser-pearl/besser-skills/besser-generators/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 besser-generators

Your own site · 80×15
<a href="https://agentmods.dev/skills/besser-pearl/besser-skills/besser-generators"><img src="https://agentmods.dev/badge/skills/besser-pearl/besser-skills/besser-generators.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,622 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.
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.00246 $0.02622
Opus 5.5 $0.00098 $0.01049
Sonnet 5.5 $0.00049 $0.00524
Haiku 4.5 $0.00025 $0.00262

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

Security

Grade A, and why

besser-generators 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.

skills/besser-generators/SKILL.md · 256 lines

How it starts

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

BESSER Generator Operations

Every BESSER generator implements the same shape:

class GeneratorInterface(ABC):
    def __init__(self, model, output_dir=None): ...
    def generate(self): ...

If output_dir is omitted, output goes to <cwd>/output/. The directory is created automatically (os.makedirs(..., exist_ok=True)).

Regeneration always overwrites. Every call to generate() replaces the output files entirely. This is by design — the model is the source of truth. Customizations belong in separate files (see "Safe customization" below). Once you have generated, the besser-user skill's "Verification checklist" covers what to check next (files exist, syntax parses, it runs).

Generate the baseline, then build on top. The point of these generators is that you don't hand-write the boilerplate. Regenerate the baseline freely and spend your effort only where the work is actually custom: extending and overriding in separate files so a re-run never clobbers it. Often the generated code is all you need; when it isn't, the "Safe customization" patterns below are how you build on top without fighting regeneration.

The output is equivalent across runs, but not byte-identical. Generators iterate unordered collections, so the same model can emit the same members in a different order each run — fields, columns, constructor arguments, table columns. Nothing changes semantically. Two consequences worth knowing: don't diff one regeneration against another expecting silence, and don't hard-code a column position when reading generated output (in a test, say) — look columns up by name.


Generator picker

Per-generator detail (inputs, outputs, options, templates, gotchas) lives in references/. Find your target, then read the listed reference:

Want Generator Reference
Python data classes PythonGenerator python-and-data.md
Java classes JavaGenerator python-and-data.md
Pydantic models (with optional OCL→validator) PydanticGenerator python-and-data.md
JSON Schema (regular or NGSI-LD) JSONSchemaGenerator python-and-data.md
JSON data from an ObjectModel (instances) JSONObjectGenerator python-and-data.md
RDF Turtle vocabulary RDFGenerator python-and-data.md
SQLAlchemy ORM SQLAlchemyGenerator persistence.md
Raw SQL DDL SQLGenerator persistence.md
Supabase (Postgres + RLS) schema SupabaseGenerator persistence.md
FastAPI + ORM + Pydantic stack BackendGenerator api-and-web.md
Standalone REST API RESTAPIGenerator api-and-web.md
Django project DjangoGenerator api-and-web.md
Full-stack web app (React + FastAPI + Docker) WebAppGenerator api-and-web.md
Flutter mobile app FlutterGenerator api-and-web.md
Conversational agent / chatbot BAFGenerator agents-and-other.md
Quantum circuit QiskitGenerator agents-and-other.md
Terraform infrastructure TerraformGenerator agents-and-other.md
PyTorch / TensorFlow neural net PytorchGenerator / TFGenerator agents-and-other.md

Read the full file on GitHub · 256 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · +12 lines 5639ef782b84
  2. 2mo ago First seen · 244 lines · 246 tokens per session scan A 05e5f77d4031

Subscribe to this mod's changes

besser-generators is a skill published in the GitHub repository BESSER-PEARL/BESSER-Skills (9 stars, last pushed 17d ago), licensed Apache-2.0. It adds 246 tokens to every session and 2,622 once invoked, about $0.0010 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

besser-generators compared with skills from other repositories

besser-generators next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
besser-generatorsBESSER-PEARL/BESSER-SkillsSkill917d agoApache-2.0A246Claude Code
subagent-driven-developmentNousResearch/hermes-agentSkill261kyesterdayMITA17Claude Code, Codex
mcporterNousResearch/hermes-agentSkill261kyesterdayMITA16Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill33kyesterdayMITA43Claude Code, Codex
article-writingaffaan-m/ECCSkill298k5d agoMITA57Claude Code, Codex
safe-refactorJuliusBrussee/cavemanSkill118kyesterdayApache-2.0A29Claude Code, Codex
telegram-setupvellum-ai/vellum-assistantSkill1.5k2d agoMITA22Claude Code, Codex