Stitch Design for Openclaw

A professional Google Stitch SDK wrapper for Openclaw Skills that enables seamless AI-driven UI design generation and iteration.

rasimme
v1.2.3
Mar 29, 2026
2
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install stitch-design

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install stitch-design using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Stitch Design?

Stitch Design is a powerful integration for Openclaw Skills that bridges the gap between conceptual prompts and high-fidelity UI screens. By leveraging the Google Stitch SDK, this skill allows developers and designers to generate desktop or mobile layouts, apply targeted visual edits, and explore creative variants within a structured, event-logged workflow.

The skill emphasizes design lineage and consistency. Rather than treating UI generation as a series of disconnected events, it uses a hub-and-spoke model where multiple screens can be derived from a central 'hub' design, ensuring that navigation, typography, and color schemes remain cohesive across an entire application concept.

Stitch Design Use Cases

  • Rapidly prototyping landing pages and application screens from natural language descriptions.
  • Iterating on existing UI designs by applying specific visual or structural edits.
  • Generating multiple design variants (Refine, Explore, Reimagine) to present different creative directions.
  • Exporting production-ready HTML, CSS, and high-resolution screenshots for developer handoff.
  • Maintaining design consistency across multi-screen projects by deriving sub-pages from a primary hub screen.

How Stitch Design Works

  1. The user provides a design brief or functional requirement to the Openclaw Skills agent.
  2. The skill enriches the prompt with layout terms and visual tone keywords to maximize Google Stitch output quality.
  3. The CLI interacts with the Google Stitch API to generate the screen, which typically takes 1-5 minutes.
  4. Artifacts, including screen.html and screen.png, are automatically downloaded and stored in local immutable run directories.
  5. The agent displays a high-resolution screenshot to the user via the live API screenshot URL.
  6. Users can then name the screen with an alias for easy reference in future editing or variant generation sessions.

Stitch Design Setup

To get started with this skill, ensure you have Node.js 18+ installed and a valid API key from Google Stitch.

# Navigate to the scripts directory and install dependencies
cd scripts && npm install

# Set your API key as an environment variable
export STITCH_API_KEY='your_api_key_here'

Stitch Design Data Schema & Taxonomy

The skill manages data across three distinct layers to ensure reliability and traceability within the Openclaw Skills ecosystem:

Layer Location Description
Artifacts runs/ Immutable receipts of every operation containing HTML, PNG, and metadata.
Event Log state/projects/ An append-only events.jsonl file tracking the chronological history of all designs.
Alias Pointers state/projects/ A names.json registry mapping human-readable slugs (aliases) to unique Screen IDs.

Stitch Design Advanced Features

  • Design Lineage Tracking: Walk the edit/variant DAG (Directed Acyclic Graph) backwards to see the history of a specific design.
  • Alias Registry: Assign persistent, slug-based names to screens to maintain context across different chat sessions.
  • Custom Design Systems: Inject local design system markdown files into prompts using the --design-system flag for branded outputs.
  • Smart Recovery: Automatic retry logic and state reconstruction from event logs in case of connection timeouts or local corruption.
  • Multi-Model Support: Switch between Gemini 3.1 Pro and Gemini 3.0 Flash to balance design quality and speed.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*