Create and optimize SVG graphics with proper viewBox, accessibility, and CSS styling.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install svg或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install svg⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/svg/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: SVG version: 1.1.0 changelog: "Restructured with auxiliary files for focused reference" description: Create and optimize SVG graphics with proper viewBox, accessibility, and CSS styling. metadata: {"clawdbot":{"emoji":"📐","requires":{},"os":["linux","darwin","win32"]}} ---
| Topic | File | Key Trap | |-------|------|----------| | viewBox & Scaling | viewbox.md | Missing viewBox = no scaling | | Screen Readers | accessibility.md | role="img" + title as first child | | SVGO Config | optimization.md | Default removes viewBox/title | | Inline vs img | embedding.md | cannot be styled with CSS | | currentColor | styling.md | Hardcoded fills block theming |
<!-- Minimum viable SVG -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="..."/>
</svg>
fill="#000" if theming neededrole="img" + for informative SVGsaria-hidden="true" for decorative SVGs.svg filesUser preferences persist in ~/svg/memory.md. Create on first use.
## User Preferences
<!-- SVG workflow defaults. Format: "setting: value" -->
<!-- Examples: default_viewbox: 0 0 24 24, prefer_inline: true -->
## Accessibility Mode
<!-- informative | decorative -->
## Optimization
<!-- Tool and settings. Format: "tool: setting" -->
<!-- Examples: svgo: preset-default, remove_metadata: true -->
## Icon Defaults
<!-- Fill and sizing preferences -->
<!-- Examples: fill: currentColor, default_size: 24x24 -->
Empty sections = use skill defaults. Learns user preferences over time.
安装 SVG 后,可以对 AI 说这些话来触发它
Help me get started with SVG
Explains what SVG does, walks through the setup, and runs a quick demo based on your current project
Use SVG to create and optimize SVG graphics with proper viewBox, accessibility...
Invokes SVG with the right parameters and returns the result directly in the conversation
What can I do with SVG in my data & analytics workflow?
Lists the top use cases for SVG, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/svg/ 目录(个人级,所有项目可用),或 .claude/skills/svg/(项目级)。重启 AI 客户端后,用 /svg 主动调用,或让 AI 根据上下文自动发现并使用。
SVG 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
SVG 可免费安装使用。请查阅仓库了解许可证信息。
Create and optimize SVG graphics with proper viewBox, accessibility, and CSS styling.
SVG 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using SVG
Identifies repetitive steps in your workflow and sets up SVG to handle them automatically