duotify/githubclawtoolkit/google-stitch
Claude Code and agent skill by duotify/githubclawtoolkit
- community
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-stitchSKILL.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 腳本:
常用範例
輸出結果
預設會把結果存到 ./google-stitch-output/:
design.htmldesign.png或design.jpg
stdout 會輸出 JSON,例如:
Instructions for the Agent
⚠️ skill 腳本位於 repo 根目錄。若 cwd 不在 repo root,先獨立執行 git rev-parse --show-toplevel 取得路徑,再 cd 到該路徑後執行。禁止使用 $(...) 語法。
- 當使用者要從提示詞直接生成設計稿、介面草圖、Landing Page、區塊設計或對應 HTML 時,優先使用此技能。
- 確認環境中已有
GEMINI_API_KEY或GOOGLE_API_KEY。 - 執行時加上
--output-dir artifacts/{issue-comment-id},讓輸出直接進入正確路徑:
``sh node .agents/skills/google-stitch/scripts/generate.js --prompt "<user prompt>" --output-dir artifacts/{issue-comment-id} ``
- 若使用者有指定尺寸、比例、模型,分別加上:
--aspect-ratio--image-size--model--output-dir
- 腳本完成後,回報輸出的 HTML 與圖片路徑;若需要,也可讀取 HTML 檔內容再貼回對話。
- 若只是先確認參數、路徑或流程,不要真的呼叫 API,改用
GOOGLE_STITCH_DRY_RUN=1。 - 若腳本以非零代碼結束,回傳 stderr 錯誤,不要捏造設計結果。
限制
- 這個 skill 依賴 repo 內的
google-stitchtool bundle,因此應在本 repo 內使用。 - HTML 由模型生成,可能需要人工微調。
- 圖片與 HTML 的風格一致性取決於 prompt 品質。
- 若模型沒有回傳 fenced
`html區塊,HTML 檔不會被寫出。
錯誤處理
- 缺少 prompt:顯示 usage 並結束。
- 缺少 API key:明確提示設定
GEMINI_API_KEY或GOOGLE_API_KEY。 - 模型未回傳圖片:只輸出 HTML 路徑(若有)。
- 模型未回傳 HTML:只輸出圖片路徑(若有)。
參考資料
- 詳細參數與流程:`references/workflow.md`
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
- SKILL.md in the repositoryCheckingskills/google-stitch/SKILL.md
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
[](https://verified-skill.com/skills/duotify/githubclawtoolkit/google-stitch)