Automated summary
Reads the `@slide-comment` markers left in `slides/<id>/index.tsx` by the open-slide inspector, applies the requested JSX edits, then deletes the markers it processed.
Strengths
- Ships an authoritative detection regex plus base64url decoding of the `{note, hint}` JSON payload
- Clear procedure: edits run in descending line order so earlier markers don't shift later line numbers
- Explicitly defers to the `slide-authoring` skill so canvas, type scale and palette rules are respected
- Final verification of leftover markers, JSX well-formedness, and project typecheck/lint/build where available
Limitations
- Only handles open-slide inspector markers; unusable outside that project layout
- Ambiguous notes are resolved with the smallest reasonable change and a stated assumption rather than a clarification round
- No helper script is included; the work is a series of manual Edit tool calls
Use when a user has annotated slides through the open-slide inspector and asks to apply, process, or clear those comments.
Not for authoring or restructuring a slide from scratch, nor for free-form feedback that has no markers in the file.
Security analysis
CautionNo 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)
Examples
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.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
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. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
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 must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/apply-slide-comments-mte1lgwv'openskills read 'apply-slide-comments-mte1lgwv'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/apply-slide-comments-mte1lgwv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Writing Fragments
Content
Mine raw writing fragments through a relentless interview, without imposing structure. Capture ideas, quotes, and leading words for later use.
UI Copywriting & Auditing
Content
Write or audit user-facing UI copy including buttons, errors, empty states, and tooltips across the monorepo, following the design system source of truth.
Music MIDI Extraction
Content
Extracts the MIDI or score from an existing music production via the CogMusic MCP tool and confirms availability.