open-pencil
यह क्या करती है
यह स्किल आपके AI को .fig डिज़ाइन फ़ाइलों और OpenPencil एडिटर के साथ काम करने देती है, जिसमें संरचना पढ़ना, छवियाँ एक्सपोर्ट करना और डिज़ाइन बदलना शामिल है। यह उन डिज़ाइनरों और डेवलपर्स के लिए है जो ये फ़ाइलें इस्तेमाल करते हैं।
कब इस्तेमाल करें
- ✓जब आप अपने AI से कोई .fig डिज़ाइन फ़ाइल खोलने या जाँचने को कहें।
- ✓जब आप डिज़ाइन को PNG, SVG, PDF या JSX के रूप में एक्सपोर्ट करना चाहें।
- ✓जब आप डिज़ाइन टोकन का विश्लेषण या स्क्रिप्ट से डिज़ाइन बदलाव चाहें।
Skill का लिंक
https://github.com/open-pencil/open-pencil/blob/master/skills/open-pencil/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस डिज़ाइन फ़ाइल से Login फ़्रेम को SVG के रूप में एक्सपोर्ट कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल दो तरह से काम करती है। यह पहले से खुले OpenPencil ऐप से जुड़ सकती है, या आपके बताए .fig फ़ाइल पर सीधे काम कर सकती है। डिज़ाइन पढ़ने और बदलने के लिए यह OpenPencil कमांड-लाइन टूल और उसका MCP सर्वर इस्तेमाल करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
OpenPencil
OpenPencil provides a CLI and MCP server for .fig design files and the running OpenPencil editor.
Use two modes:
- App mode — connect to the running OpenPencil editor by omitting the file argument.
- Headless mode — work with
.figfiles directly by passing a file path.
# App mode — operates on the document open in the editor
openpencil tree
# Headless mode — operates on a .fig file
openpencil tree design.fig
Use openpencil --help, per-command help, and the connected MCP server’s tool schemas to check the installed version’s capabilities. See the CLI reference and MCP guide for current documentation.
Variable formulas
Inside eval, use openpencil.setVariableFormula('Spacing', 'large', '{base} * 2') for numeric formulas or openpencil.setVariableFormula('State', 'visible', '{viewport} > 1024 and not {loading}') for Boolean formulas, which use and, or, not and number comparisons. Collections and variables must already exist. An optional fourth argument selects a mode by name; otherwise the default mode is edited. The call validates before mutation and returns the resolved value. Length formulas use stored pixels. The CSS stylesheet writes number formulas as calc(); design-token files hold the result with the formula in $extensions.
Variables follow Figma's plugin API: figma.variables.getLocalVariables(), createVariable(name, collection, type), variable.setValueForMode(modeId, value), and node.setBoundVariable(field, variable) with Figma's field names (characters, width, paddingLeft) and types; paint colours bind through figma.variables.setBoundVariableForPaint. To bind as the layer panel does, use openpencil.bindVariable(node, field, variable) and openpencil.unbindVariable(node, field) with OpenPencil names (text, visible, opacity, fills/0/color): text content takes a text or number variable, shown as text; visibility a boolean or text one. openpencil also sets layout and text direction (setLayoutDirection, setTextDirection), OkHCL paint colors (setFillOkHCL, setStrokeOkHCL), writes styled text from Markdown (setTextMarkdown(text, markdown), or set_text with markdown: true), exposes instance swaps (exposeInstanceSwap), and reports font availability (getFontStatus()); booleans and flattening are Figma's figma.union, subtract, intersect, exclude and figma.flatten.
Requirements
# CLI
bun add -g @open-pencil/cli
# MCP server used by the desktop app and external MCP clients
bun add -g @open-pencil/mcp
The desktop app starts openpencil-mcp-http automatically in production Tauri builds when @open-pencil/mcp is installed globally and exposes automation on:
- HTTP/RPC:
http://127.0.0.1:7600 - WebSocket bridge:
ws://127.0.0.1:7601 - MCP Streamable HTTP:
http://127.0.0.1:7600/mcp
CLI Commands
openpencil --help
Common commands:
info— document overview: pages, node counts, fontstree— print hierarchy with types and sizespages— list pagesnode— detailed node properties by IDselection— current selection from the running appfind— find nodes by name/typequery— XPath selectors for node searchvariables— list variables and collectionstokens— variables as a CSS custom-property stylesheet, a Tailwind v4 theme, or W3C design token files (--format dtcg --out <folder>)export— export PNG/JPG/WEBP/SVG/PDF/JSX/.figconvert— convert between supported document formatsanalyze— colors, typography, spacing, repeated clusterslint— consistency, structure, and accessibility checksformats— supported document/export formatseval— execute JavaScript with the Figma Plugin APItool— list, describe, and call any MCP tool from the shell, in app or headless modedocuments— list, open, create, save, close, and activate documents in the running appundo/redo— step back through your own (automation) changes in the running appsettings— read and change editor settings in the running app
Inspect
openpencil info design.fig
openpencil tree design.fig
openpencil tree --page "Components" --depth 3 # app mode
openpencil pages design.fig
openpencil node design.fig --id 1:23
openpencil node --id 1:23 # app mode
openpencil selection --json
openpencil variables design.fig
openpencil variables --
अक्सर पूछे जाने वाले सवाल
क्या मुझे ऐप खुला रखना होगा?
नहीं। आप सीधे फ़ाइल पर काम करने के लिए फ़ाइल पथ दे सकते हैं, या उसे छोड़कर खुले ऐप का इस्तेमाल कर सकते हैं।
क्या यह मेरा डिज़ाइन बदल सकती है?
हाँ। यह प्रोग्राम के ज़रिए डिज़ाइन बदल सकती है, इसलिए बदलावों के बाद नतीजा जाँचें।
कमांड कहाँ सीखूँ?
स्किल आपके इंस्टॉल वर्ज़न के लिए OpenPencil कमांड-लाइन सहायता और संदर्भ की ओर इशारा करती है।
जानकारी
लेखक का मूल विवरण
Work with Figma .fig design files and the running OpenPencil editor — inspect structure, query nodes, analyze design tokens, export PNG/SVG/PDF/JSX, and modify designs programmatically. Use when asked to open, inspect, export, analyze, or edit .fig files, or to control the running OpenPencil app.
repo: open-pencil/open-pencil
लोकप्रियता
- GitHub स्टार
- 9.5k
- रैंकिंग में स्थान
- #12225
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।