Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Convert Stitch-generated screens into validated React component systems with design token consistency
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
README.md
1# Stitch to React Components Skill23## Install45```bash6npx skills add google-labs-code/stitch-skills --skill react:components --global7```89## Example Prompt1011```text12Convert my Landing Page screen in my Podcast Stitch Project to a React component system.13```1415## Skill Structure1617This repository follows the **Agent Skills** open standard. Each skill is self-contained with its own logic, validation scripts, and design tokens.1819```text20skills/react-components/21├── SKILL.md — Core instructions & workflow22├── package.json — Validator dependencies23├── scripts/ — Networking & AST validation24├── resources/ — Style guides & API references25└── examples/ — Gold-standard code samples26```2728## How it Works2930When activated, the agent follows a high-fidelity engineering pipeline:31321. **Retrieval**: Uses a system-level `curl` script to bypass TLS/SNI issues on Google Cloud Storage.332. **Mapping**: Cross-references Stitch metadata with the local `style-guide.json` to ensure token consistency.343. **Generation**: Scaffolds components using a strict Atomic Design pattern.354. **Validation**: Runs an automated AST check using `@swc/core` to prevent hardcoded hex values or missing interfaces.365. **Audit**: Performs a final self-correction check against a 20-point architecture checklist.37