openpencil-design

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

A tool-guided workflow for creating and editing editable OpenPencil files, which store user-interface designs, with previews and verified saves.

In plain words
What is it for?
Use it to inspect or edit OpenPencil designs, create UI layouts, preview them as PNGs, and save verified changes.
Why use it?
It keeps design edits tied to the selected canvas and existing document instead of treating a design request as ordinary code implementation.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to inspect or edit OpenPencil designs, create UI layouts, preview them as PNGs, and save verified changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zseven-w/openpencil/openpencil-design
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-design
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-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-design/github.svg)](https://agentmods.dev/skills/zseven-w/openpencil/openpencil-design)
Your own site
<a href="https://agentmods.dev/skills/zseven-w/openpencil/openpencil-design"><img src="https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-design/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-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/zseven-w/openpencil/openpencil-design"><img src="https://agentmods.dev/badge/skills/zseven-w/openpencil/openpencil-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,776 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.00064 $0.01776
Opus 5.5 $0.00026 $0.00710
Sonnet 5.5 $0.00013 $0.00355
Haiku 4.5 $0.00006 $0.00178

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

Security

Grade A, and why

openpencil-design 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-design/SKILL.md · 134 lines

How it starts

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

Design with OpenPencil

Recognize “OP” and “op” as OpenPencil in requests for UI design, canvas edits or .op files, including “用op设计一个单页 APP”. Open or reuse this plugin's conversation canvas; export to code only when the user requests implementation.

Use the connected Rust MCP tools as the source of truth. Start with get_editor_state and read the relevant nodes. Preserve existing document content and use the user's chosen file, page, selection, and reference. For connection failures, see setup.

For a requested interactive conversation canvas in Codex, call canvas_open_browser and open its returned panelUrl in the Codex browser panel or the user's existing browser. Codex currently blocks local HTTP iframes in MCP Apps. If only open_canvas is available, use its returned URL the same way. Pass the chosen existing file, or omit the path for a new document. Verify canvas_status and get_editor_state. All native tools then edit that managed canvas. Show the UI resource or local panel URL. Do not open a new managed document just to inspect the user's existing desktop selection.

Establish the output

For a new design, resolve one page or multiple pages explicitly if the brief does not establish it; continue inspecting references while awaiting the answer. Do not silently choose three pages. Distinguish document pages from top-level frames/boards. Establish viewport and content goals from the brief. Preserve provided copy; do not reduce real content to fit a decorative mockup.

Load only the relevant connected design guidelines/style guides/UI kits. Use node and layout reference for field conventions; the live tool schemas and guidelines take precedence over this bundled snapshot. Reuse the document's variables, components, and style before inventing new ones. For a new phone screen, load get_guidelines with topic: "mobile" before creating its root frame. Use the Rust runtime's canonical status bar; do not hand-draw a replacement or use emoji for system indicators.

Read the full file on GitHub · 134 lines

Files

What ships with it

4 files 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 · 134 lines · 64 tokens per session scan A 0252f736b05a

Subscribe to this mod's changes

openpencil-design is a skill published in the GitHub repository ZSeven-W/openpencil (7,406 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,776 once invoked, about $0.0003 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-design compared with skills from other repositories

openpencil-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openpencil-designZSeven-W/openpencilSkill7.4kyesterdayMITA64Codex
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