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.
npx skills add clearsmog/claude-skills --skill extract-diagramsgit clone --depth 1 https://github.com/clearsmog/claude-skillsWrote 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/skills/clearsmog/claude-skills/extract-diagrams)<a href="https://agentmods.dev/skills/clearsmog/claude-skills/extract-diagrams"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/extract-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/skills/clearsmog/claude-skills/extract-diagrams"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/extract-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.00025 | $0.00331 |
| Opus 5 | $0.00013 | $0.00166 |
| Sonnet 5 | $0.00005 | $0.00066 |
| Haiku 4.5 | $0.00003 | $0.00033 |
Grade A, and why
extract-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 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.
What it actually says
Extract Diagrams to SVG
Extract diagrams from source files and convert to SVG for web use.
Format Detection
.typsource → CeTZ extraction (Typst native SVG output).texsource → TikZ extraction (configure at project level with project-specific TEXINPUTS and paths)
CeTZ Extraction (Typst)
Typst can output SVG directly — no intermediate PDF needed.
Step 1: Identify CeTZ diagrams in the .typ file
grep -n '@preview/cetz' $ARGUMENTS
Step 2: For standalone diagram files, compile directly to SVG
typst compile --format svg diagram.typ diagram.svg
Step 3: For diagrams embedded in documents
- Extract the diagram code to a standalone
.typfile - Add necessary imports and page setup
- Compile to SVG:
typst compile --format svg standalone_diagram.typ output.svg
Step 4: Verify SVG files
- Read 2-3 SVG files to confirm valid SVG markup
- Confirm file sizes are reasonable
Step 5: Report results
Source of Truth
- CeTZ: Diagrams are edited in the Typst
.typsource file - TikZ: Configure extraction at project level (see project's extract-diagrams skill)
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.
- 11d ago First seen · 46 lines · 25 tokens per session scan A a1af0ede5200
extract-diagrams is a skill published in the GitHub repository clearsmog/claude-skills (2 stars, last pushed 6mo ago), licensed MIT. It adds 25 tokens to every session and 331 once invoked, about $0.0001 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-31.
Other skills, from other repositories
replicate-runner
Use when run AI models on Replicate cloud API. Deploy image generation, video creation, audio processing, and custom models without managing infrastructure. Use when working with replicate runner.
pptx-posters
Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…
aws-wechat-article-assets
A local library for storing business descriptions, product images, and reusable writing or design presets for WeChat articles. It organizes these materials by product so other article tools can reuse them.
utility-slideshow-creator
Generates professional presentations from a JSON deck specification using 18 slide types with dark/light variants, content-to-layout decision logic, and calibrated character limits. Ships with a default professional theme.
release-sync
Syncs latest release content to NotebookLM and HQ Knowledge Base after version tagging. Reads CHANGELOG, CLAUDE.md, and hook README, updates notebook sources, and ingests release digest. Optionally generates podcast from updated knowledge base. Use after tagging a new version to propagate release knowledge.
guizang-ppt-skill
A tool that creates slide-deck images from content by first making an outline and then rendering each slide. It supports multiple visual styles and is designed for decks people can read and share.