current-slide

current-slide is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 110 tokens per session (1,654 once invoked), scanned A, a copy of current-slide, Apache-2.0.

A live-position lookup skill for open-slide's development viewer. It reads which slide, page, and possibly selected element the user is currently viewing.

In plain words
What is it for?
Use it before handling requests about the current slide, page, heading, element, or selected area in the open-slide viewer.
Why use it?
People often say “change this slide” without naming the file or page. This skill resolves that reference so an agent can edit the intended content rather than guessing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before handling requests about the current slide, page, heading, element, or selected area in the open-slide viewer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/current-slide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cafe3310/public-agent-skills --skill current-slide
Clone the repo
git clone --depth 1 https://github.com/cafe3310/public-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for current-slide

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/current-slide/github.svg)](https://agentmods.dev/skills/cafe3310/public-agent-skills/current-slide)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/current-slide"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/current-slide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for current-slide

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/current-slide"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/current-slide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01654
Opus 5.5 $0.00044 $0.00662
Sonnet 5.5 $0.00022 $0.00331
Haiku 4.5 $0.00011 $0.00165

Measured 25d ago against content hash 57df255ddbdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

current-slide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to current-slide — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/openslide/subskills/current-slide/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Where is the user right now?

When the user says "fix this page", "tweak this heading", or "the slide I'm looking at", they almost never name the slide id, page number, or element — they mean wherever they are in the dev viewer. Before asking "which slide?" or "which element?", check the file the dev server writes on every navigation and inspector pick.

Re-read on every deictic turn — never reuse a prior read

current.json is a live cursor, not a fact about the conversation. The user moves between slides, pages, and elements freely between your turns — including while you were doing other work. Read the file fresh at the start of every new turn that uses a deictic reference, even if:

  • you already read it earlier in this same conversation,
  • you just finished editing the slide it pointed to,
  • the user's new message sounds like a continuation ("now make it bigger", "also fix this one", "keep going").

A "continue editing" follow-up is exactly the case where the user has likely just navigated to a different slide or picked a different element. Trusting your last read here will silently edit the wrong file. Re-read, compare slideId / pageIndex / selection against what you used last time, and act on the new values.

How to read it

node_modules/.open-slide/current.json

Path is relative to the project root (the user's cwd, the directory that contains slides/ and package.json). Use the Read tool. The file is JSON.

What you get

{
  "slideId": "q2-roadmap",
  "pageIndex": 2,
  "pageNumber": 3,
  "totalPages": 8,
  "slideTitle": "Q2 Roadmap",
  "view": "slides",
  "pagePath": "slides/q2-roadmap/index.tsx",
  "selection": {
    "line": 42,
    "column": 6,
    "tagName": "h1",
    "text": "Q2 Roadmap"
  },
  "updatedAt": "2026-05-09T14:32:11.123Z"
}
  • slideId — folder name under slides/. Use as-is for any /__slides/<id>/... API or as the URL segment.
  • pageIndex — 0-based, for use with the page array in index.tsx (export default [Cover, Body, ...]).
  • pageNumber — 1-based, for use in messages to the user ("page 3 of 8") and for the URL ?p=N.
  • pagePath — relative path to the slide source. Hand straight to Read / Edit.
  • view — "slides" (canvas view) or "assets" (asset manager). If "assets", the user is browsing files for that slide rather than viewing a page.
  • selection — null if nothing is selected. Otherwise, the JSX element the user picked in the inspector overlay:
    • line (1-indexed) and column (0-indexed) point to the JSX opening tag inside pagePath. This is the canonical handle — match against the source line, not the rendered DOM.
    • tagName is the rendered DOM tag, lowercased ("h1", "div", "img").
    • text is a trimmed text snippet (≤120 chars) from the element's textContent, useful as a sanity check that you're looking at the right node.
    • Selection auto-clears whenever the user navigates to a different slide or page.
  • updatedAt — ISO timestamp of the last navigation or selection change. Use it to detect staleness.

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago First seen · 112 lines · 110 tokens per session scan A 57df255ddbdc

Subscribe to this mod's changes

current-slide is a skill published in the GitHub repository cafe3310/public-agent-skills (260 stars, last pushed 14d ago), licensed Apache-2.0. It adds 110 tokens to every session and 1,654 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to current-slide, differing in 1 line, and is treated as a copy.

Related

current-slide compared with skills from other repositories

current-slide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
current-slidecafe3310/public-agent-skillsSkill26014d agoApache-2.0A110Claude Code, Codex
google-fonts-curatorflc1125/skillsSkill39todayMITA61Claude Code, Codex
preview-svgveelenga/preview-skillsSkill91mo agoMITA107Claude Code
android-accessibilityGuillemRoca/agent-skills-androidSkill71mo agoMITA35Claude Code
android-ui-engineeringGuillemRoca/agent-skills-androidSkill71mo agoMITA52Claude Code
design-taste-frontendfirstsun-dev/skillsSkill55d agononeA61Claude Code, Codex
imagegen-frontend-mobilefirstsun-dev/skillsSkill55d agononeA126Claude Code, Codex