Loading...
Loading...
Compare original and translation side by side
mcp__gemini__gemini-querymcp__gemini__gemini-query@rlabs-inc/gemini-mcpmcp__gemini__gemini-queryclaude mcp add -e GEMINI_API_KEY=<your-key> -e GEMINI_PRO_MODEL=gemini-3.1-pro-preview gemini -- npx -y @rlabs-inc/gemini-mcpGEMINI_PRO_MODEL=gemini-3.1-pro-preview.claude.jsonclaude mcp remove geminiGEMINI_API_KEY@rlabs-inc/gemini-mcpmcp__gemini__gemini-queryclaude mcp add -e GEMINI_API_KEY=<your-key> -e GEMINI_PRO_MODEL=gemini-3.1-pro-preview gemini -- npx -y @rlabs-inc/gemini-mcpGEMINI_PRO_MODEL=gemini-3.1-pro-preview.claude.jsonclaude mcp remove geminiGEMINI_API_KEYgemini-3.1-pro-previewGEMINI_PRO_MODELlowmediumhighmediumhighgemini-3.1-pro-previewGEMINI_PRO_MODELlowmediumhighhighmediumhigh1. Understand request → Determine SVG category + complexity
2. Build prompt → Load category template from references/prompt-templates.md
3. Generate → Call Gemini 3.1 Pro with crafted prompt (thinkingLevel by complexity)
4. Analyze → Claude reviews SVG for issues
5. Refine → Send fix prompt back to Gemini (up to 2 rounds)
6. Optimize → Claude cleans up final SVG (see references/svg-optimization.md)
7. Save → Write .svg file(s) and present to user1. 理解需求 → 确定SVG类别与复杂度
2. 构建提示词 → 从references/prompt-templates.md加载类别模板
3. 生成SVG → 使用构建好的提示词调用Gemini 3.1 Pro(根据复杂度选择对应思考等级)
4. 分析结果 → Claude检查SVG是否存在问题
5. 优化迭代 → 将修复提示词发送给Gemini(最多2轮)
6. 最终优化 → Claude清理最终SVG(详见references/svg-optimization.md)
7. 保存交付 → 写入.svg文件并交付给用户| Category | Triggers | Complexity |
|---|---|---|
| logo | logo, brand, wordmark, lettermark, emblem, badge | medium |
| icon | icon, symbol, pictogram, glyph, favicon | low |
| illustration | illustration, scene, drawing, artwork, graphic | high |
| infographic | infographic, data visualization, chart, diagram | high |
| pattern | pattern, texture, background, tile, seamless | medium |
| animated | animated, animation, motion, loading, spinner | high |
| animated-scene | animated illustration, character animation, story | high |
| ui-element | button, card, banner, header, component | low-medium |
0 0 800 600| 类别 | 触发词 | 复杂度 |
|---|---|---|
| logo | logo、品牌标识、文字标志、字母标志、徽章、标识牌 | 中等 |
| 图标 | 图标、符号、象形图、字形、网站图标(favicon) | 低 |
| 插画 | 插画、场景、绘画、艺术品、图形 | 高 |
| 信息图 | 信息图、数据可视化、图表、示意图 | 高 |
| 图案 | 图案、纹理、背景、平铺元素、无缝图案 | 中等 |
| 动画类 | 动画、动态效果、运动、加载动画、加载指示器 | 高 |
| 动画场景 | 动画插画、角色动画、故事场景 | 高 |
| UI元素 | 按钮、卡片、横幅、页眉、组件 | 低-中等 |
0 0 800 600references/prompt-templates.md[Master System Prompt for Gemini 3.1 Pro]
[Category-Specific Suffix]
[Style Modifier (if applicable)]
Now create: [user's description, enriched with design details]
Colors: [specified or "choose a harmonious palette suited to the subject"]
ViewBox: [specified or default]references/prompt-templates.md[Gemini 3.1 Pro专属主系统提示词]
[类别专属后缀]
[风格修饰词(如适用)]
现在需要创建:[用户需求描述,补充设计细节]
颜色:[指定颜色或"选择与主题匹配的和谐配色"]
ViewBox:[指定值或默认值]| Complexity | thinkingLevel | Use for |
|---|---|---|
| low | | Simple icons, basic shapes |
| medium | | Logos, patterns, UI elements |
| high | | Illustrations, animations, complex scenes |
mcp__gemini__gemini-query(
prompt: <constructed prompt>,
model: "pro",
thinkingLevel: <selected level>
)<svg>...</svg>| 复杂度 | 思考等级 | 适用场景 |
|---|---|---|
| 低 | | 简单图标、基础形状 |
| 中等 | | Logo、图案、UI元素 |
| 高 | | 插画、动画、复杂场景 |
mcp__gemini__gemini-query(
prompt: <构建好的提示词>,
model: "pro",
thinkingLevel: <选定的等级>
)<svg>...</svg><defs>stdDeviationstdDev<defs>stdDevstdDeviationHere is an SVG that needs fixes:
<svg>...the current SVG...</svg>
Issues to fix:
1. [specific issue and how to fix it]
2. [specific issue and how to fix it]
[Include Quality Checklist Prompt from references/prompt-templates.md]mcp__gemini__gemini-querymodel: "pro"thinkingLevel以下SVG需要修复:
<svg>...当前SVG内容...</svg>
需要修复的问题:
1. [具体问题及修复方式]
2. [具体问题及修复方式]
[加入references/prompt-templates.md中的质量检查清单提示词]mcp__gemini__gemini-querymodel: "pro"thinkingLevelreferences/svg-optimization.md<svg>xmlns="http://www.w3.org/2000/svg"<defs><style><title><desc>role="img"aria-labelledbyxlink:hrefhrefstdDevstdDeviationprefers-reduced-motionreferences/svg-optimization.md<svg>xmlns="http://www.w3.org/2000/svg"<defs><style><title><desc>role="img"aria-labelledbyxlink:hrefhrefstdDevstdDeviationprefers-reduced-motion{subject}-{style}.svgrocket-minimalist.svg{主题}-{风格}.svgrocket-minimalist.svglogo-concept-1-geometric.svglogo-concept-2-organic.svglogo-concept-1-geometric.svglogo-concept-2-organic.svg| Style | Key characteristics |
|---|---|
| Minimalist | Few elements, monochrome/2-color, geometric, whitespace |
| Flat | No gradients/shadows, bold solids, clear silhouettes |
| Gradient | Linear/radial gradients, smooth transitions, modern depth |
| Hand-drawn | Imperfect lines, organic shapes, warm and friendly |
| Isometric | 30-degree angles, consistent depth, flat-shaded faces |
| Glassmorphism | Semi-transparent, blur filters, frosted glass, subtle borders |
| Retro | Muted palette, halftone textures, rounded shapes |
| Line Art | Strokes only, no fills, consistent width, single color |
| Neon | Dark background, bright strokes, glow filter, high contrast |
| Geometric | Circles/rects/triangles only, mathematical precision, bold blocks |
references/prompt-templates.md| 风格 | 核心特征 |
|---|---|
| 极简风 | 元素少,单色/双色,几何形状,留白 |
| 扁平化 | 无渐变/阴影,纯色块,清晰轮廓 |
| 渐变风 | 线性/径向渐变,平滑过渡,现代感层次 |
| 手绘风 | 线条不完美,有机形状,温暖友好 |
| 等轴测 | 30度角,统一深度,平涂色块 |
| 玻璃拟态 | 半透明,模糊滤镜,毛玻璃效果,细微边框 |
| 复古风 | 低饱和度配色,半色调纹理,圆角形状 |
| 线稿风 | 仅描边,无填充,线条宽度一致,单色 |
| 霓虹风 | 深色背景,明亮描边,发光滤镜,高对比度 |
| 几何风 | 仅使用圆形/矩形/三角形,数学精度,大胆色块 |
references/prompt-templates.md