slide-craft
하는 일
OpenMAIC 슬라이드 페이지의 디자인 규칙을 설명합니다. 여백, 글자 크기, 대비, 간격을 포함합니다. 원래 디자인에 맞는 변경을 원하는 슬라이드 편집자를 위한 스킬입니다.
사용하는 경우
- ✓슬라이드의 요소 하나를 바꾸면서 잘 맞게 하고 싶을 때.
- ✓슬라이드의 글자가 상자보다 커서 넘칠 때.
- ✓슬라이드가 답답하거나 비어 보여서 간격을 개선해야 하는 경우.
스킬 링크
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-craft/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 슬라이드의 글자가 상자를 넘치고 있어요. 다른 슬라이드와 맞게 들어가도록 고쳐 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 슬라이드 캔버스, 텍스트 높이, 색 대비에 대한 측정값과 규칙을 사용해, 페이지 디자인에 맞는 변경을 만듭니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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>
자주 묻는 질문
슬라이드 캔버스의 크기는 얼마인가요?
스킬에 따르면 캔버스는 1000 x 562.5 단위이며, 모든 쪽에 50 단위 여백이 있습니다.
색상 수정도 다루나요?
예. 스킬은 대비 쌍과 색상 수정 규칙을 포함합니다.
요소를 자동으로 정렬하나요?
아니요. 스킬에는 정렬 기능이 없으므로 각 위치를 직접 지정해야 합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 42k
- 순위
- #6409
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
build-personal-skill
42k과거 수업 제작 기록과 대화를 바탕으로, 자신의 이력에서 찾은 패턴을 담은 개인 재사용 스킬을 만들도록 돕습니다.
curriculum-planner
42k7일짜리 과정이나 장별로 나눈 책처럼, 연결된 여러 수업의 계획을 세우고 승인 후 하나씩 만들도록 돕습니다.
deep-interactive
42k학습자가 슬라이드를 읽는 대신 대부분의 페이지에서 시뮬레이션, 다이어그램, 코드, 게임을 다루는 과정을 설계하도록 돕습니다.
deep-research
42k최신이나 사실 기반 주제에 대해 실시간 출처를 먼저 조사하고, 각 주장을 확인한 출처와 연결하는 과정을 만들도록 돕습니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.