/modeler-kit:new-modelerfrom Miragon Modeler Kit
Scaffolds and validates Miragon modeler repositories: one notation per repo with diagram-js renderer, schema-model, text DSL, web/VS Code/Orca apps, and platform conformance kits.
Ships in Miragon Modeler Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A Miragon modeler is one notation in one repository: a plain-text file is the source of truth, a
diagram-js renderer shows and edits it, and three apps put the renderer in front of users, a web
app, a VS Code custom editor and an Orca custom editor. Two shared
packages keep the family uniform: @miragon/modeler-api (the collaborative-modeler contract every host binds, with its
conformance kit) and @miragon/modeler-shell (the chrome around the canvas, with its
conformance kit). Seven modelers follow this recipe, all in
Miragon/modeler-suite next to the two packages, C4
without an Orca editor; read the one closest to your notation:
| Modeler | Closest when your notation … |
|---|---|
modelers/event-storming | has a line DSL and stickies; the pilot, nearest to the template |
modelers/value-chain | is small and stored as JSON; uses diagram-js-direct-editing |
modelers/team-topologies | has a legend, an inspector and a JSON format; one release component |
modelers/context-maps | imports and exports a foreign format (Context Mapper CML) next to its own |
modelers/wardley-maps | has a fixed plot (axes, stages), notes and a large DSL; the most complete |
modelers/business-model-canvas | is a fixed grid of blocks with stickies, stored as YAML |
modelers/c4 | keeps a foreign text format (Structurizr DSL) losslessly; lays views out automatically |
assets/template/ is a minimal, runnable modeler for a toy notation (labelled
nodes in a line DSL). Once brand-assets.mjs has copied the design-system files in (step 1 of
After copying), it builds, passes both conformance kits on the web and ide
hosts and packages a VSIX and an Orca plugin. Copy it with the script, which fills every
placeholder and refuses a non-empty target:
node ${CLAUDE_PLUGIN_ROOT}/skills/new-modeler/scripts/new-modeler.mjs ../capability-map-modeler \
--notation capability-map --name "Capability Map" --ext capmap --repo capability-map-modeler
(Outside the plugin, run scripts/new-modeler.mjs from this skill's
directory.)
| Placeholder | Option | Example | Becomes |
|---|---|---|---|
__NOTATION__ | --notation | capability-map | package names @miragon/<notation>-*, meta.notation, CSS prefix, VS Code ids, file names |
__DISPLAY_NAME__ | --name | Capability Map | titles, the app name <Name> Modeler, the VS Code display name |
__EXT__ | --ext | capmap | the file extension, without the dot |
__REPO__ | --repo | capability-map-modeler | github.com/Miragon/<repo>, the VS Code extension name, the VSIX file |
The template's @miragon/modeler-api and @miragon/modeler-shell pins are the current releases
(release-please rewrites them in this repository on every release); its third-party pins are the
ones Wardley Maps and Event Storming run on (plus ovsx, pinned so the Open VSX publish runs a
known version), and the new repository's Dependabot moves them on.
node <miragon-brand plugin>/scripts/brand-assets.mjs --init, then
brand-assets.mjs --add skills/modeler-tool-design/assets/<file> packages/renderer/src/theme/<file>
for cd-tokens.generated.css, cd-tokens.generated.json and cd-canvas.css. This writes
.miragon/brand-assets.yaml and .miragon/brand-assets.sha256, which CI checks; never edit the
copies. Then miragon-komet-blau.svg from the miragon-brand:corporate-design skill
(assets/logo/) into apps/webapp/public/.miragon-brand:icon-design skill
(assets/modeler-icons/; a new notation gets one there first) as
apps/webapp/public/favicon.svg, as apps/vscode/icon.png with "icon": "icon.png" in
apps/vscode/package.json (the Marketplace needs it), and as apps/orca/assets/icon.png with
"icon": "assets/icon.png" in apps/orca/orca-plugin.json (Orca's plugin directory shows it;
its cover and screenshots go in apps/orca/images/).git init, then npm install (writes the lockfile CI's npm ci needs),
npx playwright install chromium and npm run format (the placeholders changed line lengths).npm run lint, npm run format:check, npm run depcruise,
npm run build, npm test, npm run test:browser, npm run test:e2e, npm run build:webapp,
npm run build:vscode, npm run build:orca and npm run test:vscode:docker, once as it is
and once with VSCODE_VERSION=1.96.0 (the engines.vscode floor). It runs the built extension
in a real VS Code inside a Linux container, so no window opens and takes the focus; it needs
Docker, and its first run builds the image and downloads VS Code. npm run test:orca:docker
does the same for the Orca plugin. brand-assets.mjs --check reports no
finding. All green before the first commit, which is signed (git commit -S -m "feat: …").npm and vscode-marketplace, the release-please app (RELEASE_PLEASE_APP_CLIENT_ID,
RELEASE_PLEASE_APP_PRIVATE_KEY; Dependabot's auto-merge uses it too, with the label auto-merge),
required signed commits, and ci-ok (the CI gate) and validate-pr-title as the only required
checks on main, once ci-ok has run there (see
repository). The first
release of every npm package is published by hand once, see
releases.packages/dsl, the model in
packages/schema-model, shapes and tools in packages/renderer, the fixtures of the
conformance test and of the merge, the examples (apps/webapp/src/example.ts,
apps/ide-editor/src/examples.ts, example/), and the extension's walkthrough
(apps/vscode/media/walkthrough/, its step texts in apps/vscode/package.json), which
describes the example and the notation.createCollaborativeModeler and
createCollaborativeViewer; the conformance kit runs in npm run test:browser with every hook
filled, so a skip or an advisory fails. See contract.web host, the VS Code webview and the Orca editor
on the ide host (one editor in apps/ide-editor for both), all through the contract factory;
the shell's kit runs in e2e against all three, and smoke tests open the built extension in a
real VS Code and the built plugin in a real Orca. See shell.ci-ok sums up: lint, format, depcruise, pin check, unit tests,
test:browser with zero skips and zero advisories of the contract kit and the merge cases,
test:e2e with the shell kit on every host, the production webview bundle under the webview CSP
and the built plugin under Orca's frame policy included, the web app's check:build, the VS Code
smoke test on the newest stable VS Code and the engines.vscode floor, and the Orca smoke test
on the newest Orca and the engines.orca floor.npm run test:vscode:docker passes on the newest stable VS Code and the engines.vscode floor:
edit, save, undo and VS Code's four default themes in a real VS Code
(shell).npm run test:orca:docker passes: Orca's validate and check, the load and the editor in both
of Orca's themes in a real Orca (shell).meta.apiVersion is the pinned MODELER_API_VERSION, the factories accept the
1.2 options freeArea, fitOnImport and undoRedoKeys, both mounts report
contentBounds() (1.3), which the apps and Design IQ fit to, and the canvas acts on a key only
while it holds the focus (1.4).interaction and
appearance, whose themes is the renderer's one THEMES constant that both apps read (1.5 and
1.6, contract).IdeEditorDefinition of apps/ide-editor with mountIdeEditor:
the extension syncs the document through the shell's document plumbing, registerModelerEditor
in the extension host and vsCodeEditorHost in the webview, and the Orca editor through
orcaEditorHost with the notation's merge, with no writer, echo filter or import queue of their
own (shell).svgToPng (@miragon/modeler-shell/export): Geist inside the
picture and the background of guide §10.7, in both apps, with no rasteriser of their own.registerNewDocumentCommand
for both new-diagram commands and exportToFile for the PNG and SVG export, with no dialog,
write or notification text of its own (shell)..miragon/brand.json
(design system).npx vsce package --no-dependencies) and npm publish --dry-run packs every
library with dist only.CLAUDE.md describes the notation's packages, its DSL and anything the template did not have.The contract and the shell document their API in their own READMEs (api, shell, shell API, implementation notes); this skill tells you what to build and where it bites, and links there for every signature.
assets/template/CLAUDE.md (opens in a new tab)assets/template/CONTRIBUTING.md (opens in a new tab)assets/template/LICENSE (opens in a new tab)assets/template/README.md (opens in a new tab)assets/template/apps/ide-editor/esbuild.mjs (opens in a new tab)assets/template/apps/ide-editor/package.json (opens in a new tab)assets/template/apps/ide-editor/src/css.d.ts (opens in a new tab)assets/template/apps/ide-editor/src/editor.ts (opens in a new tab)assets/template/apps/ide-editor/src/examples.ts (opens in a new tab)assets/template/apps/ide-editor/src/zod-jitless.ts (opens in a new tab)assets/template/apps/ide-editor/test/examples.test.ts (opens in a new tab)assets/template/apps/orca/README.md (opens in a new tab)assets/template/apps/orca/build.mjs (opens in a new tab)assets/template/apps/orca/editor/index.html (opens in a new tab)assets/template/apps/orca/orca-plugin.json (opens in a new tab)assets/template/apps/orca/package.json (opens in a new tab)assets/template/apps/orca/src/main.ts (opens in a new tab)assets/template/apps/orca/test-smoke/orca-smoke.test.ts (opens in a new tab)assets/template/apps/orca/test-smoke/vitest.config.ts (opens in a new tab)assets/template/apps/orca/tsconfig.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
miragon, modeler, diagram-js, scaffolding, vscode-extension, orca-plugin
Other plugins' skills for the same job
npx claudepluginhub miragon/modeler-suite --plugin modeler-kit