current-slide
하는 일
이 스킬은 open-slide 뷰어의 현재 위치, 예를 들어 보고 있는 슬라이드와 페이지, 선택한 요소를 읽습니다. 이름을 부르는 대신 뷰어에서 가리키며 말하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓슬라이드 이름 없이 이 페이지를 고쳐 달라거나 이 제목을 바꿔 달라고 말할 때.
- ✓지금 보고 있는 슬라이드에 대해 물을 때.
- ✓뷰어에서 요소를 선택하고 그것을 바꾸고 싶은 경우.
스킬 링크
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/current-slide/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지금 보고 있는 슬라이드에서 이 제목을 더 크게 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 open-slide 개발 서버가 페이지를 바꾸거나 선택할 때마다 갱신하는 작은 파일을 읽습니다. 에이전트는 요청마다 이 파일을 새로 확인하는데, 마지막 확인 이후 여러분이 다른 슬라이드로 옮겼을 수 있기 때문입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
매번 파일을 왜 읽나요?
여러분이 다른 슬라이드나 요소로 옮겼을 수 있으므로, 오래된 값으로는 잘못된 슬라이드를 바꿀 수 있기 때문입니다.
파일은 어디에 있나요?
프로젝트의 node_modules 폴더 안에 있는 숨겨진 open-slide 폴더에 있습니다.
개발 서버가 실행 중이어야 하나요?
예. 이 파일은 실행 중인 open-slide 개발 서버가 씁니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 9.6k
- 순위
- #12221
- 라이선스
- MIT
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
apply-comments
9.6k에이전트가 open-slide 편집기에서 슬라이드에 남긴 댓글을 적용해, 요청된 각 수정을 하고 표시를 지우도록 돕습니다.
create-slide
9.6k에이전트가 open-slide 프로젝트에서 테마를 고르고 페이지 파일을 써서 새 슬라이드나 덱을 초안으로 만드도록 돕습니다.
create-theme
9.6k에이전트가 팔레트, 글꼴, 레이아웃을 담은 재사용 슬라이드 테마와 미리보기 파일을 만들도록 돕습니다.
slide-authoring
9.6k에이전트가 open-slide 페이지를 쓰는 기술 규칙을 따르도록, 캔버스 크기, 글자 크기, 색, 이미지, 노트, 전환 효과를 정리합니다.