Guides contributors through the BESSER codebase: adding generators, metamodels, JSON↔BUML converters, writing pytest tests, building Sphinx docs, and preparing pull requests.
Ships in besser. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill covers the procedural workflows for contributing to the BESSER
codebase. For architecture details and code conventions, also consult the
BESSER repo's CLAUDE.md (auto-loaded in Claude Code; with other agents,
read CLAUDE.md at the repo root directly).
git clone https://github.com/<your-username>/BESSER.git
cd BESSER
python -m venv venv
# Windows: venv\Scripts\activate
# macOS/Linux: source venv/bin/activate
pip install -r requirements.txt
pip install -r docs/requirements.txt # for building docs
pip install -e . # editable install
Verify: python tests/BUML/metamodel/structural/library/library.py
Python 3.11+ is required (enforced by python_requires = >=3.11 in
setup.cfg; CI tests 3.11 and 3.12).
This skill keeps SKILL.md short. Reach into references/ for the procedure
you need:
| Task | Read |
|---|---|
| Add a new generator (the most common contribution) — 6 steps + scaffold | references/adding-a-generator.md |
| Add a new metamodel / sub-DSL, plus JSON↔BUML converters | references/adding-a-metamodel.md |
Write pytest tests (fixtures, tmp_path, what to assert) | references/testing.md |
| Build the Sphinx docs and cross-reference them | references/docs-and-build.md |
| Code style, commit/PR conventions, cross-repo, CI/release | references/contributing-workflow.md |
Related skills for the using side (not contributing):
references/.besser/utilities/, not in individual generators.JSON → BUML supports a feature, BUML → JSON must too.docs/source/ updates.try/finally for temp directories and file handles.JSON → BUML → JSON should be identity).references/adding-a-generator.md (opens in a new tab)references/adding-a-metamodel.md (opens in a new tab)references/contributing-workflow.md (opens in a new tab)references/docs-and-build.md (opens in a new tab)references/testing.md (opens in a new tab)scripts/scaffold_generator.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/besser-generatorsOperational reference for BESSER code generators — covers per-generator options, generated file layout, regeneration/overwrite behavior, safe customization patterns, template overrides, and debugging generation failures. Use this skill whenever the user is configuring or running a BESSER generator (PythonGenerator, PydanticGenerator, SQLAlchemyGenerator, SQLGenerator, BackendGenerator, RESTAPIGenerator, DjangoGenerator, WebAppGenerator, ReactGenerator, BAFGenerator, QiskitGenerator, JSONSchemaGenerator, JSONObjectGenerator, RDFGenerator, SupabaseGenerator, TerraformGenerator, PytorchGenerator, TFGenerator, FlutterGenerator, JavaGenerator), wondering "where does the output go", "will my edits survive regeneration", "how do I add custom endpoints to a generated FastAPI app", or "how do I switch the database dialect". Trigger on questions about generator parameters (`http_methods`, `nested_creations`, `dbms`, `containerization`, `backend_type`, `shots`, `generation_mode`), generated file paths, template overrides, or how to extend generated code without losing edits across regeneration cycles. Prefer this skill over besser-user when the question is about a specific generator's behavior rather than how to build a model.
/besser-troubleshootingDiagnose and fix BESSER errors fast. Use this skill whenever the user is staring at a Python traceback, ImportError, ModuleNotFoundError, ValueError, TypeError, AttributeError, jinja2.TemplateNotFound, subprocess.CalledProcessError, or any other failure originating from BESSER (besser.BUML, besser.generators, besser.utilities). Covers installation failures (`pip install besser` errors, native dependency build failures for psycopg2/pyodbc/oracledb, Python version mismatches, Windows venv path quirks), import errors (`String` vs `StringType`, missing `bocl==1.0.1`, `antlr4-python3-runtime` version mismatch), model construction errors (spaces or hyphens in names, duplicate enum literals, invalid multiplicities, generalization-to-self, more than one is_id per class), generator crashes (Invalid DBMS, Django subprocess failures, missing GUIModel for WebApp, silent SQLGenerator failures, invalid Qiskit backend), Docker and deployment problems (port conflicts, docker-compose vs docker compose, missing system libs in slim images), OCL constraint parse failures, and model-to-output drift (changes not appearing in regenerated code). Trigger on any error message that mentions `besser` in the traceback, even if the user does not explicitly ask for troubleshooting. Provides a minimal-reproduction template and quick diagnostic commands; defer to besser-generators for non-error questions about specific generator behavior.
/besser-userBuild software with BESSER, the low-code model-driven platform. Use this skill whenever the user is creating a B-UML domain model (classes, attributes, associations, enumerations, generalizations), running any BESSER generator (Django, FastAPI, SQLAlchemy, Pydantic, React, WebApp, BAF, Qiskit, etc.), modeling state machines or chatbot agents, designing GUI models for web apps, building any other B-UML model type — object (instance) models, feature models, OCL constraints, deployment models, neural-network models, quantum circuits, or project models — working with the BESSER web editor at editor.besser-pearl.org, or drawing a correct UML class diagram to document a system (classes, attributes, associations, inheritance) — even when no code will be generated, e.g. adding a class diagram to a README, design doc, or `.md` spec. Trigger on imports from `besser.BUML` or `besser.generators`, mentions of B-UML, DomainModel, BinaryAssociation, GUIModel, or any BESSER generator class — even if the user does not say "BESSER" by name. Also trigger when the user wants to draw, sketch, or document a UML class diagram or data model and wants it to be correct, even if BESSER is never mentioned. Prefer this skill over generic Python, Django, or FastAPI guidance whenever the project uses BESSER for modeling. For per-generator deep dives (output paths, options, customization patterns), defer to the besser-generators skill; for errors and diagnostics, defer to besser-troubleshooting.
/besser:besser-devfrom besser
npx claudepluginhub besser-pearl/besser-skills --plugin besserOther plugins' skills for the same job