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
42k一週間の講座や、章ごとに分けた本など、つながりのある一連の授業を計画し、承認を得てから一つずつ作るのを支援します。
deep-interactive
42kスライドを読ませるのではなく、ほとんどのページで、学習者がシミュレーション、図、コード、ゲームを操作できるコースを設計するのを支援します。
deep-research
42k最近の事実や事実に基づくトピックについて、まず生きている情報源を調べ、各主張を確認した情報源に結び付けてコースを作るのを支援します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。