Skip to content

A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.

TypeScript

rename: react:components → stitch::react-components

jilinxia2a17474687d7
diff --git a/README.md b/README.md
index 40e92f2..86a404e 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@ Code generation, framework integration, and asset compilation from Stitch design
| Skill | Description | Prompt Example |
|---|---|---|
-| [react-components](plugins/stitch-build/skills/react-components/) | Convert Stitch screens to React component systems with automated validation and design token consistency | *"Convert all screens in Stitch project `projects/123` to React components."* |
+| [stitch::react-components](plugins/stitch-build/skills/react-components/) | Convert Stitch screens to React component systems with automated validation and design token consistency | *"Convert all screens in Stitch project `projects/123` to React components."* |
| [remotion](plugins/stitch-build/skills/remotion/) | Generate walkthrough videos from Stitch projects using Remotion with smooth transitions and zooming | *"Generate a walkthrough video of the Stitch project `projects/456`."* |
| [react-native](plugins/stitch-build/skills/react-native/) | Convert Stitch HTML designs to production-ready React Native components with StyleSheet and platform-specific code | *"Convert the Stitch design to React Native components with proper theme and navigation."* |
| [shadcn-ui](plugins/stitch-build/skills/shadcn-ui/) | Expert guidance for integrating and building applications with shadcn/ui components | *"Set up shadcn/ui and build a data table with sorting and filtering."* |
@@ -138,7 +138,7 @@ plugins/
├── stitch-build/ — Code generation & build plugin
│ ├── plugin.json
│ └── skills/
-│ ├── react-components/
+│ ├── react-components/ — stitch::react-components
│ ├── react-native/
│ ├── remotion/
│ └── shadcn-ui/
diff --git a/plugins/stitch-build/skills/react-components/SKILL.md b/plugins/stitch-build/skills/react-components/SKILL.md
index feac88c..1dece3f 100644
--- a/plugins/stitch-build/skills/react-components/SKILL.md
+++ b/plugins/stitch-build/skills/react-components/SKILL.md
@@ -1,5 +1,5 @@
---
-name: react:components
+name: stitch::react-components
description: Converts Stitch designs into modular Vite and React components using system-level networking and AST-based validation.
allowed-tools:
- "stitch*:*"
@@ -31,6 +31,10 @@ You are a frontend engineer focused on transforming designs into clean React cod
* **Data decoupling**: Move all static text, image URLs, and lists into `src/data/mockData.ts`.
* **Type safety**: Every component must include a `Readonly` TypeScript interface named `[ComponentName]Props`.
* **Project specific**: Focus on the target project's needs and constraints. Leave Google license headers out of the generated React components.
+* **Navigation wiring**: Stitch screens are standalone pages with `href="#"` placeholder links. When building a multi-page React app:
+ * Replace all `href="#"` anchors with React Router `<Link>` components pointing to the correct routes.
+ * **Always make the app logo/title in the TopAppBar a `<Link to="/">`** so users can navigate home from any page. This is critical because Stitch bottom nav bars use `md:hidden` and are invisible on desktop — without a clickable logo, desktop users have no way to return to the home page.
+ * Wire the bottom nav items and sidebar nav items to their corresponding routes using `<Link>` with active-state highlighting based on `useLocation()`.
* **Style mapping**:
* Extract the `tailwind.config` from the HTML `<head>`.
* Sync these values with `resources/style-guide.json`.
@@ -48,4 +52,5 @@ You are a frontend engineer focused on transforming designs into clean React cod
## Troubleshooting
* **Fetch errors**: Ensure the URL is quoted in the bash command to prevent shell errors.
-* **Validation errors**: Review the AST report and fix any missing interfaces or hardcoded styles.
\ No newline at end of file
+* **Validation errors**: Review the AST report and fix any missing interfaces or hardcoded styles.
+* **Dead navigation links**: Stitch HTML uses `href="#"` placeholders everywhere. Every `<a href="#">` must be converted to a `<Link to="/route">` with a real route. Verify all nav items are clickable and lead to the correct page.