slide-dsl
Qué hace
Esta skill es la referencia de cómo se guardan las páginas de diapositivas en OpenMAIC, campo por campo. Es para personas o IA que editan diapositivas a nivel de datos, donde un pequeño error puede romper una página.
Cuándo usarla
- ✓Cuando necesitas cambiar directamente el contenido o la disposición de datos de una diapositiva.
- ✓Cuando una edición de una diapositiva no aparece como esperabas.
- ✓Cuando necesitas saber qué campo usa la pantalla para mostrar un valor.
Link de la skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Cambia el color de fondo de esta diapositiva y asegúrate de que el cambio se vea de verdad en pantalla.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA lee la estructura guardada de la página, escribe el campo exacto que usa la pantalla y luego vuelve a leer la página para confirmar que el cambio aparece.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 |
|---|
Preguntas frecuentes
¿Limpia el sistema el HTML que escribo?
No. La skill dice que el sistema guarda lo que envías, así que el manual es la guía de lo que funciona.
¿Qué se comprueba al guardar?
La skill dice que la escritura solo se comprueba en cuanto a la estructura de la página, no en cuanto a su significado o su aspecto.
¿Por qué comprobar una página después de editarla?
La skill dice que una página puede tener una estructura válida y aun así verse mal en pantalla.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 42 mil
- Posición en el ranking
- #6410
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
build-personal-skill
42 milAyuda a tu agente a convertir tus registros pasados de creación de cursos y tus chats en una skill personal y reutilizable, basada en patrones que encuentra en tu propio historial.
curriculum-planner
42 milAyuda a tu agente a planear una serie de lecciones conectadas, como un curso de siete días o un libro dividido por capítulos, y a crearlas una a una después de tu aprobación.
deep-interactive
42 milAyuda a tu agente a diseñar un curso en el que los alumnos manipulan simulaciones, diagramas, código y juegos en la mayoría de las páginas, en lugar de leer diapositivas.
deep-research
42 milAyuda a tu agente a crear un curso sobre temas recientes o factuales, investigando primero fuentes actuales y vinculando cada afirmación con una fuente que haya comprobado.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.