react:components

Converts approved Stitch design screens into modular, accessible React components.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/DagimAlemayehuu/AgenticEngineering --skill react-components-dagimalemayehuu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react:components
Source: https://github.com/DagimAlemayehuu/AgenticEngineering/tree/main/agentic-engineering/core/dependencies/design/react-components
Command: npx skills add https://github.com/DagimAlemayehuu/AgenticEngineering --skill react-components-dagimalemayehuu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Translating approved visual designs into production React code is error-prone: developers often hardcode colors, break existing data flows, or produce monolithic components. This Skill turns approved Stitch screens into modular, typed, theme-consistent React components while preserving the target project's routing, data contracts, and accessibility requirements. ## Core Features & Use Cases - Design retrieval: Fetches Stitch screen HTML and screenshots via a curl-based script that handles Google Cloud Storage redirects and TLS/SNI issues, storing artifacts in .stitch/designs/. - Token-consistent generation: Extracts the tailwind.config from the design HTML and syncs it with a local style guide so components use theme-mapped Tailwind classes instead of hardcoded hex values. - Automated validation: Runs an AST-based check using @swc/core to enforce Props interfaces and reject hardcoded hex colors, plus a 20-point architecture checklist audit. - Use Case: After approving a landing page design in a Stitch project, ask the agent to convert it into a React component system; it downloads the design, scaffolds Atomic Design components, wires them into the mapped route, and validates the output against the project's typecheck, lint, and test commands. ## Quick Start Use the react:components skill to convert my approved Landing Page screen in my Stitch project into a modular React component system wired into the existing route.

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?▼

Confirm the screen is mapped in the project's Stitch registry with an approved page contract, then let the agent fetch the design via the Stitch MCP get_screen tool. It downloads the HTML and screenshot, scaffolds modular components, wires them into the mapped route, and validates the result.

How to avoid hardcoded hex colors when generating Tailwind components?▼

Extract the tailwind.config from the design HTML head and sync it with the local style-guide.json so generated code uses theme-mapped classes. The bundled validator uses @swc/core to parse the AST and fails the build if any className contains a hardcoded hex value.

Why does fetching Stitch design HTML fail with internal fetch tools?▼

Internal AI fetch tools often fail on Google Cloud Storage signed URLs due to TLS/SNI and redirect handling. Use the bundled fetch-stitch.sh script, which runs curl with redirect following, compression, and a connection timeout to reliably download the HTML and screenshot.

Does the generated React code replace existing data loading and routing?▼

No. Application code remains the behavior authority: the workflow preserves existing data contracts, authorization, loading and error states, and navigation. It only updates the mapped route's presentation layer and never substitutes mock data for production data.

What validation does the component generation pipeline run?▼

The pipeline runs the project's declared typecheck, lint, and test commands, plus an AST validator that checks for a Props interface and hardcoded hex colors. A final audit compares the output against a 20-point architecture checklist and the approved page contract at fixed viewports.