OpenPencil is an open-source vector design tool where users describe interfaces in natural language and edit them on a live canvas with AI. Designers and developers use it for UI creation, design iteration, and coordinating multiple AI agents on different parts of a page. The catalogue entries provide instructions for working with OpenPencil.
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 ZSeven-W/openpencil --skill openpencil-setupgit clone --depth 1 https://github.com/ZSeven-W/openpencilWrote 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/zseven-w/openpencil/openpencil-setup)<a href="https://agentmods.dev/skills/zseven-w/openpencil/openpencil-setup"><img src="https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-setup/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/zseven-w/openpencil/openpencil-setup"><img src="https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-setup.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.00039 | $0.01407 |
| Opus 5.5 | $0.00016 | $0.00563 |
| Sonnet 5.5 | $0.00008 | $0.00281 |
| Haiku 4.5 | $0.00004 | $0.00141 |
Grade A, and why
openpencil-setup 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 8d 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 — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Connect OpenPencil
The plugin opens a managed interactive Rust canvas or connects to an existing
desktop editor. The matching complete native editor, editable WASM, and CanvasKit
runtime is distributed via the platform-selective @zseven-w/codex-openpencil-<os>-<cpu>
npm optional dependency and verified (SHA-256 of every payload file, manifest,
version, revision and platform) before launch.
Interactive canvas
- In Codex, call
canvas_open_browser, optionally with the user's existing absolute.oppath, then open itspanelUrlin the Codex browser panel (open_in_codex, browser target) or@Browser. Use an external browser only when the user explicitly requests one. The source is copied into a recovery draft. If onlyopen_canvasis available, its returnedpanelUrlworks the same way. Codex currently filters local HTTP iframe origins, so its MCP Apps entrypoint shows a browser launcher. Do not request weaker browser security or claim an embedded canvas was verified. Its button prepares the same canvas URL and, where host text messaging is supported, sends one opening request to the current chat throughui/message. Open the supplied exact URL withopen_in_codex(browser target) or@Browser; preserve its theme/launch fragment so the panel can confirm editor readiness. Do not create a second canvas, launch an OS browser or use a deep-link workaround. Without host messaging, the user copies an opening instruction into the current chat. A message acknowledgment is not a connected canvas.ui/open-linkacknowledgments also do not prove navigation: the current bridge drops HTTP URLs. - Runtime configuration is recorded privately in
~/.codex-openpencil/runtime.jsonbycodex-openpencil setup(pointing to the installed npm platform package, or a user-configured custom runtime). If the runtime is missing or drifted after upgrading@zseven-w/codex-openpencil, run:npm install -g @zseven-w/codex-openpencil@latest && codex-openpencil setup, then reconnect the plugin and callcanvas_open_browser. Existing invalid configurations are reported without switching runtimes; usecodex-openpencil setup --repair-runtimeto explicitly re-select the installed npm platform package. A complete custom package can be selected withcodex-openpencil configure-runtime /absolute/runtime/rootorOPENPENCIL_EDITOR_RUNTIME_DIR; it needs a matching native server, editable WASM, CanvasKit and integrity manifest. A desktop binary alone is insufficient. - Use the UI resource/thread entrypoint, or show the returned local
panelUrlin hosts without MCP Apps. Verifycanvas_statusandget_editor_state: they must describe the same managed document before editing. - Each conversation keeps one canvas. Use another chat for a different document.
Recovery drafts survive in
~/.codex-openpencil/sessions/. A stopped session's URL is temporary; reopen its recovery file in a new session. - Reconnect or open a new chat after upgrading the plugin. Resource loading and visibly displayed embedded host UI are separate verification steps.
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.
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.
- 8d ago First seen · 98 lines · 39 tokens per session scan A 6363d31c4965
openpencil-setup is a skill published in the GitHub repository ZSeven-W/openpencil (7,406 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 1,407 once invoked, about $0.0002 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-11-22.
openpencil-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openpencil-setupZSeven-W/openpencil | Skill | 7.4k | yesterday | MIT | A | 39 | Codex |
| hallmarkoyi77/1ai-skills | Skill | 19 | today | MIT | A | 60 | Claude Code, Codex |
| impeccableoyi77/1ai-skills | Skill | 19 | today | MIT | A | 83 | Claude Code |
| emil-design-skillsoyi77/1ai-skills | Skill | 19 | today | MIT | A | 73 | Claude Code |
| anti-slop-frontendoyi77/1ai-skills | Skill | 19 | today | MIT | A | 60 | Claude Code |
| role-ui-ux-designeroyi77/1ai-skills | Skill | 19 | today | MIT | A | 44 | Claude Code |
| frontend-ui-designoyi77/1ai-skills | Skill | 19 | today | MIT | A | 51 | Claude Code |