slide-dsl
하는 일
OpenMAIC에서 슬라이드 페이지가 필드 단위로 어떻게 저장되는지 정리한 참고 자료입니다. 작은 실수가 페이지를 망가뜨릴 수 있는 데이터 수준에서 슬라이드를 편집하는 사람이나 AI를 위한 스킬입니다.
사용하는 경우
- ✓슬라이드의 기본 내용이나 레이아웃 데이터를 직접 바꿔야 할 때.
- ✓슬라이드 편집이 기대한 대로 나타나지 않을 때.
- ✓화면에 실제로 쓰이는 필드가 어떤 값인지 알아야 하는 경우.
스킬 링크
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 슬라이드의 배경색을 바꿔 주시고, 그 변경이 화면에 실제로 나타나는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 페이지의 저장 구조를 읽고, 화면이 쓰는 정확한 필드에 값을 쓴 뒤, 페이지를 다시 읽어 변경이 보이는지 확인합니다.
기술 내용 (원본 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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
build-personal-skill
42k과거 수업 제작 기록과 대화를 바탕으로, 자신의 이력에서 찾은 패턴을 담은 개인 재사용 스킬을 만들도록 돕습니다.
curriculum-planner
42k7일짜리 과정이나 장별로 나눈 책처럼, 연결된 여러 수업의 계획을 세우고 승인 후 하나씩 만들도록 돕습니다.
deep-interactive
42k학습자가 슬라이드를 읽는 대신 대부분의 페이지에서 시뮬레이션, 다이어그램, 코드, 게임을 다루는 과정을 설계하도록 돕습니다.
deep-research
42k최신이나 사실 기반 주제에 대해 실시간 출처를 먼저 조사하고, 각 주장을 확인한 출처와 연결하는 과정을 만들도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.