openpencil-setup

openpencil-setup is a skill for Codex from ZSeven-W/openpencil. It costs 39 tokens per session (1,407 once invoked), scanned A, original, MIT.

A setup and troubleshooting helper for the local Rust OpenPencil editor, a canvas-based design tool used through a Codex plugin. It connects to an existing canvas or prepares the managed editor and checks the launch path.

In plain words
What is it for?
Use it to launch or reconnect OpenPencil, open its canvas in the Codex browser panel, and diagnose local setup issues.
Why use it?
It helps resolve missing tools, disconnected canvases, and first-time setup problems without claiming that an embedded canvas was verified.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex.

Good fit Use it to launch or reconnect OpenPencil, open its canvas in the Codex browser panel, and diagnose local setup issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zseven-w/openpencil/openpencil-setup
About the project

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.

ZSeven-W/openpencil · 7,406 stars · on GitHub · op.zseven.tech

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 ZSeven-W/openpencil --skill openpencil-setup
Clone the repo
git clone --depth 1 https://github.com/ZSeven-W/openpencil

Made for: Codex.

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 openpencil-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-setup/github.svg)](https://agentmods.dev/skills/zseven-w/openpencil/openpencil-setup)
Your own site
<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.

agentmods 80×15 button for openpencil-setup

Your own site · 80×15
<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>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,407 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.00039 $0.01407
Opus 5.5 $0.00016 $0.00563
Sonnet 5.5 $0.00008 $0.00281
Haiku 4.5 $0.00004 $0.00141

Measured 8d ago against content hash 6363d31c4965, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

packages/op-codex/plugins/openpencil/skills/openpencil-setup/SKILL.md · 98 lines

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

  1. In Codex, call canvas_open_browser, optionally with the user's existing absolute .op path, then open its panelUrl in 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 only open_canvas is available, its returned panelUrl works 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 through ui/message. Open the supplied exact URL with open_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-link acknowledgments also do not prove navigation: the current bridge drops HTTP URLs.
  2. Runtime configuration is recorded privately in ~/.codex-openpencil/runtime.json by codex-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 call canvas_open_browser. Existing invalid configurations are reported without switching runtimes; use codex-openpencil setup --repair-runtime to explicitly re-select the installed npm platform package. A complete custom package can be selected with codex-openpencil configure-runtime /absolute/runtime/root or OPENPENCIL_EDITOR_RUNTIME_DIR; it needs a matching native server, editable WASM, CanvasKit and integrity manifest. A desktop binary alone is insufficient.
  3. Use the UI resource/thread entrypoint, or show the returned local panelUrl in hosts without MCP Apps. Verify canvas_status and get_editor_state: they must describe the same managed document before editing.
  4. 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.
  5. Reconnect or open a new chat after upgrading the plugin. Resource loading and visibly displayed embedded host UI are separate verification steps.

Read the full file on GitHub · 98 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. 8d ago First seen · 98 lines · 39 tokens per session scan A 6363d31c4965

Subscribe to this mod's changes

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.

Related

openpencil-setup compared with skills from other repositories

openpencil-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openpencil-setupZSeven-W/openpencilSkill7.4kyesterdayMITA39Codex
hallmarkoyi77/1ai-skillsSkill19todayMITA60Claude Code, Codex
impeccableoyi77/1ai-skillsSkill19todayMITA83Claude Code
emil-design-skillsoyi77/1ai-skillsSkill19todayMITA73Claude Code
anti-slop-frontendoyi77/1ai-skillsSkill19todayMITA60Claude Code
role-ui-ux-designeroyi77/1ai-skillsSkill19todayMITA44Claude Code
frontend-ui-designoyi77/1ai-skillsSkill19todayMITA51Claude Code