slidev-monaco-editor

slidev-monaco-editor is a skill for Claude Code from yoanbernabeu/slidev-skills. It costs 32 tokens per session (2,257 once invoked), scanned A, original, MIT.

A way to add Monaco Editor, the code editor used by Visual Studio Code, to Slidev presentations. It supports editable code examples and can run JavaScript or TypeScript during a presentation.

In plain words
What is it for?
Use it for live coding, interactive programming lessons, executable demonstrations, syntax highlighting, auto-completion, type checking, and highlighted lines in Slidev slides.
Why use it?
It lets an audience see and change working code instead of only viewing static code samples.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the slidev-code plugin — 3 skills shipped together , and of slidev-complete

Good fit Use it for live coding, interactive programming lessons, executable demonstrations, syntax highlighting, auto-completion, type checking, and highlighted lines in Slidev slides.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yoanbernabeu/slidev-skills/slidev-monaco-editor
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 yoanbernabeu/slidev-skills --skill slidev-monaco-editor
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/slidev-skills

Made for: Claude Code.

Or install slidev-code, the plugin that ships this one along with the rest of its 3 skills.

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 slidev-monaco-editor

README.md
[![agentmods](https://agentmods.dev/badge/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor/github.svg)](https://agentmods.dev/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor)
Your own site
<a href="https://agentmods.dev/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor/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 slidev-monaco-editor

Your own site · 80×15
<a href="https://agentmods.dev/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/slidev-skills/slidev-monaco-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,257 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 original No closer match found 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.00032 $0.02257
Opus 5 $0.00016 $0.01128
Sonnet 5 $0.00006 $0.00451
Haiku 4.5 $0.00003 $0.00226

Measured 11d ago against content hash e4e117a3f2b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

slidev-monaco-editor 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 11d 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.

skills/code/slidev-monaco-editor/SKILL.md · 470 lines

How it starts

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

Monaco Editor in Slidev

This skill covers integrating Monaco Editor (the editor powering VS Code) into your Slidev presentations for live coding, interactive demos, and executable code blocks.

When to Use This Skill

  • Live coding demonstrations
  • Interactive code editing during presentations
  • Running code examples in real-time
  • Teaching programming concepts
  • Showing auto-completion and type hints

Enabling Monaco Editor

Basic Monaco Block

Add {monaco} to any code block:

```typescript {monaco}
const greeting = 'Hello, World!'
console.log(greeting)
```

This creates an editable code block with:

  • Syntax highlighting
  • Auto-completion
  • Type checking (for TypeScript)
  • Bracket matching

Monaco with Line Highlighting

```typescript {monaco}{2,3}
const a = 1
const b = 2  // highlighted
const c = 3  // highlighted
```

Monaco Runner

Execute code directly in the presentation:

JavaScript Runner

```javascript {monaco-run}
const numbers = [1, 2, 3, 4, 5]
const doubled = numbers.map(n => n * 2)
console.log(doubled)
```

Click "Run" to execute and see output.

TypeScript Runner

```typescript {monaco-run}
interface User {
  name: string
  age: number
}

const user: User = {
  name: 'John',
  age: 30
}

console.log(`${user.name} is ${user.age} years old`)
```

Auto-Run on Load

```javascript {monaco-run} {autorun:true}
console.log('This runs automatically!')
```

Show Output Only

```javascript {monaco-run} {showOutputAt:'+1'}
// Output shows after one click
console.log('Hello!')
```

Configuration Options

Editor Height

```typescript {monaco}{height:'300px'}
// Taller editor
function longFunction() {
  // ...
}
```

Read-Only Mode

```typescript {monaco}{readonly:true}
// Cannot be edited
const CONSTANT = 'value'
```

Diff Editor

```typescript {monaco-diff}
const original = 'Hello'
~~~
const modified = 'Hello, World!'
```

Read the full file on GitHub · 470 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. 11d ago First seen · 470 lines · 32 tokens per session scan A e4e117a3f2b8

Subscribe to this mod's changes

slidev-monaco-editor is a skill published in the GitHub repository yoanbernabeu/slidev-skills (39 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 2,257 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

starter

Static web development for beginners — HTML/CSS/JS and Next.js App Router. Triggers: static website, portfolio, landing page, beginner.

ww-w-ai/bkit-claude-code · 31 tokens

vibehub

A terminology helper for Vibe Coding tasks, where software is built from natural-language requests. It turns vague descriptions into clearer technical wording and identifies useful terms for interface, web, software, Git, AI-agent, or design concepts.

oil-oil/vibe-hub-skill · 175 tokens

fireworks-open-eli5

Create evidence-aware, interactive visual explainers as self-contained offline HTML. Use when a user asks to explain a concept, repository module, engineering tradeoff, or incident with a diagram, walkthrough, ELI5 treatment, data/request trace, failure view, or teach-back. Do not use for a plain short answer…

yizhiyanhua-ai/fireworks-open-eli5 · 86 tokens

教程类H5-小红书小工具

A method for building offline, single-page course experiences for Xiaohongshu’s Mini Tools, which are interactive pages published inside the platform. It combines written lessons, generated illustrations, and JavaScript page switching in a constrained container.

huangrichao2020/pretty-skills · 110 tokens

emil-design-eng

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

classroomio/classroomio · 35 tokens

apple-design

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading)…

classroomio/classroomio · 80 tokens