Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

stitch-setup针迹设置

Agent Skill

stitch-setup 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

776

周安装

33

GitHub Stars

22

下载量

272
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:stitch-setup(针迹设置)
来源仓库:https://github.com/gabelul/stitch-kit
仓库路径:skills/stitch-setup
安装命令:
npx skills add https://github.com/gabelul/stitch-kit --skill stitch-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gabelul/stitch-kit --skill stitch-setup

简介

用于查找、检索和筛选相关信息。stitch-setup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词快速定位候选结果。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • 需避免触发联网、命令执行或文件读写。

SKILL.md

stitch-kit Setup Guide

Walks users through two setup tasks:

  1. Stitch MCP Server — connect your AI client to Google Stitch's remote generation API
  2. stitch-kit Plugin — install the skills that orchestrate the Stitch workflow

When to use this skill

  • User says "how do I set this up", "it's not working", "Stitch isn't available"
  • Agent can't find Stitch MCP tools after running list_tools
  • First-time setup in a new environment

Step 1: Verify what's already installed

Run list_tools (or check the tool list). Look for any of:

  • create_project
  • generate_screen_from_text
  • get_screen

If found: Stitch MCP is working. Skip to Step 4 (plugin install). If not found: Continue with MCP setup below.


Step 2: Get a Stitch API Key

Stitch MCP is a remote HTTP server — it lives in the cloud at stitch.googleapis.com, not on your machine. It requires an API key to authenticate.

  1. Go to stitch.withgoogle.com/settings
  2. Scroll to the API Keys section
  3. Click "Create API Key"
  4. Copy the key — you'll need it in the next step
Never commit your API key to a public repository. Store it securely.

Step 3: Configure Stitch MCP

Claude Code

Using the CLI (recommended):

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

Or add to ~/.claude/settings.json manually:

{
  "mcpServers": {
    "stitch": {
      "type": "http",
      "url": "https://stitch.googleapis.com/mcp",
      "headers": {
        "X-Goog-Api-Key": "YOUR-API-KEY"
      }
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.stitch]
url = "https://stitch.googleapis.com/mcp"

[mcp_servers.stitch.headers]
X-Goog-Api-Key = "YOUR-API-KEY"

Cursor

Create or edit .cursor/mcp.json:

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

VS Code

Open Command Palette → "MCP: Add Server" → HTTP → https://stitch.googleapis.com/mcp → name: "stitch". Then edit the generated mcp.json to add the header:

{
  "servers": {
    "stitch": {
      "url": "https://stitch.googleapis.com/mcp",
      "type": "http",
      "headers": {
        "Accept": "application/json",
        "X-Goog-Api-Key": "YOUR-API-KEY"
      }
    }
  }
}

Quick install (all platforms)

Or use the NPX installer — it prompts for the API key and configures everything:

npx @booplex/stitch-kit

Manual verification

After adding, restart the client and run list_tools. You should see tools like create_project, generate_screen_from_text, get_screen, etc.


Step 4: Install stitch-kit plugin (Claude Code)

/plugin marketplace add https://github.com/gabelul/stitch-kit.git
/plugin install stitch-kit@stitch-kit

All 34 skills in one command. The stitch-kit agent is included — it shows up automatically after restart.


Step 5: Verify the full setup

Run the orchestrator to confirm everything works:

"Use Stitch to design a simple login screen"

Expected behavior:

  1. stitch-orchestrator activates
  2. It runs list_tools and finds Stitch MCP tools
  3. It generates a Design Spec
  4. It creates a project via create_project
  5. It generates a screen via generate_screen_from_text
  6. It retrieves the screen via get_screen
  7. It asks you which framework to convert to

If this completes, you're fully set up.


Troubleshooting

SymptomLikely causeFix
list_tools doesn't show Stitch toolsMCP not configured or client not restartedRedo Step 3; restart your client
"Unauthenticated" or 401 errorAPI key invalid or expiredGenerate a new key at stitch.withgoogle.com/settings
create_project fails with 403Account doesn't have Stitch accessVisit stitch.withgoogle.com and request access
generate_screen_from_text returns emptyBad prompt or project ID formatUse stitch-mcp-generate-screen-from-text skill — it includes ID format rules
get_screen returns 404Wrong ID formatprojectId and screenId must be numeric only — no projects/ prefix
Generated HTML won't downloadGCS URL expired or requires redirectsUse bash scripts/fetch-stitch.sh "[url]" "temp/output.html"
Plugin not activatingWrong install command or repo URLVerify you used @stitch-kit — not @stitch-pro or @stitch-skills

Network requirements

Stitch MCP makes outbound requests to:

  • stitch.googleapis.com — remote MCP server
  • storage.googleapis.com — file downloads (HTML, screenshots)
  • accounts.google.com — OAuth (if using OAuth instead of API key)

If you're behind a corporate proxy or VPN, ensure these domains are allowed.


Offline / no-MCP mode

If you cannot configure Stitch MCP, the orchestrator still works in prompt-only mode:

  • Steps 1–3 run normally (spec generation, prompt assembly)
  • Instead of generating the screen, it outputs a ready-to-copy Stitch prompt
  • You paste that prompt at stitch.withgoogle.com manually
  • Then you can still use the conversion skills on the downloaded HTML

Authentication alternatives

OAuth (for restricted environments)

If you can't store API keys on disk, Stitch supports OAuth via Google Cloud:

gcloud auth login
gcloud auth application-default login
gcloud config set project YOUR-PROJECT-ID
gcloud beta services mcp enable stitch.googleapis.com --project=YOUR-PROJECT-ID

Then use Bearer token auth instead of API key. See full OAuth guide.

Note: OAuth tokens expire hourly and need manual refresh. API keys are simpler for most users.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.85%
按下载量换算98

Claude

28.27%
按下载量换算77

Cursor

17.51%
按下载量换算48

Gemini CLI

8.96%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills