Synthèse automatique
Lit les marqueurs `@slide-comment` déposés dans `slides/<id>/index.tsx` par l'inspecteur open-slide, applique les modifications demandées dans le JSX puis supprime les marqueurs traités.
Points forts
- Regex de détection fournie et faisant autorité, avec décodage base64url du JSON `{note, hint}`
- Procédure précise : édition en ordre de lignes décroissant pour éviter de décaler les marqueurs suivants
- Rappel explicite de consulter la skill `slide-authoring` pour respecter canvas, échelle typographique et palette
- Vérification finale (marqueurs restants, JSX bien formé, typecheck/lint/build selon le projet) et gestion des cas ambigus
Limites
- Ne traite que les marqueurs de l'inspecteur open-slide, inutilisable hors de ce format de projet
- Les commentaires ambigus sont interprétés au plus petit changement raisonnable, avec hypothèse signalée plutôt que clarification
- Pas de script fourni : le traitement repose sur des appels répétés à l'outil Edit
Quand un utilisateur a annoté des slides via l'inspecteur open-slide et demande d'appliquer, traiter ou nettoyer ces commentaires.
Pour créer ou restructurer une slide de zéro, ou pour des retours formulés en langage naturel sans marqueurs dans le fichier.
Analyse de sécurité
PrudenceNo destructive, exfiltration, or privilege-escalation behavior: operations are scoped to `slides/<id>/index.tsx`, deleting only marker comments it has processed, and explicitly forbids touching `package.json`, config, or files outside `slides/`, adding dependencies, or leaving breadcrumbs. The residual risk is that the skill's core mechanic is 'decode a base64 blob and follow it as instructions', plus optional inline `node -e` and project build scripts — all legitimate for the stated purpose but worth a caution flag rather than a clean safe.
- •Base64url-encoded `text` payloads inside source files are decoded and then acted upon as instructions — an obfuscated-instruction channel (inherent to the tooling, but an attacker who can write to `slides/*/index.tsx` or supply a repo can smuggle directives past human review)
- •Encourages running `node -e '...'` inline to inspect payloads; arbitrary decoded strings could be pasted into that command if the agent is careless
- •Writes/edits files under `slides/` and may run package manager typecheck/lint/build scripts (project-defined commands execute on the host)
Exemples
Apply the inspector comments on the getting-started slide.Process slide comments across all slides.Apply comments in slides/q2-roadmap/index.tsx.name: apply-comments
description: 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.
Apply slide comments
The open-slide editor has an inspector tool that lets the user click on a rendered page element 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)>" */}
-
Always sits on its own line 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. -
textis base64url-encoded JSON:{"note": "...", "hint"?: "..."}. -
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? }. - Record each hit as
{ id, lineIndex (0-based), note, hint }. - 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. - 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 entire marker line including its trailing
\n. - 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 entire marker 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). If the project's
package.jsonhas typecheck/lint scripts, run them with the project's package manager; scaffolded projects ship neither TypeScript nor a linter — there, rely on the running dev server (or thebuildscript) to surface compile errors. Fix any errors you introduced.
-
Report.
- Summarise:
N applied, M skippedplus a one-line description of each change (including the slide id).
- Summarise:
base64url decoding helper
function decode(s) {
const pad = s.length % 4 === 0 ? '' : '='.repeat(4 - (s.length % 4));
return Buffer.from(s.replace(/-/g, '+').replace(/_/g, '/') + pad, 'base64').toString('utf8');
}
You can run this inline via node -e '...' if you need to inspect a payload; otherwise just reason about the decoded string.
Edge cases
- Marker with no enclosing JSX element (shouldn't happen — the inspector won't write one — but if you find one): delete it and note as orphan.
- Multiple markers stacked on consecutive lines inside the same element: they all refer to that enclosing element. Read their notes in source order to understand the combined intent, then apply and delete them bottom-up per step 4.
- Comment asks for something outside the target element's scope (e.g. "add a new page"): do the closest-reasonable edit and mention the scope expansion in your summary.
- Can't resolve the comment (e.g. truly ambiguous, or the file changed shape such that the target element doesn't exist): leave the marker in place and report it as skipped. Don't guess.
Do not
- Do not touch
package.json,open-slide.config.ts, or files outsideslides/. - Do not add dependencies.
- Do not re-introduce markers or leave
TODObreadcrumbs — the user already has a record in git.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/apply-slide-comments-mte1lgwv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/apply-slide-comments-mte1lgwv/download' --output '.skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md.part' && mv '.skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md.part' '.skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md' && test -s '.skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/apply-comments' && cp -R '.skill-downloads/apply-slide-comments-mte1lgwv' '.claude/skills/apply-comments'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/apply-slide-comments-mte1lgwv'openskills read 'apply-slide-comments-mte1lgwv'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Fragments d'écriture
Contenu
Extrayez des fragments d'écriture bruts via un entretien intensif, sans imposer de structure. Capturez idées, citations et mots porteurs pour une utilisation ultérieure.
Rédaction UI et audit
Contenu
Rédigez ou auditez les textes d'interface (boutons, erreurs, états vides, infobulles) dans le monorepo, en suivant la source de vérité du design system.
Extraction MIDI/score
Contenu
Extrait le MIDI ou la partition d'une production musicale existante via l'outil MCP CogMusic et confirme la disponibilité du fichier.