stage-dsl
Qué hace
Esta skill es un mapa de la estructura que hay detrás de un aula de OpenMAIC, que muestra qué parte guarda cada valor. Es para personas o IA que leen o editan aulas directamente.
Cuándo usarla
- ✓Cuando necesitas encontrar dónde se guarda un valor dentro de un aula.
- ✓Cuando una edición de un aula se rechaza y necesitas entender por qué.
- ✓Cuando necesitas buscar un texto en todas las páginas de un aula.
Link de la skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/stage-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
“Busca todas las páginas de esta aula que mencionen la palabra presupuesto y dime dónde se guarda cada una.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA usa las herramientas de lectura, edición y búsqueda del aula, y sigue este mapa para elegir la parte correcta de la estructura antes de escribir.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
The stage document map
This is a map, not the field manual.
Use it to decide which subtree owns a value, which path to read, and which reference chapter to load. Then read the exact source before writing.
The document model
The durable structure is:
stage
├── outline
└── scenes[] ordered by scene.order, shown as pages 1..N
├── id stable scene identity
├── order 1-based page position
├── type slide | quiz | interactive | pbl
├── content shape selected by scene.type
│ ├── slide.canvas
│ ├── quiz.questions[]
│ ├── interactive.html / widgetConfig
│ └── pbl.projectV2
└── actions[] ordered playback verbs
stage is the stage's metadata. outline is the generation plan. A persisted page
is a scene. Its type and content.type must agree.
The three generic tools do not replace page-list operations. Insert, delete,
reorder, and retitle pages with edit_deck.
Tool vocabulary
| Need | Tool | How |
|---|---|---|
| Read a scene | read_stage |
`path:/scenes/<order |
| Edit scene content or actions | patch_stage |
`target:/scenes/<order |
| Search visible text or source | grep_stage |
literal search over the whole stage |
| List stages in folders | list_folder_stages |
returns the explicit stageId required by every stage tool |
| Insert, delete, reorder, or retitle pages | edit_deck |
page-list operations stay outside the document patcher |
| Plan and build a new stage | conversation + create_stage + generate_scene |
settle the page plan in conversation, then call generate_scene once per page with an explicit brief |
| Set the classroom cast | set_roster |
write the settled roster before page generation |
Addressing with read_stage
| Path | Resolves to |
|---|---|
"" or omitted |
the whole stage |
/outline |
the persisted outline snapshot |
/scenes/3 |
the scene whose order is 3 |
/scenes/scene_abc |
the scene with that stable id |
/scenes/scene-abc |
the historical hyphenated scene-id form |
/scenes/3/actions |
only scene 3's action array |
Orders are 1-based. Array indices inside source JSON are 0-based.
detail:"tree" is the compact structural inventory. It reports scene id,
order, type, title, element/question/project counts, and action counts. It is
for finding a target, never for reconstructing a write value.
detail:"source" is the exact JSON at the selected path. A scene source is the
persisted scene object, so writable pointers begin /content/... or
/actions/.... Inline media bytes larger than 2 KiB are replaced in this read
projection by a read-only placeholder. The stored document is unchanged.
detail:"text" is the visible-text projection. Use it to find learner-facing
copy or prove that old wording no longer remains. It deliberately omits known
internal PBL prompts and runtime state.
Source and text responses are character-paged after 12,000 characters. Pass
the returned nextOffset back as offset until it disappears.
Writing with patch_stage
target is one scene path: /scenes/<order|sceneId>.
Every call carries a human intent and one or more ops. The ops are atomic:
the server applies them to a clone, validates the resulting scene, and writes
once. If op 2 fails, op 1 is not persisted.
| Op | Fields | Meaning |
|---|---|---|
set |
path, value |
replace an existing leaf or add an optional object key |
remove |
path |
delete an existing object key or splice an array index |
str_replace |
path, oldText, newText, optional replaceAll |
replace one exact occurrence of oldText inside the string field at path; replaceAll:true replaces every occurrence |
add_element |
element, optional afterId or index |
add one complete id-less slide element |
delete_element |
elementId |
delete one slide element by stable id |
Set/remove/str_replace paths are JSON Pointers rooted at the scene source:
/content/canvas/elements/0/content
/content/questions/1/options/0/label
/content/widgetConfig/description
/content/projectV2/milestones/0/title
/actions/2/text
Escape / in an object key as ~1 and ~ as ~0. Array indices are
canonical zero-based integers: 0, 1, 2, never 03, -1, or +1.
Every intermediate segment must exi
Preguntas frecuentes
¿Qué tipos de página existen?
La skill enumera los tipos diapositiva, cuestionario, interactiva y pbl.
¿Cómo añado o elimino páginas?
La skill dice que hay que usar la herramienta de lista de páginas para insertar, eliminar, reordenar y cambiar el título de las páginas.
¿Es esta la guía de campos completa?
No. La skill es un mapa que remite a capítulos de referencia más detallados.
Detalles
Descripción original del autor
The map for reading and editing an OpenMAIC stage document with read_stage, patch_stage, and grep_stage. Load it before patching a structure you have not patched before, when patch_stage rejects an operation, or whenever the path from a stage, outline, scene, content object, or action to the field you need is uncertain. It routes to field-level references for quizzes, interactive widgets, actions, and PBL projects; the installed slide-dsl skill remains the complete slide canvas manual.
repo: THU-MAIC/OpenMAIC
Popularidad
- Estrellas en GitHub
- 42 mil
- Posición en el ranking
- #6412
- 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
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.