slide-dsl
Что он делает
Этот скилл — справочник о том, как страницы-слайды хранятся в OpenMAIC, поле за полем. Это для людей или ИИ, которые редактируют слайды на уровне данных, где небольшая ошибка может сломать страницу.
Когда использовать
- ✓Когда нужно изменить базовое содержимое или данные макета слайда напрямую.
- ✓Когда правка слайда выглядит не так, как вы ожидали.
- ✓Когда нужно знать, какое поле на самом деле использует отображение для конкретного значения.
Ссылка на скилл
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Измени цвет фона этого слайда и проверь, что изменение действительно видно на экране.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
ИИ читает сохраненную структуру страницы, записывает точное поле, которое использует отображение, и затем перечитывает страницу, чтобы убедиться, что изменение появилось.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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 |
|---|
Частые вопросы
Очищает ли система HTML, который я пишу?
Нет. В скилле сказано, что система сохраняет то, что вы отправили, поэтому руководство показывает, что работает.
Что проверяется при сохранении?
В скилле сказано, что при записи проверяется только структура страницы, а не смысл или внешний вид.
Зачем проверять страницу после правки?
В скилле сказано, что страница может быть корректной по структуре и все равно выглядеть неправильно на экране.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 42k
- Место в рейтинге
- #6410
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
build-personal-skill
42kПомогает агенту превратить ваши прошлые записи о создании курсов и переписку в личный многоразовый скилл на основе закономерностей из вашей истории.
curriculum-planner
42kПомогает агенту спланировать серию связанных уроков, например семидневный курс или книгу, разбитую по главам, и создавать их по одному после вашего одобрения.
deep-interactive
42kПомогает агенту спроектировать курс, в котором ученики на большинстве страниц работают с симуляциями, схемами, кодом и играми, а не читают слайды.
deep-research
42kПомогает агенту создать курс по актуальным или фактическим темам: сначала он изучает живые источники, а затем связывает каждое утверждение с проверенным источником.
Похожие скиллы
angular-developer
280kПомогает агенту писать код на Angular и советовать по структуре проекта. Полезен для новых проектов, создания частей кода и улучшения производительности.
frontend-a11y
280kПомогает агенту делать веб-интерфейсы доступными для всех, чтобы сайты и приложения работали с программами чтения с экрана и клавиатурой.
frontend-patterns
280kАгент применяет современные паттерны фронтенд-разработки: оптимизирует производительность, управляет состоянием и следует практикам React и Next.js.