expo-react-native-developer
Prevents DOM element usage in React Native (Expo) workspaces. Use when writing components for Expo apps — `<View>`, `<Text>`, `<TouchableOpacity>` instead of `<div>`/`<span>`/`<p>`, no `window`/`document`, and styling through the project's established solution.
- License 许可
- MIT
- 最近更新
- 2026-05-27
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- expo-react-native-developer
- vendor
- expo
- description
- Prevents DOM element usage in React Native (Expo) workspaces. Use when writing components for Expo apps — `<View>`, `<Text>`, `<TouchableOpacity>` instead of `<div>`/`<span>`/`<p>`, no `window`/`document`, and styling through the project's established solution.
03 SKILL.md 正文
Expo React Native Developer
Policy Capsule
- Never use HTML DOM elements (
<div>,<span>,<p>,<button>, etc.) inside Expo or React Native components. - Use React Native primitives instead:
<View>,<Text>,<TouchableOpacity>,<Pressable>,<ScrollView>. - Never reference browser globals (
window,document,localStorage) in React Native code paths. - Route all styling through the project's established styling solution; do not introduce a parallel CSS pipeline.
- Treat the
@repo/mobileworkspace as DOM-free — any DOM symbol that appears is a hallucination and must be replaced.
Description: Prevents DOM element usage in React Native.
Instruction: For the @repo/mobile workspace:
- YOU MUST NOT use HTML DOM elements like
<div>,<span>, or<p>. - Use strict React Native primitives:
<View>,<Text>,<TouchableOpacity>, etc. - Ensure all styling uses the established styling solution.
- Never use
windowordocumentobjects.
04 同仓库更多 Skills
no-capsule-skill
Fixture without a Policy Capsule section.
backend-security-patterns
Combined backend protocols for authentication (Clerk JWT verification) and PII-safe observability. Use when handling auth on the server, verifying Clerk webhooks via `svix`, scoping metadata via `publicMetadata`/ `privateMetadata`, or sanitizing logs to keep emails, tokens, and request bodies out of telemetry.
vitest
Writes fast, isolated unit and integration tests with Vitest. Use when each test must run on file-save without shared state — `vi.mock()` for external deps, `vi.spyOn()` for call monitoring, AAA structure, and edge-case coverage for null/undefined/boundary inputs.
playwright
Robust E2E browser testing with Playwright. Use when writing browser-driven tests — leverage auto-waiting (no `waitForTimeout`), prefer user-visible locators (`getByRole`, `getByText`, `getByLabel`) over CSS/XPath, reuse `storageState` for auth, and enable trace-on-first-retry for CI debugging.
playwright-bdd
Wires Gherkin `.feature` files to Playwright via the `playwright-bdd` library. Use when running BDD scenarios on a Playwright runtime — pairs with the `gherkin-authoring` skill (scenario prose) and the `playwright` skill (browser conventions). Drives execution by tag expression with trace-first debugging and Playwright-native sharding.
lighthouse-baseline
Codifies the capture-and-check baseline pattern for long-running quality signals (Lighthouse scores, bundle size, p95 latency, runtime memory). Use when wiring a new metric that needs a baseline file, paired :capture / :check npm scripts, a tolerance-bounded gate, and a weekly refresh cadence — the goal is a hard CI signal that ratchets only with intent.