thu-maic/openmaic/slide-dsl

Claude Code and agent skill by thu-maic/openmaic

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

The complete slide DSL manual — the canvas and its background, the ten element types field by field with units, defaults and legal values, where each type keeps its words, which field the renderer actually paints when two disagree, exactly what happens to the HTML you put in `content`, and the structure schema that is now the ONLY thing a write is checked against. Nothing filters your markup and nothing normalises your values, so this manual is the whole of what makes a page render correctly. L…

Install

npx vskill@latest install thu-maic/openmaic/slide-dsl

SKILL.md

The same SKILL.md was published earlier as thu-maic/openmaic/slide-dsl.

The slide DSL

A slide page is a JSON document. Editing it well means writing the exact field that holds the thing you want to change, in the exact shape the renderer reads, and leaving every neighbouring field byte-identical.

Read this part first, because it changes how you should use everything below. The write path stores what you send. There is no markup allow-list, no sanitizer, no colour or font normalisation, no geometry clamping, no house style applied on the way in. patch_stage checks one thing — that the resulting document still matches the DSL structure schema (field names, types, required fields, closed objects) — and then persists your value byte for byte.

So there is nothing between you and the screen. A structurally legal page can still be an unreadable page: markup the renderer never styles, a colour on a field nothing paints, a formula snapshot that disagrees with its source. The guard rail catches shape, not meaning. This manual is the meaning. Where it tells you how the renderer behaves, that is the whole of your knowledge — write against it, then read the page back and check what you wrote is what is there.

Contents

  1. Reading before writing — the three read depths
  2. The document — content → canvas
  3. The canvas — viewport, theme, background, animations, paint order
  4. How an edit reaches the JSON — three ops, pointer rules
  5. What the structure schema refuses — the only hard boundary
  6. Two renderers paint your page — playback vs. preview
  7. Fields every element carries
  8. The ten element types — one section each
  9. The rendering truth of `content` HTML — the most important section
  10. Quick reference — one row per element type
  11. Where this sits
  12. Hard rules

Reading before writing

read_stage has three depths — detail:"tree", detail:"source" and detail:"text" — and they are not interchangeable.

detailWhat comes backUse it for
inventory (default)One compact line per element — id, type, plain-text text, left, top, width, height, srcFinding an element. Never as a patch source.
sourceThe exact persisted page JSON — the root every patch path is written againstEvery patch. Read it again after a write.
textEvery text-bearing element as { path, id, type, text } plus one page-wide combinedTextProving old copy left no residue.
  • `inventory` strips the markup. Its text is the element's HTML with tags

replaced by spaces and whitespace collapsed. A patch built from it invents style values that were never there and deletes the ones that were.

  • `source` always returns the whole page. There is no per-element

projection, so array indices cannot drift between what you read and what you write. It returns the full content object — type, schemaVersion and the complete canvas, background, theme and animations included.

  • `detail:"text"` gives you pointers. Each path is that element's own

/content/canvas/elements/N, so a residue check hands you the pointer to fix. Note that its text for a latex element is the LaTeX source, for code the lines joined by newlines, and for table the cells joined by | .

The document

A slide scene's content is:

{ type: 'slide', schemaVersion?: number, canvas: Slide }

type and schemaVersion sit outside /content/canvas/ and are therefore not reachable by a slide-canvas patch path — such a pointer begins /content/canvas/. Everything you can write lives under canvas.

The canvas

FieldRequiredMeaning
idyesPage identity. Changing it is rejected.
viewportSizeyesCanvas width in px — 1000 in this product
viewportRatioyesHeight ÷ width — 0.5625, so the canvas is 1000 × 562.5 px
themeyesbackgroundColor, themeColors[], fontColor, fontName, optional outline / shadow
elementsyesThe element array, in paint order — index 0 is the bottom of the stack
backgroundnoPage background — see below
animationsnoPer-element animation records
turningModenono / fade / slideX / slideY / random / slideX3D / slideY3D / rotate / scaleY / scaleX / scale / scaleReverse
sectionTagno{ id, title? }
typenocover / contents / transition / content / end
scriptnoSpeaker notes carried in from a .pptx import

All of them are patchable. /content/canvas/theme/fontColor, /content/canvas/background/color, /content/canvas/animations/0/duration are ordinary pointer paths. The only two writes the identity guard blocks are changing /content/canvas/id and changing an element's id or type. Optional branches can be created wholesale — set on /content/canvas/background adds the object; remove deletes it again.

Geometry — what a pixel means

viewportSize is the design-space width, not a screen width. Every element's left / top / width / height is in those same design pixels, origin at the top-left of the canvas, x to the right and y downwards. At render time the whole canvas is scaled by one factor to fit its container, so design pixels are proportions in disguise — a width: 500 element is always half the page wide.

Useful constants for the standard page:

  • Canvas: 0 ≤ left ≤ 1000, 0 ≤ top ≤ 562.5
  • Horizontal centre: left = (1000 - width) / 2
  • Vertical centre: top = (562.5 - height) / 2
  • Nothing clips at the canvas edge in the DOM, but anything outside the box is

cropped in a snapshot/export capture, so off-canvas geometry is a bug.

background

{ type, color?, image?, gradient? }. type is solid | image | gradient.

The renderer resolves it in a fixed order, and a type whose payload is missing falls through to plain white `#fff`, not to another payload you left behind:

typeReadsResult
solidcolorbackground-color: color. color missing → transparent, i.e. the shell shows through.
imageimage { src, size }size: 'repeat' → background-repeat: repeat + background-size: contain; cover / contain → no-repeat with that size. image or image.src missing → #fff.
gradientgradient { type, colors[], rotate }type: 'linear' → linear-gradient({rotate}deg, …); 'radial' → radial-gradient(…), and `rotate` is ignored for radial. gradient missing → #fff.
absent—#fff

gradient.colors is [{ pos, color }, …] where pos is a percentage number (0–100, written without the %) and color any CSS colour. rotate is degrees.

Setting background.color while type is still 'gradient' changes nothing you can see. The `type` field is the selector; the payload fields are inert unless `type` names them.

theme

{ backgroundColor, themeColors[], fontColor, fontName, outline?, shadow? } — all four scalars required.

What the renderer actually does with it: only `fontColor` and `fontName` are painted. They are set on the wrapper around every element, so they are the inherited default for any glyph whose own element and inline styles do not override them. theme.backgroundColor is not the page background (that is canvas.background); theme.themeColors, theme.outline and theme.shadow are authoring defaults consumed by the editor when it creates new elements, not by the renderer.

animations

[{ id, elId, effect, type, duration, trigger }, …], type one of in / out / attention, trigger one of click / meantime / auto.

Nothing plays them in playback. Neither renderer reads canvas.animations; the only consumer is the Pro-mode editor's animation panel. They are stored, validated and preserved — treat them as data you must not destroy, never as a way to make something move on a learner's screen. Deleting an element deletes the animations bound to its id for you.

elements is the z-order

Depth is array position: index 0 paints first (bottom), the last element paints last (top). There is no zIndex field, and the renderer assigns the CSS z-index from the array index itself. This is the one change with no leaf to address — see the restacking note below.

How an edit reaches the JSON

For slide canvases, patch_stage exposes five operations.

OpArgumentsWhat it does
setpath, valueWrites one JSON Pointer path in the persisted scene
removepathRemoves one optional field or bounded array item
str_replacepath, oldText, newText, optional replaceAllReplaces an exact anchor inside one string field
add_elementelement (complete, no `id`), afterId or indexInserts one new element; the server assigns its id
delete_elementelementIdRemoves that element and any animation bound to it
  • set without value fails; remove with a value fails.
  • add_element refuses an element that carries an id — identity is the

server's. It takes afterId or index, never both; index must be an integer from 0 to the current element count; omit both and the element lands on top.

  • Creating an element is a full-element write, not a patch — every DSL-required

field for that type must be present (the type sections mark them).

Addressing a field

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
39,109
Repository forks
6,086
7-day trend score
53

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 15 Nov 2026, 12 days ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thu-maic/openmaic/slide-dsl/badge)](https://verified-skill.com/skills/thu-maic/openmaic/slide-dsl)

Something wrong with this skill or its page? Tell us.