Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

pen-design笔设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

423

周安装

18

GitHub Stars

2

下载量

148
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pen-design(笔设计)
来源仓库:https://github.com/altshiftstudio/skills
仓库路径:skills/pen-design
安装命令:
npx skills add https://github.com/altshiftstudio/skills --skill pen-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/altshiftstudio/skills --skill pen-design

简介

pen-design 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。
  • 使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。
  • 安装命令为 npx skills add https://github.com/altshiftstudio/skills --skill pen-design。
  • 当前分类为研究检索,适用于 Codex、Claude、Cursor、Gemini CLI。

SKILL.md

Pencil Design

Create and manipulate .pen design files using Pencil MCP tools.

Workflow

1. Orientation

get_editor_state     → Check active file and selection
get_guidelines       → Load topic-specific rules (landing-page, design-system, table, code, tailwind)
batch_get            → Read file structure or find components

2. Design (if creating from scratch)

get_style_guide_tags → Browse available visual styles
get_style_guide      → Load style guide for inspiration
open_document        → Create new file if needed

3. Build

batch_design         → Insert, update, copy, replace, move, delete nodes (max 25 ops/call)
get_screenshot       → Verify visual output after changes
snapshot_layout      → Debug layout issues or find clipping problems

4. Refine

get_variables        → Read design tokens and themes
set_variables        → Update tokens for consistent styling
replace_all_matching_properties → Bulk property updates

Quick Reference

Element Types

TypePurposeKey Properties
frameContainer/layoutlayout, gap, padding, children, reusable
textTypographycontent, fontFamily, fontSize, fontWeight
rectangleShapewidth, height, fill, cornerRadius
refComponent instanceref (source ID), descendants (overrides)
icon_fontIconiconFontName, iconFontFamily ("lucide")
pathVectorgeometry (SVG path data)

Layout

PropertyValues
layout"none" (absolute), "horizontal", "vertical"
justifyContentstart, center, end, space_between
alignItemsstart, center, end, stretch
width/height360, "fill_container", "fill_container(360)", "fit_content"
padding16, [12, 24], [8, 16, 8, 16]

Tokens

Prefix: $--

CategoryExamples
Colors$--primary, $--foreground, $--background, $--border
Semantic$--color-success, $--color-warning, $--color-error
Typography$--font-primary, $--font-secondary
Radii$--radius-none, $--radius-m, $--radius-pill

Operations (batch_design)

Operations use JavaScript-like syntax. Every Insert/Copy/Replace needs a binding.

OpSyntaxUse
Ibtn=I(parent, {type: "frame",...})Insert node
UU(path, {content: "New"})Update properties
Ccopy=C(sourceId, parent, {...})Copy node
Rnew=R(path, {type: "text",...})Replace node
MM(nodeId, newParent, index?)Move node
DD(nodeId)Delete node
GG(nodeId, "stock", "office")Apply image fill

Component Instances

// Insert instance and override text
card=I(container, {type: "ref", ref: "CardComp"})
U(card+"/titleText", {content: "New Title"})

// Replace slot content
newContent=R(card+"/slot", {type: "text", content: "Custom"})

Critical Rules

  1. IDs auto-generate — never set id in node data
  2. Bindings required — every I/C/R must have name=...
  3. Max 25 ops — split larger designs across calls
  4. Copy descendants — use descendants property, not separate U() calls
  5. Verify visually — call get_screenshot after modifications

Reference Files

FileWhen to Read
mcp-operations.mdDetailed operation syntax, examples, and edge cases
patterns.mdElement creation examples, styling patterns, theming
schema.jsonAuthoritative property definitions for validation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.31%
按下载量换算40

OpenCode

22.76%
按下载量换算34

Antigravity

15.53%
按下载量换算23

windsurf

13.85%
按下载量换算20

github-copilot

8.25%
按下载量换算12

Codex

3.42%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills