Skip to content
SkillMixed992 tokens in use

stitch::upload-to-stitch

Uploads local images, mockups, extracted HTML and DESIGN.md files to a Stitch project with a Python script that sends files over HTTP.

10,975 stars on the repository Apache License 2.0google-labs-code/stitch-skills · plugins/stitch-design/skills/upload-to-stitch
npx skills add google-labs-code/stitch-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing stitch::upload-to-stitch costs

65tokens idle
992tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Mixed

Script-ledMixedModel-led

Scripts do part of the work and the model's judgement does the rest.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/upload_to_stitch.py.

Touches

shelldeclared and detectednetworkdetectedwrites filesdeclared and detected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Fair
  • Frontmatter8/15
  • Structure14/25
  • Examples6/15
  • Output10/15
  • Size15/15
  • Resources0/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−2

    does this on the machine, as the frontmatter declares

    SKILL.md, line 58
  • Writes files−4

    does this on the machine, as the frontmatter declares

    SKILL.md, line 58
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scripts/upload_to_stitch.py, line 38

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity80
  • Maintenance52
  • Community68
  • Maturity32
  • Momentum40

This skill uploads local assets to a Stitch project. A Python script reads the file and posts it to the Stitch API, which avoids the output token limit that stops a model from sending base64 data through MCP tools.

It supports PNG, JPEG, WebP, HTML and Markdown files, sets screen titles and records which tool generated the file. The agent asks for approval before it runs the upload.

What You Get

  • Screens created in a Stitch project from local images and HTML files
  • A DESIGN.md uploaded as a design markdown screen
  • Screen titles set from a title option such as a route path
  • A generated-by tag that records the source of each upload

Common Use Cases

  • Uploading extracted HTML from a local app into Stitch
  • Adding a mockup image to a project before editing it
  • Sending a DESIGN.md that is too large for a direct MCP call

What Makes It Unique

It solves a concrete limit: a model cannot output the base64 of even a small file through MCP. The script encodes the file in-process, detects the MIME type from the extension, and includes a fix for macOS certificate errors.

Under The Hood

The agent reads the MCP configuration file of the host tool, such as ~/.claude.json or the Gemini settings, to find the Stitch API key, and asks the user when it cannot. It then runs a Python script that base64-encodes the file and sends it to the Stitch batchCreate endpoint. A user checkpoint comes before the run.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers