본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)9.5k · #12225

open-pencil

하는 일

이 스킬은 AI가 .fig 디자인 파일과 OpenPencil 편집기를 다루게 합니다. 구조 읽기, 이미지 내보내기, 디자인 변경을 포함합니다. 이런 파일을 다루는 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓AI에게 .fig 디자인 파일을 열거나 살펴보라고 요청할 때.
  • ✓디자인을 PNG, SVG, PDF 또는 JSX로 내보내고 싶을 때.
  • ✓디자인 토큰을 분석하거나 스크립트로 디자인을 바꾸고 싶은 경우.

스킬 링크

https://github.com/open-pencil/open-pencil/blob/master/skills/open-pencil/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/open-pencil/open-pencil/blob/master/skills/open-pencil/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 디자인 파일에서 Login 프레임을 SVG로 내보내 주세요.”

매주 새 스킬 5개. 읽는 데 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 .fig files 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, fonts
  • tree — print hierarchy with types and sizes
  • pages — list pages
  • node — detailed node properties by ID
  • selection — current selection from the running app
  • find — find nodes by name/type
  • query — XPath selectors for node search
  • variables — list variables and collections
  • tokens — 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/.fig
  • convert — convert between supported document formats
  • analyze — colors, typography, spacing, repeated clusters
  • lint — consistency, structure, and accessibility checks
  • formats — supported document/export formats
  • eval — execute JavaScript with the Figma Plugin API
  • tool — list, describe, and call any MCP tool from the shell, in app or headless mode
  • documents — list, open, create, save, close, and activate documents in the running app
  • undo / redo — step back through your own (automation) changes in the running app
  • settings — 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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬