跳到正文
Skillpedia
界面(UI/UX)40k · #7316

penpot-uiux-design

它能做什么

这个工具可以帮你使用 Penpot 创建专业的用户界面(UI)和用户体验(UX)设计。你可以设计新的界面,搭建包含组件的设计系统,并遵循无障碍和各平台的设计规范。

适用场景

  • ✓为一个新应用(网页、移动端或桌面端)设计外观时。
  • ✓搭建一套可复用的设计元素(设计系统)时。
  • ✓创建特定页面,比如仪表盘、表单或落地页时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/penpot-uiux-design/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/penpot-uiux-design/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“按照 iOS 设计规范创建一个登录按钮,并确保它符合无障碍要求。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会连接到 Penpot,并通过命令创建或修改视觉元素。它还可以导入图片、导出设计部分以供审阅,也可以运行代码来自动化设计任务。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Penpot UI/UX Design Guide

Create professional, user-centered designs in Penpot using the penpot/penpot-mcp MCP server and proven UI/UX principles.

Available MCP Tools

Tool Purpose
mcp__penpot__execute_code Run JavaScript in Penpot plugin context to create/modify designs
mcp__penpot__export_shape Export shapes as PNG/SVG for visual inspection
mcp__penpot__import_image Import images (icons, photos, logos) into designs
mcp__penpot__penpot_api_info Retrieve Penpot API documentation

MCP Server Setup

The Penpot MCP tools require the penpot/penpot-mcp server running locally. For detailed installation and troubleshooting, see setup-troubleshooting.md.

Before Setup: Check If Already Running

Always check if the MCP server is already available before attempting setup:

  1. Try calling a tool first: Attempt mcp__penpot__penpot_api_info - if it succeeds, the server is running and connected. No setup needed.

  2. If the tool fails, ask the user:

    "The Penpot MCP server doesn't appear to be connected. Is the server already installed and running? If so, I can help troubleshoot. If not, I can guide you through the setup."

  3. Only proceed with setup instructions if the user confirms the server is not installed.

Quick Start (Only If Not Installed)

# Clone and install
git clone https://github.com/penpot/penpot-mcp.git
cd penpot-mcp
npm install

# Build and start servers
npm run bootstrap

Then in Penpot:

  1. Open a design file
  2. Go to Plugins → Load plugin from URL
  3. Enter: http://localhost:4400/manifest.json
  4. Click "Connect to MCP server" in the plugin UI

VS Code Configuration

Add to settings.json:

{
  "mcp": {
    "servers": {
      "penpot": {
        "url": "http://localhost:4401/sse"
      }
    }
  }
}

Troubleshooting (If Server Is Installed But Not Working)

Issue Solution
Plugin won't connect Check servers are running (npm run start:all in penpot-mcp dir)
Browser blocks localhost Allow local network access prompt, or disable Brave Shield, or try Firefox
Tools not appearing in client Restart VS Code/Claude completely after config changes
Tool execution fails/times out Ensure Penpot plugin UI is open and shows "Connected"
"WebSocket connection failed" Check firewall allows ports 4400, 4401, 4402

Quick Reference

Task Reference File
MCP server installation & troubleshooting setup-troubleshooting.md
Component specs (buttons, forms, nav) component-patterns.md
Accessibility (contrast, touch targets) accessibility.md
Screen sizes & platform specs platform-guidelines.md

Core Design Principles

The Golden Rules

  1. Clarity over cleverness: Every element must have a purpose
  2. Consistency builds trust: Reuse patterns, colors, and components
  3. User goals first: Design for tasks, not features
  4. Accessibility is not optional: Design for everyone
  5. Test with real users: Validate assumptions early

Visual Hierarchy (Priority Order)

  1. Size: Larger = more important
  2. Color/Contrast: High contrast draws attention
  3. Position: Top-left (LTR) gets seen first
  4. Whitespace: Isolation emphasizes importance
  5. Typography weight: Bold stands out

Design Workflow

  1. Check for design system first: Ask user if they have existing tokens/specs, or discover from current Penpot file
  2. Understand the page: Call mcp__penpot__execute_code with penpotUtils.shapeStructure() to see hierarchy
  3. Find elements: Use penpotUtils.findShapes() to locate elements by type or name
  4. Create/modify: Use penpot.createBoard(), penpot.createRectangle(), penpot.createText() etc.
  5. Apply layout: Use addFlexLayout() for responsive containers
  6. Validate: Call mcp__penpot__export_shape to visually check your work

Design System Handling

Before creating designs, determine if the user has an existing design system:

  1. Ask the user: "Do you have a design system or brand guidelines to follow?"
  2. Discover from Penpot: Check for existing components, colors, and patterns

…
常见问题

什么是 Penpot?

Penpot 是一款开源的设计和原型工具,功能类似于 Figma。

什么是“组件”和“令牌”?

组件是可以反复使用的设计元素,比如按钮、文本框。令牌是定义设计的基础值,比如颜色、字体和间距。

设计中的“无障碍”是什么意思?

指确保所有人都能使用这个设计,包括残障人士,比如保证足够的颜色对比度、合适的点击区域大小等。

详情

作者的原始描述

Comprehensive guide for creating professional UI/UX designs in Penpot using MCP tools. Use this skill when: (1) Creating new UI/UX designs for web, mobile, or desktop applications, (2) Building design systems with components and tokens, (3) Designing dashboards, forms, navigation, or landing pages, (4) Applying accessibility standards and best practices, (5) Following platform guidelines (iOS, And

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7316
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能