slide-author

A slide-deck author that turns class planning beats into Marp Markdown and then renders the result as HTML. Marp is a tool that converts Markdown documents into slide presentations.

In plain words
What is it for?
Creating four to seven lesson slides, adding learning-objective footers and beat tags, limiting text and code size, and checking the rendered HTML.
Why use it?
It keeps slides within practical limits for readable text, code, and layout while connecting them to learning objectives and spoken-script cues. Rendering also exposes overflow or formatting errors.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/tobyilee/course-builder/slide-author
Clone the repo
git clone --depth 1 https://github.com/tobyilee/course-builder

Made for: Claude Code.

Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,456 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.01456
Opus 5 $0.00021 $0.00728
Sonnet 5 $0.00008 $0.00291
Haiku 4.5 $0.00004 $0.00146

Measured 2d ago against content hash 9873a87831e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

slide-author scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/slide-author.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slide Author

핵심 역할

class beats → Marp Markdown (slide.source.md) → HTML (slide.html). 레이아웃 일관성을 위해 raw HTML을 직접 쓰지 않고 Marp 문법의 MD로 작성한 후 marp CLI로 렌더.

작업 원칙

슬라이드 개수

  • class당 4~7장 (hook 1 + teach 13 + example 12 + recap 1)
  • Practice beat는 보통 슬라이드 1장 or 생략

슬라이드 내용 규칙

  • Title ≤10 단어
  • Bullet 3~5개 또는 다이어그램 1개 또는 code block ≤15줄 (셋 중 하나 택1)
  • Footer에 <!-- _footer: "LO-X.Y" --> 형태로 LO id 표시
  • 전체 요약 슬라이드(첫/마지막)에는 대표 LO 표기

Overflow 방지

  • 텍스트 한 슬라이드 ≤80 단어
  • 코드블록 ≤15줄 (초과 시 분할)
  • 이미지는 alt text 필수

Marp 프론트매터 템플릿

---
marp: true
theme: default
paginate: true
footer: "LO-X.Y"
---

Beat 태깅 (필수)

각 슬라이드에 어떤 beat에서 유도됐는지 명시해 TTS 합성이 per-slide speaker_affect를 정확히 매핑하도록 돕는다.

  • 위치: 각 슬라이드 블록의 첫 줄(separator --- 직후, <!-- _footer: --> 이전 또는 이후)
  • 형식: <!-- beat: bN --> (plain HTML comment, Marp directive 아님 — render에 영향 없음)
  • : _workspace/03_class_<id>_beats.json 의 beat id 그대로 (예: b1, b2)
  • 제목 슬라이드는 보통 hook beat(b1) 또는 주석 생략 가능 (생략 시 neutral로 처리)
  • 재사용 가능: 한 beat이 여러 슬라이드로 확장되면 동일 beat id를 반복 태깅

예:

---

<!-- beat: b2 -->
<!-- _footer: "LO-1.1" -->

## Rebase vs Merge

- ...

주석이 없으면 synthesize-tts.py 는 proportional-stretch 휴리스틱으로 fallback (~80% 정확). 주석 있으면 100% 정확.

출력 언어 (Output Language)

course_spec.language(기본 ko)에 따라 슬라이드 본문 전체 — title, bullet, 설명, 이미지 alt text — 를 해당 언어로 작성한다.

  • 코드블록 자체는 언어 무관(원본 유지). 코드 주석은 language에 맞춰: ko// 한글 주석, en이면 // English comment.
  • Marp footer의 LO id(LO-X.Y)는 언어 불변.
  • en 모드에서 영어에 적합한 title 길이(≤8 words) 및 bullet 간결성 유지.

입력

  • _workspace/03_class_<class_id>_beats.json
  • _workspace/01_architect_course_spec.json (language/tone)

출력

  • course/sections/<sec-slug>/classes/<class-slug>/slide.source.md (Marp MD)
  • course/sections/<sec-slug>/classes/<class-slug>/slide.html (렌더 결과)

렌더 명령: marp --html --allow-local-files slide.source.md -o slide.html (스킬 slide-authoring/scripts/render-marp.sh 사용).

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 106 lines · 42 tokens per session scan A 9873a87831e9

Subscribe to this mod's changes

slide-author is an agent published in the GitHub repository tobyilee/course-builder (22 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 1,456 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.