본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)42k · #6410

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Reading before writing — the three read depths
  2. The document — content → canvas
  3. The canvas — viewport, theme, background, animations, paint order
  4. How an edit reaches the JSON — three ops, pointer rules
  5. What the structure schema refuses — the only hard boundary
  6. Two renderers paint your page — playback vs. preview
  7. Fields every element carries
  8. The ten element types — one section each
  9. The rendering truth of content HTML — the most important section
  10. Quick reference — one row per element type
  11. Where this sits
  12. 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.
  • inventory strips the markup. Its text is 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.
  • source always 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 full content object — type, schemaVersion and the complete canvas, background, theme and animations included.
  • detail:"text" gives you pointers. Each path is that element's own /content/canvas/elements/N, so a residue check hands you the pointer to fix. Note that its text for a latex element is the LaTeX source, for code the lines joined by newlines, and for table the 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬