К основному содержанию
плагин

pencil-dev-skill — плагин для Claude Code

Учит ИИ-агента проектировать и править .pen-файлы pencil.dev через Pencil MCP server: чтение и запись идут с проверкой схемы, а скриншоты показывают результат.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install pencil-dev-skill@claude-community
Открыть на GitHub

Что делает pencil-dev-skill

Плагин добавляет скилл, который ведёт агента по семи шагам: определить среду, сориентироваться, загрузить правила, спланировать, выполнить, проверить, отчитаться. Внутри разобраны все 9 инструментов Pencil MCP с примерами вызовов, таблицей затрат и составными рецептами. Отдельно лежит 15 готовых примеров с реальными последовательностями вызовов.

Каждое чтение и каждая правка .pen-файла проходят через MCP, поэтому схема проверяется на лету. Пока холст открыт в редакторе, изменения и редактор остаются синхронными, а живой скриншот показывает, как макет выглядит сейчас. Для компонентов и экранов описаны состояния, пользовательские сценарии и доступность.

Перед установкой нужны три вещи: сам инструмент кодинга, настроенный Pencil MCP server и рабочее пространство на pencil.dev. Файлы внутри каталога плагина править бессмысленно — следующее обновление их перезапишет. Под свою команду скилл настраивают копированием папки или форком репозитория. Плагин неофициальный, с командой Pencil.dev не связан.

Какие задачи решает

  • сгенерировать макет дашборда из текстового описания
  • открыть .pen-файл и разобрать его раскладку
  • поправить цвет кнопки в макете через Pencil MCP
  • сверить компоненты и экраны на единообразие
  • снять скриншот макета и проверить результат правок

Примеры запросов агенту

  • Спроектируй экран входа в pencil
  • Открой мой .pen-файл и покажи раскладку
  • Через pencil MCP поменяй цвет кнопки

Как установить pencil-dev-skill

Через маркетплейс плагинов

/plugin marketplace add anthropics/claude-plugins-community
/plugin install pencil-dev-skill@claude-community

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о pencil-dev-skill

Как установить pencil-dev-skill в Claude Code?

Сначала добавьте маркетплейс командой /plugin marketplace add anthropics/claude-plugins-community, потом поставьте плагин: /plugin install pencil-dev-skill@claude-community.

Что делает pencil-dev-skill?

Даёт агенту инструкции по работе с .pen-файлами pencil.dev: план, вызовы инструментов Pencil MCP, проверка и отчёт. Все чтения и записи идут через MCP с проверкой схемы.

Что нужно настроить до установки?

Настроенный Pencil MCP server в вашем инструменте кодинга и рабочее пространство на pencil.dev. Скилл сам доступ к редактору не открывает.

Исходный текст

SKILL.md · MIT
# pencil-dev-skill

Teach your AI coding tool to design in [pencil.dev](https://pencil.dev). Works with Claude Code, Cursor, and Codex.

[![version](https://img.shields.io/badge/version-0.8.0_pre--release-orange)](https://github.com/Nisus74/pencil-skill/commits/main) [![license](https://img.shields.io/badge/license-MIT-green)](./LICENSE)

> **Unofficial community plugin.** This project is not affiliated with or endorsed by the Pencil.dev team. For the Pencil editor, MCP server, and official documentation, visit [pencil.dev](https://pencil.dev). Issues with this skill belong in [this repo](https://github.com/Nisus74/pencil-skill); issues with the Pencil editor or MCP server belong with the Pencil.dev team.

[Star the repo](https://github.com/Nisus74/pencil-skill) if it helps you, or
[buy me a coffee or lunch](https://www.buymeacoffee.com/Nisus74) to support ongoing maintenance.

---

## What it does

Pencil.dev is a collaborative design tool for creating web and mobile interfaces via the Pencil MCP server. This skill teaches AI coding tools how to work with `.pen` design files.

- Guides the AI through a seven-step design workflow: detect host, orient, load guidelines, plan, execute, verify, report
- Teaches all 9 Pencil MCP tools with worked invocations, cost cheatsheet, and composite recipes
- Provides 2026 design depth: user flows, component and screen states, full accessibility coverage, and modern patterns (container queries, fluid type, AI-UI affordances)
- Ships 15 worked examples showing real MCP tool sequences from scratch
- Includes per-platform tool-name mappings so the same skill works everywhere

> **Status:** `0.8.0`, pre-release. Nothing is shipped until the owner cuts a release.

---

## What you'll be able to do

After installing this skill:

- **Generate complete UI designs** from natural language ("design a dashboard") without manual tool hunting
- **Speed up design iteration** by delegating pattern work to AI while you focus on unique decisions
- **Maintain design consistency** across components and screens
- **Work cross-platform** with the same skill on Claude Code, Cursor, or Codex
- **Customise the skill** for your team's workflow via folder copy or fork-and-install

---

## Prerequisites

You'll need three things:

1. **An AI coding tool:** [Claude Code](https://claude.ai/code), [Cursor](https://cursor.com), or [OpenAI Codex](https://openai.com/codex)
2. **Pencil MCP server:** Configure it in your tool ([how to set up Pencil](https://pencil.dev/docs/setup))
3. **A Pencil.dev workspace:** Create one free at [pencil.dev](https://pencil.dev) (no credit card required)

> **New to Pencil.dev?** It's a browser-based design tool. You don't install it; you open it in your browser and create `.pen` files there. This skill helps your AI tool work with those files.

---

## Install

**Most people want plugin install.** If you plan to customise the skill's instructions for your team, use folder copy or fork + install instead.

### Plugin install (recommended)

**Claude Code:** add the marketplace, then install the plugin. This lets you pin and update through the marketplace commands.

```bash
/plugin marketplace add Nisus74/pencil-skill
/plugin install pencil-dev-skill@pencil-dev-skill
```

**Cursor 2.5+:** in the editor, run `/add-plugin` and point it at `github.com/Nisus74/pencil-skill`.

**Codex:** add the marketplace, then install the plugin. Codex reads the same `.claude-plugin/marketplace.json` the repo ships.

```bash
codex plugin marketplace add Nisus74/pencil-skill
codex plugin add pencil-dev-skill@pencil-dev-skill
```

### Folder copy

Download [skills/pencil-design/](skills/pencil-design/) and drop it into the skills directory your tool reads.

Quickest method:

```bash
npx degit github:Nisus74/pencil-skill/skills/pencil-design <target>/pencil-design
```

Or with git:

```bash
git clone --depth=1 https://github.com/Nisus74/pencil-skill.git /tmp/pencil-skill
cp -r /tmp/pencil-skill/skills/pencil-design <target>/pencil-design
```

Where `<target>` lives:

| Tool | Path |
|------|------|
| Claude Code | `~/.claude/skills/` or `.claude/skills/` |
| Cursor | `.cursor/skills/` |
| Codex | `~/.codex/skills/` |

To update, re-run the same `degit` or `cp` command. If you've edited the files locally, diff and merge by hand.

### Fork + install

Available for Claude Code, Cursor, and Codex.

1. Fork [Nisus74/pencil-skill](https://github.com/Nisus74/pencil-skill) on GitHub.
2. Install your fork as a plugin:
   - Claude Code: `/plugin marketplace add <your-handle>/pencil-skill`, then `/plugin install pencil-dev-skill@pencil-dev-skill`
   - Cursor: `/add-plugin` pointing at `github.com/<your-handle>/pencil-skill`
   - Codex: `codex plugin marketplace add <your-handle>/pencil-skill`, then `codex plugin add pencil-dev-skill@pencil-dev-skill`
3. Edit your fork, commit, and push. The next plugin update pulls your changes.
4. To pull upstream changes, rebase your fork against `Nisus74/pencil-skill`.

For Copilot CLI, use folder copy. The end result is the same; you just don't get an automatic update path.

### Install Methods Comparison

| | One command | Edit freely | Auto-updates |
|---|---|---|---|
| **Plugin install** | yes | no | yes |
| **Folder copy** | yes | yes | manual |
| **Fork + install** | yes (after forking) | yes | yes (after rebasing) |

> **Note:** Don't edit files inside a plugin install directory. The next update overwrites them. To customise the skill itself, use folder copy or fork + install.

---

## Usage

Once installed, the skill activates automatically when you describe a pencil.dev task:

- *"Design a login screen in pencil"*
- *"Open my .pen file and show me the layout"*
- *"Generate a dashboard UI in pencil.dev"*
- *"Use the pencil MCP to update the button colour"*
- *"Edit the pencil design and change the header"*

The AI will handle opening files, reading your design system, generating components, and even taking screenshots to verify the work.

---

## Customising the skill

The skill content (`SKILL.md`, the references, the worked examples) tells the AI how to work. To rewrite it for your team's workflow, use folder copy or fork-and-install. Editing files inside a plugin install directory won't stick — the next update overwrites them.

---

## Getting help

**Questions?** Open a [GitHub issue](https://github.com/Nisus74/pencil-skill/issues/new) or check the [Q&A discussions](https://github.com/Nisus74/pencil-skill/discussions).

**Bug report?** Include the exact prompt you used, what you expected, and what happened instead. Screenshots help.

**Want to contribute?** Read [docs/CONTRIBUTING.md](./docs/CONTRIBUTING.md) for the full guide. Short version: fork, branch from `main`, make your change, run the pre-commit checks, open a PR with before/after examples.

---

## Repository Layout

The substance of this project is platform-agnostic. Platform-specific files exist only as install adapters:

```
skills/pencil-design/
  SKILL.md                          # Core skill — YAML frontmatter + instructions
  references/                       # 50 reference files loaded on demand
    mcp-tools.md                    # Cookbook for all 9 MCP tools
    batch-design-grammar.md         # batch_design JavaScript API reference
    pen-schema.md                   # .pen file schema reference (v2.14)
    advanced-canvas.md              # Shader fills, mesh gradients, script nodes, arcs/donuts, prompt/context
    pencil-cli.md                   # Full Pencil CLI reference + When CLI vs MCP table
    states.md                       # Component states + screen fault states
    flows.md                        # Screen transitions (modal, validation, back-stack)
    accessibility.md                # ARIA, focus, RTL, prefers-*, dynamic type
    modern-patterns.md              # Container queries, fluid type, AI-UI, perceived perf
    component-anatomy.md            # Reading component structure: slots, descendants, states
    visual-hierarchy.md, layout-patterns.md, typography.md,
    colour-palettes.md, font-pairings.md, data-viz.md, …  # Design-depth references
    style-catalogue.md, industry-patterns.md, …           # Menu-style catalogues
    amplify.md, pare.md, trim.md, soften.md, …            # Sub-command references
    codex-tools.md                  # Codex tool name mappings
  design-system/                    # Optional design-system reference templates (one level deep)
    README.md                       # Agent loading guide
    CUSTOMISING.md                  # Plain-English guide for non-technical editors
    accessibility.md, empty-states.md, file-architecture.md,
    forms.md, micro-interactions.md, navigation.md,
    onboarding.md, search.md, visual-style.md
  examples/                         # 15 worked examples with real MCP sequences (one level deep)
    example-login-screen.md
    example-dashboard.md
    example-marketing-page.md
    example-form-flow.md
    (and 11 more)
  evals/
    evals.json

AGENTS.md                           # Canonical project context (cross-platform)
tools/
  skill-lint.py                     # OWASP agentic skills lint (CI + pre-commit)
  test_skill_lint.py                # Lint unit tests
.claude-plugin/
  plugin.json                       # Claude Code plugin manifest
  marketplace.json                  # Claude Code marketplace listing
.cursor-plugin/plugin.json          # Cursor plugin manifest
.codex-plugin/plugin.json           # Codex plugin manifest
```

See [AGENTS.md](./AGENTS.md) for the full developer guide.

---

## License

MIT. See [LICENSE](./LICENSE).

© Nisus74 · MIT · Nisus74/pencil-skill

Похожие плагины

Все плагины по теме «Дизайн» →
example-skills официальный anthropics Набор примеров скиллов для Claude: от веб-тестов и MCP до дизайна и документов. Подойдёт, чтобы изучить структуру скилла или взять шаблон за основу. ★ 183 839звёзд репо impeccable pbakaus Даёт агенту словарь дизайнера: 24 команды вроде polish, audit и bolder, чтобы правки интерфейса не сводились к «сделай красиво». ★ 88 212звёзд репо hyperframes HeyGen Собирает MP4-видео из вёрстки на HTML и CSS прямо через диалог с агентом. Пригодится для создания субтитров и анимированных роликов. ★ 72 481звёзд репо playground официальный Anthropic Собирает одностраничный HTML с ползунками, живым превью и готовым промптом, который можно скопировать обратно в Claude. ★ 44 635звёзд репо frontend-design официальный Anthropic Скилл для Claude, который ведёт фронтенд-работу к выразительной типографике, палитре и анимации вместо типовых ИИ-макетов. ★ 44 635звёзд репо visual-explainer nicobailon Плагин превращает сложный вывод терминала, архитектуру и сравнения требований в HTML-страницы с диаграммами. Страницы открываются в браузере. ★ 10 630звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой