用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/a5c-ai/babysitter --skill svg-optimizer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | svg-optimizer |
| description | Optimize SVG assets, generate sprites, and convert to React components |
| allowed-tools | ["Read","Write","Edit","Bash","Glob","Grep"] |
| graph | {"domains":["domain:web-development"],"specializations":["specialization:ux-ui-design"],"skillAreas":["skill-area:visual-design","skill-area:web-performance"],"roles":["role:frontend-engineer"],"workflows":["workflow:user-feedback-loop","workflow:product-discovery"]} |
Optimize SVG assets for web and mobile use, including compression, sprite generation, and React component conversion.
{
"type": "object",
"properties": {
"inputPath": {
"type": "string",
"description": "Path to SVG file or directory"
},
"outputPath": {
"type": "string",
"description": "Output directory"
},
"generateSprite": {
"type": "boolean",
"default": false
},
"generateComponents": {
"type": "boolean",
"default": false
},
"componentFormat": {
"type": "string",
"enum": ["react", "vue", "svelte"],
"default": "react"
},
"optimizationLevel": {
"type": "string",
"enum": ["minimal", "standard", "aggressive"],
"default": "standard"
},
"addAccessibility": {
"type": "boolean",
"default": true
}
},
"required": ["inputPath"]
}
{
"type": "object",
"properties": {
"optimizedFiles": {
"type": "array",
"description": "List of optimized SVG files"
},
"spritePath": {
"type": "string",
"description": "Path to generated sprite file"
},
"componentPaths": {
"type": "array",
"description": "Paths to generated components"
},
"sizeSavings": {
"type": "object",
"description": "File size reduction statistics"
},
const result = await skill.execute({
inputPath: './icons',
outputPath: './optimized-icons',
generateSprite: true,
generateComponents: true,
componentFormat: 'react',
addAccessibility: true
});