gemini-designer
14
总安装量
13
周安装量
#23868
全站排名
安装命令
npx skills add https://github.com/oil-oil/gemini-designer --skill gemini-designer
Agent 安装分布
opencode
13
gemini-cli
13
github-copilot
13
codex
13
kimi-cli
13
amp
13
Skill 文档
Gemini Designer â Your Design Partner
Delegate design tasks to Gemini via aicodemirror API. Gemini creates HTML page designs, SVG icons, and provides design advice.
Critical rules
- ONLY interact with Gemini through the bundled shell script. NEVER call the API directly.
- Run the script ONCE per task. Read the output file and proceed.
- The script requires a Gemini API key. It checks (in order):
GEMINI_API_KEYenv var,.env.localin current/parent dirs,~/.config/gemini-designer/api_keyfile.
How to call the script
The script path is:
~/.claude/skills/gemini-designer/scripts/ask_gemini.sh
HTML page design
~/.claude/skills/gemini-designer/scripts/ask_gemini.sh "Design a modern landing page for a SaaS product called FlowSync" --html
SVG icon
~/.claude/skills/gemini-designer/scripts/ask_gemini.sh "Create a minimal settings gear icon, 24x24, stroke style" --svg
Design advice (text)
~/.claude/skills/gemini-designer/scripts/ask_gemini.sh "Suggest a color palette and typography for a developer blog"
Custom output path (auto-infers type from extension)
~/.claude/skills/gemini-designer/scripts/ask_gemini.sh "Design a pricing card component" \
-o ./designs/pricing-card.html
The script prints on success:
output_path=<path to output file>
Read the file at output_path to get Gemini’s response.
Output types
htmlâ Self-contained HTML file with inline CSS. Ready to open in browser. Use--htmlshorthand or--output-type html.svgâ Clean SVG code. Can be saved directly or embedded in HTML/React. Use--svgshorthand or--output-type svg.text(default) â Design advice in markdown: color palettes, typography, layout suggestions.
If you pass -o with a .html or .svg extension and don’t specify an output type, the type is auto-inferred from the file extension.
When to use
- Need a visual reference or HTML mockup for a UI component or page
- Need SVG icons or simple illustrations
- Need color palette, typography, or layout suggestions
- Need design feedback or critique on an existing design
- Want a quick single-page HTML prototype to show a concept
Workflow
- Only describe what the page/component is for and the core content â do NOT add your own design opinions (colors, fonts, layout style, etc.) unless the user explicitly specified them.
- Run the script with the appropriate output type flag (
--html,--svg, or default text). - Read the output file.
- For HTML/SVG: save to the project and iterate if needed.
- For text advice: apply the suggestions to your implementation.
Tips
- Keep the task prompt short and focused on what it is, not how it should look.
- If the user didn’t specify a style/color/font, don’t invent one â let Gemini decide.
- Only pass explicit user preferences (e.g. “dark mode”, “use blue”) when the user actually said so.
- Chinese prompts work well â Gemini responds in the same language.