Token导航 LogoToken导航

Agent Skill · 前端设计

svg-design(svg 设计)

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

svg-design 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,413。

总安装 288周安装 12GitHub Stars 54下载 96核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tryopendata/skills --skill svg-design

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助 SVG 图形的视觉设计与规范制定,提升图标与插画的一致性。适合在 Codex、Claude、Cursor、Gemini CLI 中生成符合品牌标准的矢量素材。通过 GitHub 仓库安装,提供网格系统、对齐工具与色彩配置文件。需考虑可访问性,确保描边对比度与语义化标签正确使用。

建议核对仓库是否包含与 Adobe Illustrator 的导出预设兼容方案。

来源仓库内路径:skills/svg-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tryopendata/skills --skill svg-design;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

svg-design 怎么安装?

在终端执行 npx skills add https://github.com/tryopendata/skills --skill svg-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

svg-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

svg-design 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

svg-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

svg-design 用的人多吗?

公开数据是累计安装 288 次,近一周安装 12 次,下载 96 次,GitHub 54 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

svg-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
svg-design

svg 设计 · 本页

28854操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

SVG Creation and Editing

Core principle: SVGs are code. Write them by hand like you'd write any markup: clean, minimal, semantically meaningful. Every element and attribute should earn its place.

Topic Routing

TaskLoad reference
Arc flag combinations, common path shapesreferences/path-patterns.md
Logo design, typography, negative spacereferences/logo-techniques.md
Icon design, grid systems, pixel alignmentreferences/icon-design.md
Gradients, masks, clips, filters, transforms (design decisions)references/advanced-techniques.md
Animation (CSS keyframes, stagger, GPU, easing, SVG-specific)references/animation.md
Optimization, sprites, SVGO configreferences/optimization.md
Accessibility, browser pitfallsreferences/accessibility-and-pitfalls.md
Editing workflow, boolean operations, combining SVGsreferences/editing-workflow.md

SVG Skeleton

Always start from this structure:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <!-- content -->
</svg>

Adjust viewBox to match the design canvas. Omit width/height attributes to let the SVG scale with its container (add them only when a fixed size is needed).

Canvas Size Conventions

SizeUse caseNotes
0 0 16 16Micro icons, faviconsHeroicons micro, GitHub Octicons
0 0 20 20Small UI icons, form elementsHeroicons mini
0 0 24 24Standard icons (most common)Lucide, Heroicons outline, Material
0 0 32 32Medium icons, navigationPhosphor uses 256x256 internally
0 0 48 48Large display iconsApp icons, illustrations
CustomLogos, illustrationsMatch the natural aspect ratio

Default to 24x24 unless there's a reason not to. It's the industry standard.

Shape vs Path Decision

Use shape primitive when...Use <path> when...
The shape is a basic geometric formThe shape has curves, complex outlines
Readability matters (a circle should look like <circle>)You need to minimize element count
You need to animate individual properties (r, cx, cy)Combining multiple shapes into one element
The shape will be programmatically modifiedExporting from design tools (paths are universal)

Styling Defaults

Set these on the root <svg> element to avoid repetition on children:

AttributeIcon defaultLogo defaultWhy
fillnonevariesIcons are typically stroked, logos are filled
strokecurrentColornone or currentColorInherits text color from parent
stroke-width2 (on 24x24)variesConsistent weight across icons
stroke-linecaproundround or buttRounded ends look cleaner at small sizes
stroke-linejoinroundround or miterPrevents sharp spikes at joins

currentColor is your friend. It lets the SVG inherit whatever color the parent element has, making icons themeable with zero extra CSS.

Stroke-Width Relative to ViewBox

stroke-width is in viewBox units, not pixels. Always set relative to your canvas dimensions:

viewBoxTypical stroke-widthVisual result
16x161.5~9.4% of canvas
24x242~8.3% of canvas
32x322-2.5~6.3-7.8% of canvas
48x483~6.3% of canvas
256x25616~6.3% of canvas

When to Convert Shapes to Paths

Convert when:

  • Combining multiple shapes into a single compound path (boolean operations)
  • You need the shape as part of a larger path composition
  • Distributing to environments that only support <path>
  • Optimizing for minimal DOM elements

Keep as shapes when:

  • Code readability matters (a <circle> is self-documenting)
  • You need to animate specific properties (animating r on a circle is cleaner than animating path data)
  • The SVG will be programmatically modified

Rounded rect-to-path template

The arc parameters here are error-prone to derive. Use this as a reference:

<!-- <rect x="2" y="2" width="20" height="20" rx="3" /> becomes: -->
<path d="M 5 2 h 14 a 3 3 0 0 1 3 3 v 14 a 3 3 0 0 1 -3 3 h -14 a 3 3 0 0 1 -3 -3 v -14 a 3 3 0 0 1 3 -3 Z" />

fill-rule: evenodd vs nonzero

Use evenodd when you have compound shapes with holes. It's simpler because you don't need to worry about winding direction:

<!-- Donut using evenodd (direction doesn't matter) -->
<path fill-rule="evenodd" d="
  M 12 2 A 10 10 0 1 1 12 22 A 10 10 0 1 1 12 2 Z
  M 12 7 A 5 5 0 1 1 12 17 A 5 5 0 1 1 12 7 Z
" fill="black" />

With nonzero (default), the inner circle must wind in the opposite direction to create the hole.

Logo Design Process

When creating logos (not icons), follow this process:

  1. Always clarify design direction before creating logos. Use AskUserQuestion to present curated design direction choices before writing any SVG code. This step is mandatory for all logo projects. Even when the user provides some direction (like "modern" or "YC style"), those are vibes, not design briefs. A designer would still present options to narrow the direction before investing in 5-15 concepts. Present choices like a designer showing mood boards. Don't ask open-ended questions. Tailor options to the user's domain: AskUserQuestion({questions: [{question: "What visual personality fits your brand?", header: "Mood", multiSelect: false, options: [{label: "Bold & geometric", description: "Clean shapes, strong lines, confident. Think Stripe, Figma."}, {label: "Organic & crafted", description: "Hand-drawn feel, natural curves, warmth. Think Mailchimp, Basecamp."}, {label: "Minimal & typographic", description: "Wordmark-driven, restrained, sophisticated. Think Glossier, Everlane."}, {label: "Playful & dynamic", description: "Energetic, colorful, movement. Think Slack, Discord."}]}, {question: "What should the logo emphasize?", header: "Focus", multiSelect: false, options: [{label: "What we do", description: "Visual metaphor tied to your product's core function"}, {label: "How it feels", description: "Abstract mark that conveys emotion or energy"}, {label: "Who we are", description: "Letterform or wordmark built from the brand name"}]}, {question: "Which of these logos in your space resonates most?", header: "Inspiration", multiSelect: false, options: [// IMPORTANT: populate these with 3-4 real, well-known brands // in or adjacent to the user's specific industry/domain. // Examples below are for an AI startup - replace entirely // for other domains. {label: "Linear", description: "Precise geometric icon, purple gradient, premium feel"}, {label: "Stripe", description: "Simple bold wordmark, single accent color, confident restraint"}, {label: "Notion", description: "Friendly icon with personality, approachable, slightly playful"}, {label: "Vercel", description: "Abstract minimal triangle, stark black/white, developer-focused"}]}]}) Tailoring the questions to the domain is critical. The mood options, focus options, and especially the inspiration logos must be specific to the user's industry. A coffee brand gets Blue Bottle, Stumptown, Intelligentsia, Counter Culture as inspiration options. A fintech startup gets Stripe, Plaid, Mercury, Ramp. A fitness app gets Peloton, Strava, Nike Run Club, Whoop. Pick brands the user will immediately recognize and have an opinion about. The inspiration question does the most work here because it anchors the entire aesthetic direction to something concrete. The only exception: skip if the user has specified both a concrete visual style AND specific imagery (e.g., "minimalist geometric logo using a mountain silhouette in navy blue").
  2. Explore multiple metaphors, not multiple layouts of one metaphor. Conceptual diversity matters more than layout variations. Follow the full ideation process in references/logo-techniques.md, which covers domain-specific brainstorming, category diversity requirements, and cliche avoidance.
  3. Guarantee structural variety. Every logo set must span multiple *categories* of approach, not just multiple metaphors within the same style. Include at least one from each column when presenting 5+ options: a typographic/wordmark approach, a symbolic icon, an abstract geometric mark, and a letterform-meets-metaphor hybrid. See the category diversity table in references/logo-techniques.md.
  4. Set up the preview immediately, then populate it progressively. Don't design all logos first and then show them. The user should see results as they're created: This gives the user visual feedback within seconds of the first logo being ready, rather than waiting for all logos to be designed before seeing anything.

1. Copy this skill's assets/preview.html to the project directory using cp with the absolute path from where this skill was loaded (do not read or modify the file). 2. Design the first logo and write its SVG file. 3. Write variants.js with just that first variant (format in references/editing-workflow.md). 4. Open the preview with open preview.html (macOS) or xdg-open preview.html (Linux). The user now sees the first logo while you keep working. 5. For each subsequent logo: write the SVG file, then update variants.js to add it. The preview auto-reloads both every 3 seconds, so new logos appear in the browser as they're completed.

  1. For colored logos, always create a -dark.svg variant. Dark navy edges (#1E3A5F) that look great on white disappear on dark backgrounds. Dark variants need lighter edges (#4B8BBE), lighter rings (#3B6B8A), and off-white centers (#E2E8F0).
  2. Plan your vertical budget before drawing. On a 32x32 canvas with 3 stacked elements, you have ~30 usable units. Sketch the vertical distribution first (e.g., box=12, gap=2, layer=5, gap=2, layer=5) to avoid clipping at viewBox edges.

Anti-Patterns

Don'tDo instead
Hardcode width="24" height="24" without viewBoxUse viewBox always; add width/height only if needed
Set fill="none" on a <g> groupSet fill on individual elements or the root <svg>
Use px units inside SVGSVG coordinates are unitless; they map to viewBox
Include editor metadata (<sodipodi:*>, <inkscape:*>)Strip all editor cruft
Use <text> for logo wordmarks in distributed SVGsConvert text to paths for portability
Nest transforms three levels deepFlatten transforms into path coordinates
Use xlink:hrefUse href (xlink is deprecated)
Forget xmlns on standalone SVG filesAlways include xmlns="http://www.w3.org/2000/svg"
Use decimal precision beyond 2-3 places for iconsRound to 2 decimals for icons, 3 max for complex art

Cross-References

  • Design aesthetics: If the ce plugin is installed, Skill(ce:design) covers broader visual design decisions
  • Mermaid diagrams: If the ce plugin is installed, Skill(ce:visualizing-with-mermaid) covers diagram-specific visualizations (not SVG)

平台分布

Codex

33.09%
按下载量换算32

Claude

31.45%
按下载量换算30

Cursor

18.5%
按下载量换算18

Gemini CLI

10%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills