apply-comments
하는 일
이 스킬은 open-slide 편집기가 슬라이드 파일 안에 남긴 댓글 표시를 읽고, 요청된 각 수정을 합니다. 편집기에서 슬라이드를 검토하고 피드백이 반영되기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓슬라이드 편집기에 남긴 댓글을 적용하라고 에이전트에게 요청할 때.
- ✓슬라이드 파일의 인스펙터 댓글을 처리하고 지우고 싶을 때.
- ✓댓글에서 나온 색상이나 문구 수정을 페이지에 적용하고 싶은 경우.
스킬 링크
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/apply-comments/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“편집기에서 슬라이드 3에 남긴 댓글을 적용하고, 끝나면 표시를 지워 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 슬라이드 파일에서 각 댓글 표시를 찾고, 메모와 그것이 가리키는 요소 또는 영역을 읽은 뒤, open-slide 작성 규칙에 맞춰 수정하고, 그다음 표시를 삭제합니다.
기술 내용 (원본 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).
자주 묻는 질문
댓글은 어디에 저장되나요?
각 댓글이 가리키는 요소 안에 놓인, 슬라이드 인덱스 파일의 작은 표시 줄로 저장됩니다.
수정은 슬라이드 스타일을 따르나요?
예. 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
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
create-slide
9.6k에이전트가 open-slide 프로젝트에서 테마를 고르고 페이지 파일을 써서 새 슬라이드나 덱을 초안으로 만드도록 돕습니다.
create-theme
9.6k에이전트가 팔레트, 글꼴, 레이아웃을 담은 재사용 슬라이드 테마와 미리보기 파일을 만들도록 돕습니다.
current-slide
9.6k에이전트가 open-slide 뷰어에서 여러분이 보고 있는 슬라이드, 페이지, 요소를 찾아, 이 페이지가 올바른 대상을 가리키도록 돕습니다.
slide-authoring
9.6k에이전트가 open-slide 페이지를 쓰는 기술 규칙을 따르도록, 캔버스 크기, 글자 크기, 색, 이미지, 노트, 전환 효과를 정리합니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.