Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

stitchstitch 搜索

Agent Skill

stitch 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,417

周安装

306

GitHub Stars

1

下载量

2,424
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stitch(stitch 搜索)
来源仓库:https://github.com/arielletolome/stitch
安装命令:
openclaw skills install stitch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install stitch

简介

远程管理 Stitch UI 设计项目与屏幕原型开发。

  • 支持创建项目、列出屏幕并通过指令生成或编辑界面。stitch 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 适用于设计师与开发协作中的组件级 UI 交付场景。
  • 需绑定有效的 Stitch 账户与项目读写权限。
  • 注意版本兼容性问题,建议核对所用 Stitch 平台更新状态。

SKILL.md

Stitch by Google — MCP Skill

Stitch is Google's AI-powered UI design tool (Beta). This skill covers how to interact with Stitch projects and screens via its Remote MCP server using the HTTP API.


Authentication

API Key (Recommended)

Generate your API key at: https://stitch.withgoogle.com/settings (API Keys section)

Set it as an environment variable: export STITCH_API_KEY=YOUR_STITCH_API_KEY

All requests go to: https://stitch.googleapis.com/mcp

Pass the key via header: X-Goog-Api-Key: $STITCH_API_KEY

Making MCP Calls

Stitch exposes a standard MCP HTTP endpoint. To call a tool, POST to the MCP endpoint with the tool name and arguments.

curl -X POST https://stitch.googleapis.com/mcp \
  -H "Content-Type: application/json" \
  -H "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
  -d '{
    "method": "tools/call",
    "params": {
      "name": "list_projects",
      "arguments": {}
    }
  }'
Note: Stitch is a Remote MCP server (cloud-hosted), unlike local file-based MCP servers. API Keys persist indefinitely; OAuth tokens expire every ~1 hour.

Available Tools

Project Management

list_projects

Lists all Stitch projects accessible to the user.

  • Read-only: yes
  • Input:

- filter *(optional, string)*: AIP-160 filter on view field. Values: view=owned (default), view=shared

  • Output: Array of Project objects
# List all owned projects
curl -X POST https://stitch.googleapis.com/mcp \
  -H "Content-Type: application/json" \
  -H "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
  -d '{"method":"tools/call","params":{"name":"list_projects","arguments":{}}}'

create_project

Creates a new Stitch project (container for UI designs).

  • Read-only: no (destructive)
  • Input:

- title *(optional, string)*: Display name of the project

  • Output: Created Project resource with name, title, and metadata
curl -X POST https://stitch.googleapis.com/mcp \
  -H "Content-Type: application/json" \
  -H "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
  -d '{"method":"tools/call","params":{"name":"create_project","arguments":{"title":"My Ad Landing Page"}}}'

get_project

Retrieves details of a specific project.

  • Read-only: yes
  • Input:

- name *(required, string)*: Resource name. Format: projects/{project}. Example: projects/4044680601076201931

  • Output: Project resource object

Screen Management

list_screens

Lists all screens within a Stitch project.

  • Read-only: yes
  • Input:

- projectId *(required, string)*: Project ID without projects/ prefix

  • Output: Array of Screen objects
curl -X POST https://stitch.googleapis.com/mcp \
  -H "Content-Type: application/json" \
  -H "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
  -d '{"method":"tools/call","params":{"name":"list_screens","arguments":{"projectId":"4044680601076201931"}}}'

get_screen

Retrieves details of a specific screen including HTML, screenshot, and Figma export.

  • Read-only: yes
  • Input:

- name *(required)*: projects/{project}/screens/{screen} - projectId *(required, deprecated)*: Project ID without prefix - screenId *(required, deprecated)*: Screen ID without prefix > All three are currently required even though projectId/screenId are deprecated.

  • Output: Screen object with htmlCode, screenshot, figmaExport download URLs

AI Generation

generate_screen_from_text

Generates a new UI screen from a text prompt. Takes a few minutes.

  • Read-only: no (destructive)
  • ⚠️ Don't retry on connection errors — generation may still be in progress. Use get_screen after a few minutes to check.
  • Input:

- projectId *(required, string)* - prompt *(required, string)*: Describe the screen to generate - deviceType *(optional)*: MOBILE | DESKTOP | TABLET | AGNOSTIC - modelId *(optional)*: GEMINI_3_FLASH | GEMINI_3_1_PRO *(GEMINI_3_PRO is deprecated)*

  • Output: Generated Screen objects + SessionOutputComponent entries (may include suggestions)

- If output_components has suggestions, present them to user. If accepted, call again with the suggestion as the new prompt.

curl -X POST https://stitch.googleapis.com/mcp \
  -H "Content-Type: application/json" \
  -H "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
  -d '{
    "method": "tools/call",
    "params": {
      "name": "generate_screen_from_text",
      "arguments": {
        "projectId": "YOUR_PROJECT_ID",
        "prompt": "A mobile landing page for a Medicare insurance offer with a bold headline, trust badges, and a prominent CTA button",
        "deviceType": "MOBILE",
        "modelId": "GEMINI_3_1_PRO"
      }
    }
  }'

edit_screens

Edits existing screens using a text prompt. Takes a few minutes.

  • Read-only: no (destructive)
  • ⚠️ Don't retry on connection errors
  • Input:

- projectId *(required, string)* - selectedScreenIds *(required, string[])*: Screen IDs without screens/ prefix - prompt *(required, string)*: Edit instruction - deviceType *(optional)* - modelId *(optional)*: GEMINI_3_FLASH | GEMINI_3_1_PRO

  • Output: Updated Screen objects

generate_variants

Generates design variants of existing screens.

  • Read-only: no (destructive)
  • ⚠️ Don't retry on connection errors
  • Input:

- projectId *(required, string)* - selectedScreenIds *(required, string[])* - prompt *(required, string)*: Guide variant generation - variantOptions *(required, object)*: See VariantOptions below - deviceType *(optional)* - modelId *(optional)*

  • Output: Variant Screen objects

VariantOptions schema:

{
  "variantCount": 3,
  "creativeRange": "EXPLORE",
  "aspects": ["COLOR_SCHEME", "LAYOUT"]
}
  • variantCount: 1–5 (default: 3)
  • creativeRange: REFINE | EXPLORE | REIMAGINE
  • aspects: LAYOUT | COLOR_SCHEME | IMAGES | TEXT_FONT | TEXT_CONTENT

Shared Types

Screen Object

FieldTypeDescription
namestringResource name: projects/{project}/screens/{screen}
idstring*(Deprecated)* Screen ID
titlestringScreen title
promptstringPrompt used to generate
screenshotFileScreenshot image
htmlCodeFileHTML code of the screen
figmaExportFileFigma export file
themeDesignThemeTheme used
deviceTypeDeviceTypeDevice target
screenMetadataScreenMetadataStatus, agent type, display mode
width / heightstringScreen dimensions
groupIdstringGroup ID for variants

File Object

FieldTypeDescription
namestringprojects/{project}/files/{file}
downloadUrlstringDirect download URL
mimeTypestringe.g. image/png, text/html

ScreenMetadata

FieldValues
statusIN_PROGRESS \COMPLETE \FAILED
agentTypeTURBO_AGENT, PRO_AGENT, GEMINI_3_AGENT, etc.
displayModeSCREENSHOT \HTML \CODE \MARKDOWN \STICKY_NOTE

Common Workflows

Generate a new landing page ad creative

import requests
import json

API_KEY = "YOUR_STITCH_API_KEY"
MCP_URL = "https://stitch.googleapis.com/mcp"
HEADERS = {
    "Content-Type": "application/json",
    "X-Goog-Api-Key": API_KEY
}

def stitch_call(tool_name, args):
    payload = {
        "method": "tools/call",
        "params": {"name": tool_name, "arguments": args}
    }
    r = requests.post(MCP_URL, headers=HEADERS, json=payload)
    r.raise_for_status()
    return r.json()

# 1. Create a project
project = stitch_call("create_project", {"title": "Medicare Q4 Campaign"})
project_id = project["result"]["name"].split("/")[1]

# 2. Generate initial screen
result = stitch_call("generate_screen_from_text", {
    "projectId": project_id,
    "prompt": "Mobile landing page for Medicare Advantage with emotional headline, plan comparison table, and green CTA button",
    "deviceType": "MOBILE",
    "modelId": "GEMINI_3_1_PRO"
})

# 3. Get screen details once complete
# (generation takes a few minutes — poll with get_screen)
screens = result["result"].get("screens", [])
if screens:
    screen_name = screens[0]["name"]
    # screen_name format: projects/{id}/screens/{screen_id}
    parts = screen_name.split("/")
    project_id = parts[1]
    screen_id = parts[3]
    
    screen = stitch_call("get_screen", {
        "name": screen_name,
        "projectId": project_id,
        "screenId": screen_id
    })
    
    # Download HTML
    html_url = screen["result"]["htmlCode"]["downloadUrl"]
    print(f"HTML download URL: {html_url}")
    
    # Download screenshot
    screenshot_url = screen["result"]["screenshot"]["downloadUrl"]
    print(f"Screenshot URL: {screenshot_url}")

Generate variants for A/B testing

# After generating a base screen, create variants
variants = stitch_call("generate_variants", {
    "projectId": project_id,
    "selectedScreenIds": [screen_id],
    "prompt": "Test different color schemes and CTA button styles",
    "variantOptions": {
        "variantCount": 3,
        "creativeRange": "EXPLORE",
        "aspects": ["COLOR_SCHEME", "TEXT_CONTENT"]
    },
    "deviceType": "MOBILE",
    "modelId": "GEMINI_3_FLASH"
})

Tips for Ad Creative Use

  • Effective prompts include: device type, ad vertical, emotional tone, specific UI components (hero, CTA, trust badges, form)
  • Pixel-perfect HTML: Use htmlCode.downloadUrl to grab the actual HTML — hand it to Marcus for landing page deployment
  • Figma export: Available via figmaExport.downloadUrl for design review
  • Generation takes 2–5 minutes — don't retry on network errors; check status with get_screenscreenMetadata.status
  • Model choice: GEMINI_3_1_PRO for highest quality, GEMINI_3_FLASH for faster iteration

MCP Client Config (for direct Claude Code / Cursor integration)

{
  "mcpServers": {
    "stitch": {
      "url": "https://stitch.googleapis.com/mcp",
      "headers": {
        "X-Goog-Api-Key": "YOUR_STITCH_API_KEY"
      }
    }
  }
}

Or via Claude Code CLI:

claude mcp add stitch --transport http https://stitch.googleapis.com/mcp \
  --header "X-Goog-Api-Key: YOUR_STITCH_API_KEY" -s user

Docs Reference

  • Setup & Auth: https://stitch.withgoogle.com/docs/mcp/setup/
  • Reference: https://stitch.withgoogle.com/docs/mcp/reference/
  • Guide: https://stitch.withgoogle.com/docs/mcp/guide/

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.32%
按下载量换算2,044

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills