2.0 KiB
2.0 KiB
open-slide — Agent Guide
You are authoring slides in this repo. Every slide is arbitrary React code that you write.
Hard rules
- Put your slide under
slides/<kebab-case-id>/. - The entry is
slides/<id>/index.tsx. - Put slide-specific images/videos/fonts under
slides/<id>/assets/. For assets reused across decks or themes (logos, avatars), use the globalassets/folder and import via@assets/.... - Do not touch
package.json,open-slide.config.ts, or other slides. - Do not add dependencies. Use only
reactand standard web APIs.
Which skill to use
- Drafting a new deck — use the
create-slideskill. It walks through scoping questions, structure, and hand-off. - Applying inspector comments (
@slide-commentmarkers in a page) — use theapply-commentsskill. - Creating or extracting a theme — use the
create-themeskill. Themes live as markdown underthemes/<id>.mdand are read bycreate-slidebefore authoring. - Resolving "this page" / "this element" — when the user references the current slide or selection without naming it, consult the
current-slideskill. It reads the dev server'snode_modules/.open-slide/current.jsonto find which slide, page, and inspector-picked element they mean. - Any other slide edit — read the
slide-authoringskill before writing. It is the technical reference for everything insideslides/<id>/: file contract, the 1920×1080 canvas, type scale, palette, layout, assets, self-review checklist, and anti-patterns.create-slideandapply-commentsboth defer to it for the how.
Keep this file short: hard rules only. All deeper guidance lives in the skills above.
Updating skills
The skills above are managed by @open-slide/core. Do not edit them in place. To pull the latest versions:
pnpm up @open-slide/core
pnpm sync:skills
pnpm dev will also detect drift on startup and offer to sync. pnpm sync:skills --dry-run (via pnpm exec open-slide sync:skills --dry-run) previews changes without writing.