duotify/githubclawtoolkit/google-stitch

Claude Code and agent skill by duotify/githubclawtoolkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill when users want to generate UI mockups, landing pages, wireframes, design concepts, marketing sections, or page prototypes from a prompt and need both a design image and matching HTML. Prefer this skill whenever the user asks for「設計圖 + HTML」、「UI 原型」、「Landing Page 草稿」、「prompt 生成介面」或 Google Stitch / Stitch with Google style workflows.

Install

npx vskill@latest install duotify/githubclawtoolkit/google-stitch

SKILL.md

Google Stitch 設計生成 Skill

此技能會重用 repo 內已經存在的 google-stitch tool bundle,從提示詞一次產出:

  • 設計圖片(寫入本地檔案)
  • 對應 HTML(寫入本地檔案)
  • stdout JSON 結果,方便後續自動化流程接續

需求條件

  • GEMINI_API_KEY 或 GOOGLE_API_KEY
  • Node.js >=20.0.0
  • repo 內已存在 .github/scripts/google-stitch.mjs

使用方式

直接執行 skill 腳本:

sh
node .agents/skills/google-stitch/scripts/generate.js --prompt "一個現代 SaaS 產品首頁,深色主題,含 pricing cards 與 CTA 區塊"
常用範例
sh
node .agents/skills/google-stitch/scripts/generate.js \
--prompt "設計一個電商首頁 Hero 區塊,米白背景、精品感、右側產品主視覺" \
--aspect-ratio 16:9 \
--image-size 2K \
--output-dir /tmp/stitch-hero
sh
GOOGLE_STITCH_DRY_RUN=1 node .agents/skills/google-stitch/scripts/generate.js \
--prompt "手機版登入頁,極簡、白底、藍色主按鈕"

輸出結果

預設會把結果存到 ./google-stitch-output/:

  • design.html
  • design.png 或 design.jpg

stdout 會輸出 JSON,例如:

json
{
"htmlPath": "/abs/path/google-stitch-output/design.html",
"imagePath": "/abs/path/google-stitch-output/design.png",
"imageMimeType": "image/png",
"model": "gemini-3.1-flash-image-preview",
"prompt": "..."
}

Instructions for the Agent

⚠️ skill 腳本位於 repo 根目錄。若 cwd 不在 repo root,先獨立執行 git rev-parse --show-toplevel 取得路徑,再 cd 到該路徑後執行。禁止使用 $(...) 語法。

  1. 當使用者要從提示詞直接生成設計稿、介面草圖、Landing Page、區塊設計或對應 HTML 時,優先使用此技能。
  2. 確認環境中已有 GEMINI_API_KEY 或 GOOGLE_API_KEY。
  3. 執行時加上 --output-dir artifacts/{issue-comment-id},讓輸出直接進入正確路徑:

``sh node .agents/skills/google-stitch/scripts/generate.js --prompt "<user prompt>" --output-dir artifacts/{issue-comment-id} ``

  1. 若使用者有指定尺寸、比例、模型,分別加上:
  • --aspect-ratio
  • --image-size
  • --model
  • --output-dir
  1. 腳本完成後,回報輸出的 HTML 與圖片路徑;若需要,也可讀取 HTML 檔內容再貼回對話。
  2. 若只是先確認參數、路徑或流程,不要真的呼叫 API,改用 GOOGLE_STITCH_DRY_RUN=1。
  3. 若腳本以非零代碼結束,回傳 stderr 錯誤,不要捏造設計結果。

限制

  • 這個 skill 依賴 repo 內的 google-stitch tool bundle,因此應在本 repo 內使用。
  • HTML 由模型生成,可能需要人工微調。
  • 圖片與 HTML 的風格一致性取決於 prompt 品質。
  • 若模型沒有回傳 fenced `html 區塊,HTML 檔不會被寫出。

錯誤處理

  • 缺少 prompt:顯示 usage 並結束。
  • 缺少 API key:明確提示設定 GEMINI_API_KEY 或 GOOGLE_API_KEY。
  • 模型未回傳圖片:只輸出 HTML 路徑(若有)。
  • 模型未回傳 HTML:只輸出圖片路徑(若有)。

參考資料

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
252
Repository forks
52
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Aug 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/duotify/githubclawtoolkit/google-stitch/badge)](https://verified-skill.com/skills/duotify/githubclawtoolkit/google-stitch)

Something wrong with this skill or its page? Tell us.