react:components

Converts Stitch design screens into modular React and TypeScript components with AST validation.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill react-components-ayoub-ouederni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react:components
Source: https://github.com/Ayoub-ouederni/SENTINEL/tree/main/.claude/skills/react-components
Command: npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill react-components-ayoub-ouederni

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Turning Stitch design exports into production React code by hand is slow and error-prone: download URLs fail on Google Cloud Storage, hex values get hardcoded, and components end up as monolithic files without proper TypeScript interfaces. ## Core Features & Use Cases - Reliable design retrieval: Uses a system-level curl script to download Stitch HTML and full-resolution screenshots, bypassing TLS/SNI issues on Google Cloud Storage. - Structured component generation: Scaffolds modular components from a template with Readonly TypeScript props interfaces, custom hooks, and decoupled mock data. - Automated quality validation: Runs an AST-based check via @swc/core to reject hardcoded hex colors and missing Props interfaces, plus a 20-point architecture checklist. - Use Case: Ask the agent to convert a Landing Page screen from your Stitch project, and it fetches the design, generates themed Tailwind components, validates them, and wires them into App.tsx. ## Quick Start Convert my Landing Page screen in my Podcast Stitch project into a validated React component system.

Frequently Asked Questions about react:components

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

FAQPage Schema
How do I convert a Stitch design to React components?

Call the Stitch MCP get_screen tool to retrieve the design JSON, download the HTML and screenshot with the fetch script, then scaffold components from the template. Run npm run validate on each file to confirm interfaces and styling rules pass.

How to download Stitch HTML when fetch fails on Google Cloud Storage?

Use the included fetch-stitch.sh bash script, which runs curl with redirect following and compressed transfer to handle TLS/SNI handshakes. Quote the signed URL to prevent shell parsing errors, and append =w{width} to screenshot URLs for full resolution.

Does the validation script check TypeScript interfaces?

Yes, the validate.js script parses each component with @swc/core and requires a TsInterfaceDeclaration whose name ends in Props. It also scans JSX className attributes and rejects any hardcoded hex color values.

Can I reuse previously downloaded Stitch designs?

Yes, if .stitch/designs files already exist for the page, the workflow asks whether to refresh from the Stitch project or reuse local files. Re-downloading only happens after explicit user confirmation.

Why does component validation fail with hardcoded hex errors?

Validation fails when className attributes contain literal hex colors instead of theme-mapped Tailwind classes. Extract the tailwind.config from the design HTML head, sync it with style-guide.json, and use tokens like primary or background-dark.