apply-comments
यह क्या करती है
यह स्किल open-slide एडिटर द्वारा स्लाइड फ़ाइलों के अंदर छोड़े गए टिप्पणी चिह्नों को पढ़ती है, फिर हर माँगा गया संपादन करती है। यह उन लोगों के लिए है जो open-slide एडिटर में स्लाइड देखते हैं और चाहते हैं कि उनका फ़ीडबैक लागू हो।
कब इस्तेमाल करें
- ✓जब आप अपने एजेंट से स्लाइड एडिटर में छोड़ी टिप्पणियाँ लागू करने को कहें।
- ✓जब आप चाहें कि स्लाइड फ़ाइल की इंस्पेक्टर टिप्पणियाँ प्रोसेस हों और साफ़ हो जाएँ।
- ✓जब आप किसी पेज की टिप्पणियों से रंग या शब्दों का सुधार करवाना चाहें।
Skill का लिंक
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/apply-comments/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एडिटर में स्लाइड 3 पर मेरी छोड़ी टिप्पणियाँ लागू कीजिए, और काम पूरा होने पर चिह्न हटा दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल स्लाइड फ़ाइल में हर टिप्पणी चिह्न ढूँढती है, नोट और उस एलिमेंट या क्षेत्र को पढ़ती है जिसकी ओर वह इशारा करता है, स्लाइड लेखन नियमों के अनुसार बदलाव करती है, फिर चिह्न हटाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Apply slide comments
The open-slide editor has a comment mode that lets the user click a rendered page element, or drag across a region of the page, and attach a textual comment (e.g. "make this red", "change to 'Open Slide Rocks'"). Each comment is persisted as an in-source JSX marker inside slides/<slideId>/index.tsx.
Your job: read those markers, perform the described edits, and delete the markers.
Before making any page edit, consult the
slide-authoringskill — it is the technical reference for howslides/<id>/index.tsxis structured (canvas, type scale, palette, assets, file contract). A comment like "make this bigger" or "change the accent colour" should be applied in a way that stays consistent with those rules.
Marker format
{/* @slide-comment id="c-<8hex>" ts="<ISO>" text="<base64url(JSON)>" */}
Sits as the first child inside the JSX element it refers to (i.e. between that element's opening
>and its other children). The marker is dropped into its target, not floated above it. Newly written markers get a line of their own; older ones may share a line with the content that follows them.textis base64url-encoded JSON:{"note": "...", "hint"?: "...", "rect"?: {"x", "y", "w", "h"}, "page"?: n}.rectis present when the comment was left on a dragged region rather than on an element. Values are pixels on the 1920×1080 page canvas, measured from the page's top-left corner. The marker still sits inside the deepest element that contains the region, but the note refers to what is inside that region — possibly several children, or only part of the enclosing element.pageis the 0-based index (into the default export array) of the page the comment was left on.
Detection regex (authoritative — use exactly this):
/\{\/\*\s*@slide-comment\s+id="(c-[a-f0-9]+)"\s+ts="([^"]+)"\s+text="([A-Za-z0-9_\-]+={0,2})"\s*\*\/\}/g
Procedure
Identify the target slide(s).
- If the user names one (
getting-started,q2-roadmap, etc.), work on that singleslides/<slideId>/index.tsx. - If they say "all" or don't specify, scan every
slides/*/index.tsx. Process each slide one at a time.
- If the user names one (
Read the file and find all markers.
- Run the regex above against the whole file.
- For each match, base64url-decode
textandJSON.parseit to get{ note, hint?, rect?, page? }. - Record each hit as
{ id, lineIndex (0-based), note, hint, rect, page }. - If there are no markers, tell the user and stop.
Understand each comment in context.
- The targeted JSX element is the enclosing element of the marker — i.e. read upward from the marker line until you reach the unclosed JSX opening tag whose body the marker lives in. That element is the target. (For self-closing elements like
<img />, the inspector hoists the marker to the nearest non-self-closing ancestor; in that case the comment usually refers to a child of the enclosing element rather than the enclosing element itself — use thenotetext to disambiguate.) - Read enough surrounding code (parent element, sibling elements, inline styles) to apply the change faithfully. A comment inside a
<div>with an inlinebackgroundstyle usually refers to that element's styling, for example. - When the payload has a
rect, work out which children of the enclosing element fall inside that region (compare their positions and sizes against the rect on the 1920×1080 canvas) and apply the note to those — not to the whole enclosing element. - If the
noteis ambiguous, do the smallest reasonable interpretation and mention the assumption in your summary.
- The targeted JSX element is the enclosing element of the marker — i.e. read upward from the marker line until you reach the unclosed JSX opening tag whose body the marker lives in. That element is the target. (For self-closing elements like
Apply edits in reverse line order.
- Sort markers by descending
lineIndexand process one at a time, using theEdittool. - Processing top-down would invalidate line numbers for later markers as the file shrinks/grows.
- Sort markers by descending
Remove each marker after applying its edit.
- Delete the marker token. If nothing else is left on that line, delete the whole line including its trailing
\n; if content shares the line, keep that content. - Never leave a marker behind for an edit you applied — that signals a failure. Markers deliberately skipped per the edge cases below stay in place.
- Delete the marker token. If nothing else is left on that line, delete the whole line including its trailing
Verify.
- After all edits, re-read the file and confirm the only remaining markers are ones you reported as skipped.
- Confirm the edited JSX is well-formed (balanced tags, no dangling attributes).
अक्सर पूछे जाने वाले सवाल
टिप्पणियाँ कहाँ सेव होती हैं?
स्लाइड की index फ़ाइल के अंदर छोटी चिह्न पंक्तियों के रूप में, उस एलिमेंट में जिसकी ओर टिप्पणी इशारा करती है।
क्या संपादन स्लाइड की शैली का पालन करेंगे?
हाँ। स्किल हर बदलाव open-slide लेखन नियमों से लागू करती है, इसलिए वह एक जैसा रहता है।
क्या चिह्न हटते हैं?
हाँ। हर चिह्न तब हटता है जब उसकी टिप्पणी लागू हो जाए।
जानकारी
लेखक का मूल विवरण
Apply pending @slide-comment markers written by the open-slide inspector tool. Use when the user asks to "apply comments", "process slide comments", "apply the inspector comments", or references markers left inside `slides/<id>/index.tsx`.
repo: open-slide/open-slide
लोकप्रियता
- GitHub स्टार
- 9.6k
- रैंकिंग में स्थान
- #12218
- लाइसेंस
- MIT
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
create-slide
9.6kआपके एजेंट को open-slide प्रोजेक्ट में नई स्लाइड या डेक का ड्राफ़्ट बनाने में मदद करती है। थीम चुनती है और पेज फ़ाइलें आपके लिए लिखती है।
create-theme
9.6kआपके एजेंट को open-slide प्रोजेक्ट के लिए दोबारा इस्तेमाल होने वाली स्लाइड थीम बनाने में मदद करती है, जिसमें रंग-पैलेट, फ़ॉन्ट और लेआउट के साथ लाइव पूर्वावलोकन फ़ाइल भी हो।
current-slide
9.6kआपके एजेंट को open-slide व्यूअर में पता लगाने देती है कि आप कौन सी स्लाइड, पेज और एलिमेंट देख रहे हैं, ताकि 'यह पेज' का मतलब सही पेज हो।
slide-authoring
9.6kआपके एजेंट को open-slide पेज लिखने के तकनीकी नियम देती है, जिनमें कैनवास आकार, टेक्स्ट स्केल, रंग, छवियाँ, नोट्स और ट्रांज़िशन शामिल हैं।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।