apply-comments
O que ela faz
Esta skill lê as marcações de comentário que o editor open-slide deixa dentro dos arquivos de slide e faz cada edição solicitada. É para quem revisa slides no editor open-slide e quer que o retorno seja aplicado.
Quando usar
- ✓Quando você pede ao seu agente que aplique os comentários deixados no editor de slides.
- ✓Quando você quer que os comentários do inspetor em um arquivo de slide sejam processados e limpos.
- ✓Quando você quer mudanças, como um ajuste de cor ou de texto, feitas a partir dos comentários de uma página.
Link da skill
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/apply-comments/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Aplique os comentários que deixei no slide 3 do editor e remova as marcações quando terminar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill encontra cada marcação de comentário no arquivo de slide, lê a nota e o elemento ou região a que ela se refere, faz a edição de acordo com as regras de autoria de slides e depois apaga a marcação.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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).
Perguntas frequentes
Onde os comentários ficam guardados?
Como pequenas linhas de marcação dentro do arquivo de índice do slide, colocadas no elemento a que cada comentário se refere.
As edições seguem o estilo do slide?
Sim. A skill aplica cada mudança com as regras de autoria do open-slide, então ela fica consistente.
As marcações são removidas?
Sim. Cada marcação é apagada assim que seu comentário for aplicado.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 9,6 mil
- Posição no ranking
- #12218
- Licença
- MIT
- Atualizada em
- 29/10/2026
Comentários
- …
Mais skills deste repositório
create-slide
9,6 milAjuda seu agente a rascunhar um novo slide ou apresentação em um projeto open-slide, escolhendo um tema e escrevendo os arquivos das páginas para você.
create-theme
9,6 milAjuda seu agente a criar um tema de slides reutilizável, com paleta, fontes e layout, além de um arquivo de visualização ao vivo para um projeto open-slide.
current-slide
9,6 milAjuda seu agente a descobrir qual slide, página e elemento você está vendo no visualizador open-slide, para que esta página signifique a página certa.
slide-authoring
9,6 milDá ao seu agente as regras técnicas para escrever páginas do open-slide, incluindo tamanho da tela, escala de tipos, cores, imagens, notas e transições.
Skills parecidas
canvas
394 milPermite que seu agente mostre um widget visual hospedado em um painel conectado a um Mac e depois oculte o painel ou o mova para outra página.
control-ui
394 milAjuda seu agente a organizar e diagnosticar a Control UI do OpenClaw, incluindo sessões, painéis e Gateways conectados.
diagram-maker
394 milAjuda seu agente a criar diagramas claros em SVG, HTML ou Excalidraw editável, para processos, arquitetura de sistemas e esboços de quadro branco.