apply-comments
Ce qu’il fait
Cette compétence lit les marqueurs de commentaires que l'éditeur open-slide laisse dans les fichiers de diapositives, puis effectue chaque modification demandée. Elle s'adresse aux personnes qui relisent des diapositives dans l'éditeur open-slide et veulent que leurs retours soient appliqués.
Quand l’utiliser
- ✓Quand vous demandez à votre agent d'appliquer les commentaires laissés dans l'éditeur de diapositives.
- ✓Quand vous voulez que les commentaires d'inspection d'un fichier de diapositive soient traités et effacés.
- ✓Quand vous voulez qu'une modification de couleur ou de texte soit faite à partir des commentaires d'une page.
Lien du skill
https://github.com/open-slide/open-slide/blob/main/packages/core/skills/apply-comments/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Applique les commentaires que j'ai laissés sur la diapositive 3 dans l'éditeur, et retire les marqueurs une fois terminé.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La compétence trouve chaque marqueur de commentaire dans le fichier de diapositive, lit la note et l'élément ou la zone visé, effectue la modification conformément aux règles de rédaction des diapositives, puis supprime le marqueur.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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).
Questions fréquentes
Où sont stockés les commentaires ?
Sous forme de petites lignes de marqueur dans le fichier d'index de la diapositive, placées dans l'élément auquel chaque commentaire se rapporte.
Les modifications suivront-elles le style de la diapositive ?
Oui. La compétence applique chaque changement selon les règles de rédaction open-slide, afin de rester cohérente.
Les marqueurs sont-ils supprimés ?
Oui. Chaque marqueur est effacé une fois son commentaire appliqué.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 9.6k
- Position au classement
- #12218
- Licence
- MIT
- Mis à jour
- 29/10/2026
Commentaires
- …
Autres skills de ce dépôt
create-slide
9.6kAide votre agent à rédiger une nouvelle diapositive ou une présentation complète dans un projet open-slide, en choisissant un thème et en écrivant les fichiers de page à votre place.
create-theme
9.6kAide votre agent à créer un thème de diapositives réutilisable, avec sa palette, ses polices et sa mise en page, ainsi qu'un fichier d'aperçu en direct pour un projet open-slide.
current-slide
9.6kAide votre agent à trouver la diapositive, la page et l'élément que vous regardez dans la visionneuse open-slide, afin que « cette page » désigne la bonne.
slide-authoring
9.6kDonne à votre agent les règles techniques de rédaction des pages open-slide, notamment la taille du canevas, l'échelle typographique, les couleurs, les images, les notes et les transitions.
Skills similaires
canvas
394kPermet à votre agent d'afficher un widget visuel hébergé sur un panneau Mac connecté, puis de masquer ce panneau ou de le déplacer vers une autre page.
control-ui
394kAide votre agent à organiser et dépanner l'interface de contrôle d'OpenClaw, y compris les sessions, les tableaux de bord et les passerelles connectées.
diagram-maker
394kAide votre agent à créer des diagrammes clairs en SVG, HTML ou Excalidraw modifiable, pour des processus, des architectures système et des croquis de tableau blanc.