pencil-export

pencil-export is a skill for Claude Code from mishahanin/heading-os. It costs 198 tokens per session (3,563 once invoked), scanned A, original, Apache-2.0.

An export tool for Pencil design decks, producing image, PDF, PowerPoint, and self-contained HTML files.

In plain words
What is it for?
Use it to turn a Pencil deck into PNG, PDF, editable or flattened PPTX, or HTML deliverables.
Why use it?
It handles the path problems that can occur when Pencil runs inside Windows Subsystem for Linux (WSL), so exported files are saved where expected.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/pencil-export.py \.

Good fit Use it to turn a Pencil deck into PNG, PDF, editable or flattened PPTX, or HTML deliverables.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mishahanin/heading-os
agentmods
npx agentmods add skills/mishahanin/heading-os/pencil-export

Made for: Claude Code.

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 pencil-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/mishahanin/heading-os/pencil-export/github.svg)](https://agentmods.dev/skills/mishahanin/heading-os/pencil-export)
Your own site
<a href="https://agentmods.dev/skills/mishahanin/heading-os/pencil-export"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/pencil-export/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 pencil-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/mishahanin/heading-os/pencil-export"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/pencil-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 198 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,563 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00198 $0.03563
Opus 5.5 $0.00079 $0.01425
Sonnet 5.5 $0.00040 $0.00713
Haiku 4.5 $0.00020 $0.00356

Measured 1mo ago against content hash 06f8b1c7b536, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pencil-export 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 1mo 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.

.claude/skills/pencil-export/SKILL.md · 260 lines

How it starts

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

/pencil-export - Export a Pencil deck (WSL-safe)

Pencil writes an export to the wrong disk when it receives a WSL path. The app normalises \\wsl.localhost\<distro>\... to /<distro>/..., drops the prefix, and resolves the remainder from the root of C:. It then reports success. A requested write to /Ubuntu-24.04/home/me/deck.html lands at C:\Ubuntu-24.04\home\me\deck.html, and nothing warns you.

So this skill stages every export on C: and collects the result from /mnt/c. Never pass Pencil a WSL path for writing.

Pencil 42.5.0 exposes four MCP tools: execute, get_app_state, browser, and get_guidelines. Export runs inside execute:

Export(nodeIds, "png"|"jpeg"|"webp"|"pdf"|"html-tailwind"|"html-css", outputPath, options)

Native PNG and PDF are correct at 2x. Use them. The chromium renderer stays for the editable PPTX and the self-contained HTML, which Pencil cannot produce.

Background and full diagnosis: the auto-memory record on Pencil export nodes being broken on WSL.

Phase 0 - Context

  • Open the target .pen as the active editor in the Pencil desktop app. execute fails with "wrong .pen file" when no document is active.
  • Read the registered path with get_app_state({include_schema:false, include_canvas_design:false, include_scripts_and_shaders:false}). Pass that exact string as filePath on every execute call.
  • The first get_app_state after a cold start can return no active editor. Retry it before you report a failure.
  • Locate the deck directory. Output lands in <deck-dir>/export/.
  • Brand fonts: GT Standard and 31C Horizontal. They live in the DATA overlay, under brand/fonts/ inside the datastore. Resolve that path in Phase 2. Never pass a bare asset/brand/datastore/brand/fonts to Bash. Bash resolves it against the engine root, where the datastore does not exist.

Phase 1 - Select the slides and export

  1. Collect the top-level frames and their names:

    Print(JSON.stringify(Get((n,c)=>c.depth===0 && n.type==="frame"
      ? {id:n.id,name:n.name,x:n.x,y:n.y} : undefined)))
    

Read the full file on GitHub · 260 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 06f8b1c7b536
  2. 1mo ago Changed · +1 lines 7271f61192dd
  3. 1mo ago First seen · 259 lines · 198 tokens per session scan A ca4aff5d9dbf

Subscribe to this mod's changes

pencil-export is a skill published in the GitHub repository mishahanin/heading-os (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 198 tokens to every session and 3,563 once invoked, about $0.0008 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-09-03.

Related

Other skills, from other repositories

pdf

PDF files: create, read, merge, fill, OCR, edit text.

NousResearch/hermes-agent · 18 tokens

pdf-text-replace

Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

instavm/coderunner · 42 tokens

design-export-repair

Fixes broken decks/PDFs exported from Claude's "Design" feature (or similar AI deck generators) — cut-off or clipped text, wrong/substituted fonts, and corrupted .pptx package structure that shows up only once you export to PDF, not while looking at it in the app. Use this skill whenever the user uploads a zip, .pptx…

OneWave-AI/claude-skills · 219 tokens

design-drawing-svg-md

Use when a vector PDF engineering drawing has no text layer and an AI/agent must still read it — dimension digits are only glyph outlines, so it renders but cannot be questioned. Builds a dual carrier (semantic Markdown reading thread + layered SVG geometry archive) joined by view/dim/balloon IDs and a crosswalk, via…

znlgis/opengis-skills · 109 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

spytensor/openmozi · 92 tokens

tageszeitung

Creates a personalised daily newspaper from RSS feeds and web sources. Ported from the BACH news system (news.py + newspapergenerator.py). Own SQLite store (no Origin-DB). feedparser optional — XML fallback via stdlib. PDF export via Edge Headless (msedge.exe).

ellmos-ai/skills · 63 tokens