react:components

Convert Stitch screen exports into modular Vite and React components.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Chris-Maskey/opencode-config --skill react-components-chris-maskey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react:components
Source: https://github.com/Chris-Maskey/opencode-config/tree/main/skills/react-components
Command: npx skills add https://github.com/Chris-Maskey/opencode-config --skill react-components-chris-maskey

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @swc/core, and includes scripts (resource) components.

What problem does it solve?

Converts Stitch MCP screen exports into a modular Vite + React component system while handling unreliable system-level downloads and enforcing type-safe, theme-mapped styling so generated components are production-ready.

Core Features & Use Cases

  • High-reliability retrieval: Uses a Bash-based fetch script to reliably download signed HTML and screenshot URLs that may fail with standard web fetch tools.
  • Design-to-code mapping: Extracts tailwind configuration and design tokens into a local style guide and moves static data into a mock data layer.
  • Scaffold & validate: Generates Atomic Design style components, enforces Readonly TypeScript Props interfaces, and performs AST-based validation with @swc/core; ideal for converting a landing page or screen into reusable components for an existing Vite project.

Quick Start

Convert a Stitch screen to modular Vite and React components by running the react:components skill against the Stitch screen URL and then run the included validation pipeline.

Frequently Asked Questions about react:components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Stitch designs into React components?

You can convert Stitch screen exports into React components by running this skill against the Stitch screen URL, which generates modular Vite components using Atomic Design patterns and enforces Readonly TypeScript Props interfaces.

Why do standard web fetch tools fail to download signed Google Cloud Storage URLs?

Standard web fetch tools often fail to download signed Google Cloud Storage URLs due to system-level unreliability. This skill overcomes this by using a dedicated Bash-based fetch script to perform high-reliability downloads of the HTML and screenshot assets.

Does this component generation skill enforce TypeScript types and Tailwind styling?

Yes, the component generation skill enforces Readonly Props TypeScript interfaces and applies theme-mapped Tailwind classes. It also runs AST-based validation using @swc/core to ensure the generated Vite and React components are type-safe and production-ready.

Can I use this skill to extract design tokens into a Tailwind configuration?

Yes, you can use this skill to extract Tailwind configuration and design tokens from Stitch exports. It moves this extracted styling data into a local style guide and shifts static data into a mock data layer for your Vite and React project.

What's the best way to validate generated React components using AST?

The best way to validate generated React components using AST is through the @swc/core dependency included in this skill. It performs AST-based validation on the generated Vite and React code to ensure structural correctness and type safety.