stitch-setup

stitch-setup is a skill for Claude Code, Codex from tygwan/stitchkit. It costs 22 tokens per session (1,637 once invoked), scanned B, original, MIT.

A setup guide for connecting Google Stitch, Figma, and NanoBanana to Claude Code through MCP servers, which let Claude Code use outside services. It covers installing the servers and storing their access keys safely.

In plain words
What is it for?
Use it to set up all three services or only Stitch, Figma, or NanoBanana. It also explains how to create and protect the required credentials.
Why use it?
It removes the guesswork from configuring these connections and helps prevent sensitive API keys from being exposed in a public project.

Skill for Claude CodeCodex

Part of the stitchkit plugin — 2 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tygwan/stitchkit/stitch-setup
Any agent
npx skills add tygwan/stitchkit --skill stitch-setup
Clone the repo
git clone --depth 1 https://github.com/tygwan/stitchkit

Made for: Claude Code, Codex.

Or install stitchkit, the plugin that ships this one along with the rest of its 2 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stitch-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/tygwan/stitchkit/stitch-setup.svg)](https://agentmods.dev/skills/tygwan/stitchkit/stitch-setup)
Your own site
<a href="https://agentmods.dev/skills/tygwan/stitchkit/stitch-setup"><img src="https://agentmods.dev/badge/skills/tygwan/stitchkit/stitch-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.01637
Opus 5 $0.00011 $0.00818
Sonnet 5 $0.00004 $0.00327
Haiku 4.5 $0.00002 $0.00164

Measured 3d ago against content hash 8527c6a469b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

stitch-setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| **User-level** | `~/.claude/settings.json` → `mcpServers` | Global MCP servers available everywhere |
skills/stitch-setup/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stitch, Figma & NanoBanana MCP Setup

Help the user install and configure Google Stitch, Figma, and NanoBanana MCP servers for Claude Code.

Usage

  • /stitch-setup or /stitch-setup all — Set up all three MCP servers (Stitch, Figma, NanoBanana)
  • /stitch-setup stitch — Set up Stitch MCP only
  • /stitch-setup figma — Set up Figma MCP only
  • /stitch-setup nanobanana — Set up NanoBanana MCP only

Important: API Key Security

WARNING: API keys and access tokens are sensitive credentials. Follow these rules:

  • NEVER commit API keys to git. Add .env to .gitignore.
  • NEVER hardcode tokens directly in .mcp.json if the project is public.
  • Use environment variables or .env files for token storage.
  • Rotate tokens immediately if accidentally exposed.
  • Use the minimum required permissions when generating tokens.

Setup Process

Google Stitch MCP

Stitch uses Google Cloud API key authentication via the official Google Stitch MCP server (HTTP type).

Step 1: Get a Google Cloud API Key
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Navigate to APIs & Services → Credentials
  4. Click + CREATE CREDENTIALS → API key
  5. (Recommended) Click Edit API key to restrict it:
    • Application restrictions: Set by HTTP referrer or IP
    • API restrictions: Restrict to Stitch/Generative AI APIs only
  6. Copy the API key
Step 2: Configure Stitch MCP

Option A: Using environment variable (recommended for public repos)

Create a .env file in your project root (make sure it's in .gitignore):

GOOGLE_API_KEY=your-api-key-here

Add to .mcp.json:

{
  "stitch": {
    "type": "http",
    "url": "https://stitch.googleapis.com/mcp",
    "headers": {
      "X-Goog-Api-Key": "your-api-key-here"
    }
  }
}

Or using environment variable:

{
  "stitch": {
    "type": "http",
    "url": "https://stitch.googleapis.com/mcp",
    "headers": {
      "X-Goog-Api-Key": "${GOOGLE_API_KEY}"
    }
  }
}

Read the full file on GitHub · 227 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 227 lines · 22 tokens per session scan B 8527c6a469b1

Subscribe to this mod's changes

stitch-setup is a skill published in the GitHub repository tygwan/stitchkit (5 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 1,637 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

figma-typings-audit

Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target version (that package ships no changelog), sorts the changes into breakage / new API / silently-added fields, maps each onto the sandbox handlers, the hand-written Zod mirrors in shared, and the…

awdr74100/figwright · 133 tokens

mcp-sdk-audit

Upgrade @modelcontextprotocol/server (the MCP TypeScript SDK v2) and prove the wire contract survived. The SDK is a runtime dependency whose breakage lands on the wire, not in the type checker — so this sorts each release by which SDK source files it touched (Figwright uses only the server + stdio slice of a…

awdr74100/figwright · 159 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

figma-build

Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g.…

awdr74100/figwright · 180 tokens

design-qa

빌드된 앱 화면을 실기기/시뮬레이터에서 캡처해 Figma 원본과 오버레이(50% 블렌드 + diff 히트맵 + figma|real 나란히 크롭 + 픽셀색 비교)로 대조하고, 코드 오차로 확정된 항목을 Figma 선언값으로 되짚어 스스로 보정하는 검증 루프. 비교·측정 엔진은 플랫폼 중립이고 캡처 계층만 플랫폼별이다(Android·iOS·Web 지원). 두 진입: ① codegen Step 7c 위임 호출, ② 직접 호출(/design-qa) — 프롬프트로 검증/보정 모드를 판별하고 Figma 링크 해소·현재 브랜치 빌드·캡처까지 스스로 오케스트레이션. "오버레이…

naver/design-to-ui · 243 tokens

design-to-ui

Figma 디자인을 네이티브 UI(Android Compose/XML, iOS SwiftUI/UIKit)로 변환하는 7-Step 워크플로우. 노드 추출·디자인 컨텍스트·검증(Step 1·2·3·7)은 플랫폼 공통이고, 에셋(Step 4·5)과 코드 생성(Step 6)만 플랫폼별 reference로 분기한다. 에셋 A/B/C 분류, 동적 비주얼, project-design-system 위임, 플랫폼 에셋 파이프라인을 포함한다. Figma URL이나 UI 변환 요청 시 이 스킬을 사용하세요.

naver/design-to-ui · 141 tokens