slide-dsl
Was er macht
Dieser Skill ist das Nachschlagewerk, wie Folienseiten in OpenMAIC gespeichert werden, Feld für Feld. Er richtet sich an Personen oder KIs, die Folien auf Datenebene bearbeiten, wo ein kleiner Fehler eine Seite kaputt machen kann.
Wann du ihn nutzt
- ✓Wenn du den zugrunde liegenden Inhalt oder das Layout einer Folie direkt ändern musst.
- ✓Wenn eine Änderung an einer Folie nicht so erscheint, wie du erwartet hast.
- ✓Wenn du wissen musst, welches Feld die Anzeige für einen Wert tatsächlich nutzt.
Link zum Skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ändere die Hintergrundfarbe dieser Folie und stelle sicher, dass die Änderung auch auf dem Bildschirm erscheint.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI liest die gespeicherte Struktur der Seite, schreibt das genaue Feld, das die Anzeige nutzt, und liest die Seite dann zur Kontrolle wieder ein.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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
- Reading before writing — the three read depths
- The document —
content→canvas - The canvas — viewport, theme, background, animations, paint order
- How an edit reaches the JSON — three ops, pointer rules
- What the structure schema refuses — the only hard boundary
- Two renderers paint your page — playback vs. preview
- Fields every element carries
- The ten element types — one section each
- The rendering truth of
contentHTML — the most important section - Quick reference — one row per element type
- Where this sits
- Hard rules
Reading before writing
read_stage has three depths — detail:"tree", detail:"source" and
detail:"text" — and they are not interchangeable.
detail |
What comes back | Use it for |
|---|---|---|
inventory (default) |
One compact line per element — id, type, plain-text text, left, top, width, height, src |
Finding an element. Never as a patch source. |
source |
The exact persisted page JSON — the root every patch path is written against | Every patch. Read it again after a write. |
text |
Every text-bearing element as { path, id, type, text } plus one page-wide combinedText |
Proving old copy left no residue. |
inventorystrips the markup. Itstextis 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.sourcealways 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 fullcontentobject —type,schemaVersionand the completecanvas, background, theme and animations included.detail:"text"gives you pointers. Eachpathis that element's own/content/canvas/elements/N, so a residue check hands you the pointer to fix. Note that itstextfor alatexelement is the LaTeX source, forcodethe lines joined by newlines, and fortablethe 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
| Field | Required | Meaning |
|---|
Häufige Fragen
Bereinigt das System HTML, das ich schreibe?
Nein. Laut Skill speichert das System, was du sendest. Das Handbuch zeigt daher, was funktioniert.
Was wird beim Speichern geprüft?
Laut Skill wird beim Schreiben nur die Struktur der Seite geprüft, nicht Bedeutung oder Aussehen.
Warum eine Seite nach dem Bearbeiten prüfen?
Laut Skill kann eine Seite in der Form gültig sein und trotzdem auf dem Bildschirm falsch aussehen.
Details
Originalbeschreibung des Autors
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. Load it before patching a field you have not patched before, when a patch comes back rejected, when a
repo: THU-MAIC/OpenMAIC
Beliebtheit
- GitHub-Sterne
- 42k
- Platz im Ranking
- #6410
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
build-personal-skill
42kHilft deinem Agenten, frühere Kursunterlagen und Chats in einen persönlichen, wiederverwendbaren Skill zu verwandeln, basierend auf deiner eigenen Historie.
curriculum-planner
42kHilft deinem Agenten, eine Reihe zusammenhängender Lektionen zu planen, etwa einen Wochenkurs, und sie nach deiner Freigabe einzeln zu bauen.
deep-interactive
42kHilft deinem Agenten, einen Kurs zu entwerfen, in dem Lernende auf den meisten Seiten mit Simulationen, Diagrammen, Code und Spielen arbeiten, statt Folien zu lesen.
deep-research
42kHilft deinem Agenten, einen Kurs zu aktuellen Themen zu bauen: Er recherchiert zuerst Live-Quellen und belegt jede Aussage mit einer geprüften Quelle.
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.