anujgupta19/RunningWrapped / .claude/skills/rn-screen
rn-screen
VerifiedChecklist for adding or changing a mobile screen or feature in the Expo app (route, feature hooks, API types, states, design tokens, accessibility, tests). Use for any UI work in mobile/.
/rn-screen: add a mobile screen/feature
Follow mobile/CLAUDE.md.
- Data: which endpoints? Make sure
src/api/schema.d.tsis current (npm run gen:api). Add query keys and a hook insrc/features/<feature>/(useQuery/useInfiniteQuery/useMutationwith cache invalidation). - Route: add a thin file under
app/that composes feature components. Choose the presentation (tab, stack push, or modal). - States: design loading (skeleton), empty (especially a new user with no runs), error (retry), and success.
- UI: use
components/uiprimitives and theme tokens only. Dark-first. Use the Wrapped token set only inside the Wrapped experience. - Formatting: distances, paces, and durations go through
src/lib/format.tsin the user's preferred units. - Motion: Reanimated on the UI thread. Respect
useReducedMotion. - Accessibility: labels on icon buttons, a text summary for charts, and tap targets of at least 44pt.
- Tests: unit tests for any new util. Use RNTL for state rendering, mocking at the fetch layer.
- Run
npm run typecheck && npm run lint && npm test, then tell the user exactly what to check in the simulator.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |