SVG
Create and optimize SVG graphics with proper viewBox, accessibility, and CSS styling.
от clawic★ 23 звезды на GitHub
Установить SVG в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Quick Reference
| 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 |
<img> cannot be styled with CSS |
| currentColor | styling.md |
Hardcoded fills block theming |
Critical Defaults
<!-- Minimum viable SVG -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="..."/>
</svg>
Common Mistakes Checklist
- viewBox present (not just width/height)
- Coordinates within viewBox bounds
- No hardcoded
fill="#000"if theming needed -
role="img"+<title>for informative SVGs -
aria-hidden="true"for decorative SVGs - Unique IDs across all inline SVGs on page
- xmlns included for external
.svgfiles
Memory Storage
User preferences persist in ~/Clawic/data/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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- accessibility.md
- embedding.md
- optimization.md
- styling.md
- viewbox.md
FAQ
Что делает скилл SVG?
Create and optimize SVG graphics with proper viewBox, accessibility, and CSS styling.
Как установить скилл SVG?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл SVG запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…