current-slide
What it does
This skill reads the live position in the open-slide viewer, such as the slide and page you are on and any element you selected. It is for people who point at things in the viewer instead of naming them.
When to use it
- βWhen you say fix this page or change this heading without naming the slide.
- βWhen you ask about the slide you are looking at right now.
- βWhen you select an element in the viewer and want it changed.
Skill link
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/current-slide/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake this heading bigger on the slide I am looking at.β
5 new skills a week. 1 minute to read.
How it works
The skill reads a small file that the open-slide dev server updates on each page change and selection. Your agent checks it fresh on each request, since you may have moved to another slide since the last check.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Where is the user right now?
When the user says "fix this page", "tweak this heading", or "the slide I'm looking at", they almost never name the slide id, page number, or element β they mean wherever they are in the dev viewer. Before asking "which slide?" or "which element?", check the file the dev server writes on every navigation and inspector pick.
Re-read on every deictic turn β never reuse a prior read
current.json is a live cursor, not a fact about the conversation. The user moves between slides, pages, and elements freely between your turns β including while you were doing other work. Read the file fresh at the start of every new turn that uses a deictic reference, even if:
- you already read it earlier in this same conversation,
- you just finished editing the slide it pointed to,
- the user's new message sounds like a continuation ("now make it bigger", "also fix this one", "keep going").
A "continue editing" follow-up is exactly the case where the user has likely just navigated to a different slide or picked a different element. Trusting your last read here will silently edit the wrong file. Re-read, compare slideId / pageIndex / selection against what you used last time, and act on the new values.
How to read it
node_modules/.open-slide/current.json
Path is relative to the project root (the user's cwd, the directory that contains slides/ and package.json). Use the Read tool. The file is JSON.
What you get
{
"slideId": "q2-roadmap",
"pageIndex": 2,
"pageNumber": 3,
"totalPages": 8,
"slideTitle": "Q2 Roadmap",
"view": "slides",
"pagePath": "slides/q2-roadmap/index.tsx",
"selection": {
"line": 42,
"column": 6,
"tagName": "h1",
"text": "Q2 Roadmap"
},
"updatedAt": "2026-05-09T14:32:11.123Z"
}
slideIdβ folder name underslides/. Use as-is for any/__slides/<id>/...API or as the URL segment.pageIndexβ 0-based, for use with the page array inindex.tsx(export default [Cover, Body, ...]).pageNumberβ 1-based, for use in messages to the user ("page 3 of 8") and for the URL?p=N.pagePathβ relative path to the slide source. Hand straight toRead/Edit.viewβ"slides"(canvas view) or"assets"(asset manager). If"assets", the user is browsing files for that slide rather than viewing a page.selectionβnullif nothing is selected. Otherwise, the JSX element the user picked in the inspector overlay:line(1-indexed) andcolumn(0-indexed) point to the JSX opening tag insidepagePath. This is the canonical handle β match against the source line, not the rendered DOM.tagNameis the rendered DOM tag, lowercased ("h1","div","img").textis a trimmed text snippet (β€120 chars) from the element'stextContent, useful as a sanity check that you're looking at the right node.- Selection auto-clears whenever the user navigates to a different slide or page.
updatedAtβ ISO timestamp of the last navigation or selection change. Use it to detect staleness.
When to use this
- The user references the current slide/page deictically: "this", "here", "the page I'm on", "the slide I'm looking at", "what I'm working on".
- The user references a specific element: "this heading", "this image", "the button I just clicked", "tighten this", "change the color of this". If
selectionis non-null, that's the element they mean. - Before asking "which slide?" or "which element?" as a clarifying question β check this file first.
- Before guessing from
git log, recently-edited files, or the most recent slide folder.
When NOT to use this
- The user names a slide explicitly ("edit
q2-roadmap") β use that name directly. - The
apply-commentsworkflow already finds the right file via@slide-commentmarkers; it doesn't need this skill. - For listing or discovering slides β read
slides/directly.
Staleness β verify before acting
updatedAt is the last time the user navigated. Treat it like a cache:
- Fresh (under ~5 minutes old): trust it. Open
pagePath, do the work. - Older than ~5 minutes: confirm with the user before editing. The dev server may not be running; the user may have switched contexts.
- Hours/days old: ignore it. Ask the user which slide they mean.
A newer updatedAt than the one you saw last turn is the normal signal that the user has moved β switch to the new slideId / pageIndex / selection without as
FAQ
Why read the file every time?
You may have moved to a different slide or element, and an old reading could change the wrong slide.
Where is the file?
It is in the hidden open-slide folder inside the project's node_modules folder.
Does the dev server need to be running?
Yes. The file is written by the open-slide dev server while it runs.
Details
Original description by the author
Resolve which slide, page, and (optionally) selected element the user is currently viewing in the open-slide dev server. Consult this whenever the user references "this page", "this slide", "this element", "the slide I'm on", "the current page", or any deictic reference to slide content without naming it. Re-read `node_modules/.open-slide/current.json` at the start of every such turn β the user navigates between turns, so a value you read earlier in the conversation is almost certainly stale.
repo: open-slide/open-slide
Popularity
- GitHub stars
- 9.6k
- Ranking position
- #12221
- License
- MIT
- Updated
- 10/29/2026
Comments
- β¦
More skills from this repository
apply-comments
9.6kHelps your agent apply the comments you left on a slide in the open-slide editor, making each requested edit and removing the markers.
create-slide
9.6kHelps your agent draft a new slide or deck in an open-slide project, picking a theme and writing the page files for you.
create-theme
9.6kHelps your agent create a reusable slide theme with its palette, fonts and layout, plus a live preview file for an open-slide project.
slide-authoring
9.6kGives your agent the technical rules for writing open-slide pages, including canvas size, type scale, colors, images, notes and transitions.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.