技能 create-svg-from-prompt
1
下載技能 ZIP
2
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
3
開啟並開始使用
測試它
正在使用「create-svg-from-prompt」。 Create an SVG of a simple yellow sun with rays
預期結果:
- Generated: sun_icon.svg
- The SVG file has been created with a yellow circular sun and radiating rays.
正在使用「create-svg-from-prompt」。 Create an SVG of a green tree with brown trunk
預期結果:
- Generated: green_tree.svg
- The SVG file contains a stylized tree with green foliage and brown trunk.
安全審計
低風險v4 • 1/21/2026
All static findings evaluated as false positives. The skill uses legitimate API calls to Google Gemini and standard CLI tools for SVG generation. Sudo commands are for dependency installation only. No malicious behavior detected.
2
已掃描檔案
538
分析行數
10
發現項
4
審計總數
高風險問題 (4)
Sudo command execution
Sudo commands detected for installing autotrace dependency
C2 keyword pattern match
Pattern matching flagged internal JSON fields as C2 keywords
中風險問題 (1)
Shell backtick execution pattern
Backtick syntax detected in code examples
低風險問題 (1)
風險因素
⚡ 包含腳本 (1)
⚙️ 外部命令 (2)
🌐 網路存取 (2)
🔑 環境變數 (1)
偵測到的模式
Code execution with network access
審計者: claude 查看審計歷史 →
品質評分
38
架構
100
可維護性
85
內容
46
社群
43
安全
91
規範符合性
你能建構什麼
創建自訂圖示和標誌
從文字描述生成簡單的圖示和標誌概念。適用於原型設計或為平面設計工作創建起點。
將圖像轉換為向量格式
將點陣圖像轉換為可縮放的 SVG 檔案。有助於簡化複雜圖像或為不同輸出尺寸準備圖形。
快速視覺原型設計
快速生成文字描述想法的視覺呈現。支援透過提示調整進行迭代改進。
試試這些提示
簡單的 SVG 請求
Create an SVG of a red apple with a green leaf on a white background.
詳細場景描述
Create an SVG of a sunset over the ocean with orange and purple colors, showing the sun partially setting with waves in the foreground.
圖示或符號請求
Create an SVG of a simple house icon with a chimney and smoke coming out.
抽象設計請求
Create an SVG of geometric patterns with blue triangles and circles arranged in a modern abstract composition.
最佳實務
- 提供清晰、具體的圖像描述
- 提及特定顏色和基本形狀以獲得更好的結果
- 對圖示和符號保持描述簡單,以獲得更清晰的 SVG 輸出
- 在請求複雜圖像之前檢查是否已設定 GEMINI_API_KEY
避免
- 避免要求照片般逼真的圖像,因為 SVG 是基於向量的
- 不要請求包含許多小細節的極其複雜場景
- 避免需要精確人臉或文字渲染的描述
- 不要期望技能在沒有 sudo 存取權限的情況下安裝 autotrace
常見問題
使用此技能需要什麼?
您需要將 Google Gemini API 金鑰設定為 GEMINI_API_KEY 環境變數,並且必須在系統上安裝 autotrace CLI 工具。
我可以在沒有 API 金鑰的情況下生成 SVG 嗎?
不行。此技能需要 GEMINI_API_KEY 才能存取 Google Gemini 進行圖像生成。autotrace 工具本身只能轉換現有圖像,無法從文字生成新圖像。
哪些類型的圖像效果最好?
簡單形狀、圖示、標誌和抽象設計效果最好。包含許多細節的複雜場景可能產生較不清晰的向量結果。
如果缺少 autotrace,我該如何安裝?
SKILL.md 包含設定說明。您需要 sudo 存取權限來安裝所需的套件,包括 git、build-essential、imagemagick、libmagickcore-dev、pstoedit 和 libpstoedit-dev。
SVG 檔案儲存在哪裡?
SVG 檔案會以基於您的提示描述的 8-30 個字元的檔案名稱儲存在目前工作目錄中。
我可以將自己的圖像轉換為 SVG 嗎?
此技能專注於從文字提示生成 SVG。要轉換現有圖像,您需要先將圖像內容提供給 Gemini,然後使用 autotrace 進行向量化。
開發者詳情
作者
0x6a77授權
MIT
儲存庫
https://github.com/0x6a77/pelican-rides-a-bicycle/tree/main/.claude/skills/create-svg-from-prompt引用
main
檔案結構
📄 SKILL.md