slide-craft
Qué hace
Esta skill ofrece las reglas de diseño de las páginas de diapositivas de OpenMAIC, incluidos márgenes, tamaños de texto, contraste y espaciado. Es para personas que editan diapositivas y quieren cambios que coincidan con el diseño original.
Cuándo usarla
- ✓Cuando cambias un elemento de una diapositiva y quieres que encaje.
- ✓Cuando el texto de una diapositiva es demasiado grande o demasiado pequeño para su recuadro.
- ✓Cuando una diapositiva parece llena o vacía y necesita un mejor espaciado.
Link de la skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-craft/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
“El texto de esta diapositiva se sale de su recuadro. Arréglalo para que quepa y siga coincidiendo con las demás diapositivas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA usa un conjunto de medidas y reglas para el lienzo de la diapositiva, las alturas del texto y el contraste de color, para hacer un cambio que encaje con el diseño de la página.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
The design law of a slide page
Every slide in this runtime was drawn under a long set of rules — the canvas, the height table, the type scale, the spacing standards. The generator that drew the page had all of them in front of it. When you patch one element, you have the page's numbers and nothing else, and the rules are the only way to tell a repair from a dent.
This is that rule set, restated for editing. It is about the page, not the process: which numbers a change has to stay consistent with, and which fields actually reach the screen.
The canvas you are editing inside
The canvas is 1000 × 562.5. All elements respect a 50px margin, so the
live area is left ∈ [50, 950], top ∈ [50, 512.5], and an element's right
edge (left + width) stays ≤ 950, its bottom edge ≤ 512.5.
The page's own alignment grid, which existing elements are already on:
- Left-aligned content sits at
left = 60orleft = 80. - Centred content is
left = (1000 - width) / 2— recomputed, never guessed. - Right-aligned content is
left = 1000 - width - 60.
Changing width on centred content changes left too, and they are two separate
writes. Read the neighbours' boxes first and land on the column they are already
using; a lone element 8px off the shared left edge reads as a mistake even though
nothing overflows.
There is no alignment operation. Every position is an explicit number you
write to that element's own left / top / width / height, one path per call,
computed from the neighbours you read. Aligning a row means giving each element the
number the row already uses — not asking the page to tidy itself.
Text is sized by table, not by eye
A text element has 10px padding on all four sides, so its usable area is
(width - 20) × (height - 20), and heights come from one table
(line-height 1.5, padding included):
| Font size | 1 line | 2 lines | 3 lines | 4 lines | 5 lines |
|---|---|---|---|---|---|
| 14px | 43 | 64 | 85 | 106 | 127 |
| 16px | 46 | 70 | 94 | 118 | 142 |
| 18px | 49 | 76 | 103 | 130 | 157 |
| 20px | 52 | 82 | 112 | 142 | 172 |
| 24px | 58 | 94 | 130 | 166 | 202 |
| 28px | 64 | 106 | 148 | 190 | 232 |
| 32px | 70 | 118 | 166 | 214 | 262 |
| 36px | 76 | 130 | 184 | 238 | 292 |
When you replace an element's words, re-derive its height instead of keeping the old one:
characters_per_line = (width - 20) / font_size. Keep the longest line at ≤ 75% of that; past 100% the text wraps and takes a row you did not budget.- Count the lines your new content needs — one per
<p>, plus a wrap for every paragraph overcharacters_per_line— then add ~0.8 of a line of slack and round up. - Look the height up against the largest font size present in the content, not the average.
Height is a container, not a clamp: overflowing text spills past the box rather than shrinking, and the page shows the spill. The fix order is shorten the words, then step to the next table row, then widen the box — in that order, because a slide that needs a bigger box usually needs fewer words.
The type scale
| Content | Size |
|---|---|
| Main title | 32-36px |
| Subtitle | 24-28px |
| Key points | 18-20px |
| Body | 16-18px |
| Caption | 14-16px |
Levels stay 2-4px apart and everything at one level uses one size. When you touch an element, take its size from the siblings that share its role on that page rather than from this table fresh — the page's own scale wins, and this table is how you recognise which level an element belongs to.
Size lives in the content HTML, as inline font-size on the <p> — there is
no font-size field to write. So changing a size means writing the whole content
string back, which means you have to know the markup you are replacing.
What the renderer really does with your HTML
The content of a text element is an HTML string, and this page's CSS resets
most tag semantics. Four consequences decide how you write rich text:
<ul>/<ol>render without markers. The stylesheet's reset stripslist-styleand the indent, and the rule that puts them back is scoped to the browser editor — not to classroom playback. A list sent as<ul><li>…</li></ul>
Preguntas frecuentes
¿Qué tamaño tiene el lienzo de la diapositiva?
La skill dice que el lienzo mide 1000 por 562,5 unidades, con un margen de 50 unidades en cada lado.
¿Cubre también las correcciones de color?
Sí. La skill incluye pares de contraste y reglas para corregir colores.
¿Alinea los elementos automáticamente?
No. La skill dice que no existe una operación de alineación, así que cada posición debe fijarse de forma explícita.
Detalles
Descripción original del autor
The design law of a slide page — canvas geometry, the text height table, the type scale, contrast pairs, spacing rhythm, and which element type carries which content. Load it when patching slide elements one at a time, when a fix is about colour or contrast, when text has to grow or shrink inside a box, when a page feels crowded or empty, or when replacement content needs real rich-text structure. It is the standard `page-clone` and `pro-editing` edit against, not a procedure of its own — those two decide which pages to touch and in what order, this one decides what a good page looks like when
repo: THU-MAIC/OpenMAIC
Popularidad
- Estrellas en GitHub
- 42 mil
- Posición en el ranking
- #6409
- 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
canvas
394 milPermite que tu agente muestre un widget visual alojado en un panel de Mac conectado y después ocultar el panel o moverlo a otra página.
control-ui
394 milAyuda a tu agente a organizar y resolver problemas de la interfaz de control de OpenClaw, incluidas las sesiones, los paneles y las Gateways conectadas.
diagram-maker
394 milAyuda a tu agente a crear diagramas claros en SVG, HTML o Excalidraw editable para procesos, arquitectura de sistemas y bocetos de pizarra.