Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add rhuss/cc-slidev/plugin install slidevWrote 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.
[](https://agentmods.dev/commands/rhuss/cc-slidev/redraw-diagrams)<a href="https://agentmods.dev/commands/rhuss/cc-slidev/redraw-diagrams"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/redraw-diagrams/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.
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/redraw-diagrams"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/redraw-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.02913 |
| Opus 5.5 | $0.00010 | $0.01165 |
| Sonnet 5.5 | $0.00005 | $0.00583 |
| Haiku 4.5 | $0.00003 | $0.00291 |
Grade A, and why
redraw-diagrams 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 26d 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.
How it starts
The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Redraw Diagrams - Semantic Redesign Across Platforms
Extract inline diagrams from slides and semantically redesign them for each platform's strengths, rather than mechanically converting between formats.
Philosophy: Each diagram platform (Mermaid, PlantUML, Excalidraw) has unique visual paradigms. This command analyzes the slide's semantic content and existing diagrams, then redesigns diagrams to leverage each platform's specific capabilities.
CRITICAL - Excalidraw Rule: NEVER embed Excalidraw JSON in markdown files. Always:
- Write JSON to
diagrams/<slug>.excalidraw - Convert to SVG using
render-excalidraw.sh - Put SVG in
public/images/<slug>/diagram-excalidraw.svg - Reference only the SVG image in markdown
Use Cases:
- Redesign existing diagrams to better utilize platform features
- Create platform-specific versions that aren't just conversions
- Improve diagram quality by rethinking visual approach per platform
Execution
1. Find Presentation
Locate slides.md:
- Check current directory
- Check subdirectories
- If multiple found: ask user which one
2. Get Slide Mapping from Master slides.md
Read master slides.md directly to extract slide information:
---
src: ./slides/01-title.md
---
<!-- Slide 1: Title -->
---
src: ./slides/05-microservices-benefits.md
---
<!-- Slide 5: Microservices Benefits -->
Parse comment pattern <!-- Slide \d+: .* --> to get:
- Slide numbers
- Slide titles/descriptions for directory naming
- File paths (from
src:lines)
3. Extract and Analyze Diagrams Semantically
Scan slides.md for diagram code blocks:
Mermaid diagrams:
```mermaid
[diagram code]
**PlantUML diagrams:**
```markdown
```plantuml
@startuml
[diagram code]
@enduml
**For each diagram found:**
1. Note slide number and title
2. Extract complete diagram code
3. **Read slide content** to understand semantic context
4. **Analyze diagram semantics:**
- What concept is being visualized?
- Is it showing flow/process, architecture/structure, or concepts/relationships?
- What is the diagram's intent?
5. Identify existing diagram type and platform
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.
- 26d ago Changed · -2 tokens per session bfa0db392c64
- 3mo ago First seen · 383 lines · 28 tokens per session scan A 848353de701c
redraw-diagrams is a command published in the GitHub repository rhuss/cc-slidev (55 stars, last pushed 25d ago), licensed MIT. It adds 26 tokens to every session and 2,913 once invoked, about $0.0001 per session on Opus 5.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.
redraw-diagrams compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| redraw-diagramsrhuss/cc-slidev | Command | 55 | 25d ago | MIT | A | 26 | Claude Code |
| profilecathrynlavery/diagram-design | Command | 77k | today | MIT | A | 16 | Claude Code |
| information-architectTenon-Net/TenonAdmin | Command | 47 | today | Apache-2.0 | A | 14 | Claude Code, Codex |
| ui-flow-reviewMRCalderon3D/everything-game-dev-code | Command | 114 | 26d ago | MIT | A | 15 | Claude Code |
| erne-animateJubaKitiashvili/everything-react-native-expo | Command | 50 | 1mo ago | MIT | A | 21 | Claude Code |
| responsive-design-specialistimsaif/design-with-claude | Command | 11 | 15d ago | MIT | A | 36 | Claude Code |
| design-auditw2ur/claude-code-setup | Command | 1 | 3d ago | MIT | A | 30 | Claude Code |