मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग9.6k · #12221

current-slide

यह क्या करती है

यह स्किल open-slide व्यूअर में लाइव स्थिति पढ़ती है, जैसे आप किस स्लाइड और पेज पर हैं और आपने कौन सा एलिमेंट चुना है। यह उन लोगों के लिए है जो चीज़ों का नाम लेने की बजाय व्यूअर में उन्हें इंगित करते हैं।

कब इस्तेमाल करें

  • ✓जब आप स्लाइड का नाम लिए बिना कहें कि इस पेज को ठीक करो या इस हेडिंग को बदलो।
  • ✓जब आप उस स्लाइड के बारे में पूछें जो अभी आप देख रहे हैं।
  • ✓जब आप व्यूअर में कोई एलिमेंट चुनें और उसे बदलवाना चाहें।

Skill का लिंक

https://github.com/open-slide/open-slide/blob/main/packages/core/skills/current-slide/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/open-slide/open-slide/blob/main/packages/core/skills/current-slide/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं जो स्लाइड देख रहा हूँ उस पर यह हेडिंग बड़ी कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल एक छोटी फ़ाइल पढ़ती है, जिसे open-slide dev server हर पेज बदलने और चुनाव पर अपडेट करता है। आपका एजेंट हर अनुरोध पर उसे ताज़ा जाँचता है, क्योंकि पिछली जाँच के बाद आप किसी और स्लाइड पर जा चुके हो सकते हैं।

तकनीकी सामग्री (मूल 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 under slides/. Use as-is for any /__slides/<id>/... API or as the URL segment.
  • pageIndex — 0-based, for use with the page array in index.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 to Read / 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 — null if nothing is selected. Otherwise, the JSX element the user picked in the inspector overlay:
    • line (1-indexed) and column (0-indexed) point to the JSX opening tag inside pagePath. This is the canonical handle — match against the source line, not the rendered DOM.
    • tagName is the rendered DOM tag, lowercased ("h1", "div", "img").
    • text is a trimmed text snippet (≤120 chars) from the element's textContent, 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 selection is 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-comments workflow already finds the right file via @slide-comment markers; 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 फ़ोल्डर में है।

क्या dev server चालू होना चाहिए?

हाँ। यह फ़ाइल open-slide dev server चलने के दौरान लिखी जाती है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
29/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

apply-comments

9.6k

आपके एजेंट को open-slide एडिटर में स्लाइड पर छोड़ी गई टिप्पणियाँ लागू करने में मदद करती है। हर माँगा गया संपादन करती है और चिह्न हटाती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

create-slide

9.6k

आपके एजेंट को open-slide प्रोजेक्ट में नई स्लाइड या डेक का ड्राफ़्ट बनाने में मदद करती है। थीम चुनती है और पेज फ़ाइलें आपके लिए लिखती है।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

create-theme

9.6k

आपके एजेंट को open-slide प्रोजेक्ट के लिए दोबारा इस्तेमाल होने वाली स्लाइड थीम बनाने में मदद करती है, जिसमें रंग-पैलेट, फ़ॉन्ट और लेआउट के साथ लाइव पूर्वावलोकन फ़ाइल भी हो।

डिज़ाइनब्रांडिंग

slide-authoring

9.6k

आपके एजेंट को open-slide पेज लिखने के तकनीकी नियम देती है, जिनमें कैनवास आकार, टेक्स्ट स्केल, रंग, छवियाँ, नोट्स और ट्रांज़िशन शामिल हैं।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

मिलती-जुलती skills