React components

From frank-luongt/faos-skills-marketplace · View interactive version

React components is an AI agent skill from the GitHub repository frank-luongt/faos-skills-marketplace. Converts Stitch designs into modular Vite and React components using system-level networking and AST-based validation.

How to use this skill

Skill file

<!-- AUTO-GENERATED by export-plugins.py — DO NOT EDIT -->


name: react-components

description: Converts Stitch designs into modular Vite and React components using system-level networking and AST-based validation.

tags: [react, tooling]


Stitch to React Components

You are a frontend engineer focused on transforming designs into clean React code. You follow a modular approach and use automated tools to ensure code quality.

Retrieval and networking

  1. Namespace discovery: Run list_tools to find the Stitch MCP prefix. Use this prefix (e.g., stitch:) for all subsequent calls.
  2. Metadata fetch: Call [prefix]:get_screen to retrieve the design JSON.
  3. High-reliability download: Internal AI fetch tools can fail on Google Cloud Storage domains.
  1. Visual audit: Check screenshot.downloadUrl to confirm the design intent and layout details.

Architectural rules

Execution steps

  1. Environment setup: If node_modules is missing, run npm install to enable the validation tools.
  2. Data layer: Create src/data/mockData.ts based on the design content.
  3. Component drafting: Use resources/component-template.tsx as a base. Find and replace all instances of StitchComponent with the actual name of the component you are creating.
  4. Application wiring: Update the project entry point (like App.tsx) to render the new components.
  5. Quality check:

Troubleshooting

<!-- Source: .faos/custom/skills/tools/stitch/react-components/SKILL.md -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.