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

docs(skills): make phase 4 dev server and simulator testing optional

jilinxiaec43edba6b33
diff --git a/plugins/stitch-build/skills/react-components/SKILL.md b/plugins/stitch-build/skills/react-components/SKILL.md
index 44985d6..95b6634 100644
--- a/plugins/stitch-build/skills/react-components/SKILL.md
+++ b/plugins/stitch-build/skills/react-components/SKILL.md
@@ -87,24 +87,21 @@ You are a frontend engineer focused on transforming designs into clean React cod
## Phase 4: Execution steps
-> **GATE: Phase 4 is complete ONLY when ALL validation checks pass and the dev server renders correctly.**
+> **GATE: Phase 4 verification, audits, and validation checks are optional. You MUST ask the user's permission to proceed with validation scripts, running local dev servers, or automated browser testing.**
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** — ALL of the following are MANDATORY:
- * Run `npm run validate <file_path>` for **EVERY** `.tsx` file in `src/components/` and `src/pages/`. ALL must report `✨ COMPONENT VALID.`
- * Run `tsc --noEmit` to verify zero TypeScript errors.
- * Verify the final output against `resources/architecture-checklist.md` — every checkbox must be satisfied.
- * Start the dev server with `npm run dev` to verify the live result.
- * Report the validation results to the user with a clear pass/fail summary.
+5. **Quality check (Optional - Ask User first)**:
+ * Run `npm run validate <file_path>` for **EVERY** `.tsx` file in `src/components/` and `src/pages/` to report component validity.
+ * Run `tsc --noEmit` to verify TypeScript compile status.
+ * Check output against `resources/architecture-checklist.md`.
+ * Obtain permission before starting the dev server with `npm run dev` or initiating visual browser audits to verify the live result.
### Anti-patterns for Phase 4
-- ❌ Skipping `npm run validate` for any component.
-- ❌ Not running `tsc --noEmit`.
-- ❌ Not checking `resources/architecture-checklist.md`.
-- ❌ Declaring "done" without starting the dev server.
+- ❌ Commencing dev server start or browser audits without user consent.
+- ❌ Declaring task "done" without verifying code compiles.
## Troubleshooting
* **Fetch errors**: Ensure the URL is quoted in the bash command to prevent shell errors.
diff --git a/plugins/stitch-build/skills/react-native/SKILL.md b/plugins/stitch-build/skills/react-native/SKILL.md
index 14bb42a..2ffab43 100644
--- a/plugins/stitch-build/skills/react-native/SKILL.md
+++ b/plugins/stitch-build/skills/react-native/SKILL.md
@@ -147,25 +147,22 @@ const styles = StyleSheet.create({
## Phase 4: Execution steps
-> **GATE: Phase 4 is complete ONLY when ALL validation checks pass and components compile correctly.**
+> **GATE: Phase 4 verification, audits, and simulator/packager testing are optional. You MUST ask the user's permission to proceed with validation scripts, starting packagers, or simulator audits.**
1. **Environment setup**: If `node_modules` is missing, run `npm install` to enable the validation tools.
2. **Theme layer**: Create `src/theme.ts` from the extracted Tailwind config.
3. **Data layer**: Create `src/data/mockData.ts` based on the design content.
4. **Component drafting**: Use `resources/component-template.tsx` as a base. Find and replace ALL instances of `StitchComponent` with the actual component name. Map HTML elements to React Native primitives.
5. **Navigation wiring**: If the design has multiple screens, set up a `NavigationContainer` with a stack or tab navigator in `App.tsx`.
-6. **Quality check** — ALL of the following are MANDATORY:
- * Run `npm run validate <file_path>` for **EVERY** `.tsx` file in components and screens. ALL must report `COMPONENT VALID.`
- * Run `tsc --noEmit` to verify zero TypeScript errors.
- * Verify the final output against `resources/architecture-checklist.md` — every checkbox must be satisfied.
- * Start the packager (`npx react-native start` or `npx expo start`) to verify the app renders correctly on a simulator/device.
- * Report the validation results to the user with a clear pass/fail summary.
+6. **Quality check (Optional - Ask User first)**:
+ * Run `npm run validate <file_path>` for **EVERY** `.tsx` file in components and screens to report component validity.
+ * Run `tsc --noEmit` to verify TypeScript compile status.
+ * Check output against `resources/architecture-checklist.md`.
+ * Obtain permission before starting the packager (`npx react-native start` or `npx expo start`) or starting visual simulator audits to verify the app renders correctly on a simulator/device.
### Anti-patterns for Phase 4
-- ❌ Skipping `npm run validate` for any component.
-- ❌ Not running `tsc --noEmit`.
-- ❌ Not checking `resources/architecture-checklist.md`.
-- ❌ Declaring "done" without checking the components on a simulator or device.
+- ❌ Launching packagers or simulators without user consent.
+- ❌ Declaring task "done" without verifying code compiles.
## Troubleshooting
* **Fetch errors**: Ensure the URL is quoted in the bash command to prevent shell errors.