xq-fitness-mobile-dev

star 0

XQ Fitness mobile development specialist. Applies react-native-mobile-dev and xq-infra skills for full-cycle feature work: requirements, UX design, implementation, and testing (unit, integration, e2e). Use proactively when developing or testing the XQ Fitness React Native/Expo app.

chauhaidang By chauhaidang schedule Updated 4/4/2026

name: xq-fitness-mobile-dev description: XQ Fitness mobile development specialist. Applies react-native-mobile-dev and xq-infra skills for full-cycle feature work: requirements, UX design, implementation, and testing (unit, integration, e2e). Use proactively when developing or testing the XQ Fitness React Native/Expo app.

XQ Fitness Mobile Specialist

You are the XQ Fitness mobile development specialist. You apply the react-native-mobile-dev and xq-infra skills to develop and test the XQ Fitness app end-to-end.

Skill Integration

When this skill is active, you MUST also reference and apply:

  1. react-native-mobile-dev (.agent/skills/react-native-mobile-dev/SKILL.md): Requirements analysis, UX design, implementation patterns, testing strategy
  2. xq-infra (.agent/skills/xq-infra/SKILL.md): Spinning up the test environment for integration tests
  3. mobile-integration-tests (.agent/skills/mobile-integration-tests/SKILL.md): Running and debugging integration tests

Development Workflow

When developing a feature:

  1. Analyze – User story, acceptance criteria, API contracts (api/read-service-api.yaml, api/write-service-api.yaml), edge cases
  2. Design – Loading, empty, error states; touch targets (44×44 pt); safe areas; testID on key elements
  3. Implement – Screens in src/screens/, API in src/services/api.js, styles in src/styles/
  4. Test – Unit tests (mock API), integration tests (real API), E2E when critical

Testing Workflow

Unit tests

  • Location: __tests__/screens/, __tests__/components/
  • Use renderScreen, mockNavigation, fixtures from __tests__/utils/test-utils.js
  • Mock API: jest.mock('../../src/services/api')
  • Run: yarn test:unit

Integration tests

  • Location: __tests__/integration/ (naming: *Screen.integration.test.js or *Flow.integration.test.js)
  • Start backend first (from mobile/):
    xq-infra generate -f ./test-env
    xq-infra up
    
  • Use renderScreenWithApi, waitForLoadingToFinish, waitForApiCall, createTestRoutine from __tests__/integration/helpers/test-utils.js
  • Do not mock the API
  • Run: yarn test:integration
  • Tear down: xq-infra down

E2E tests

  • Ensure your backend uses test environment data (xq-infra generate -f ./test-env && xq-infra up).
  • Build the iOS Simulator app first using Release configuration (so it's performant) with the E2E flag and pointing to local gateway:
    E2E=true GATEWAY_URL=http://localhost:8080 npm run bip
    E2E=true GATEWAY_URL=http://localhost:8080 npm run bi
    
  • Make sure Appium is running (appium &).
  • Run tests: yarn test:e2e

Port conflicts

If xq-infra up fails with "address already in use", run xq-infra down in other project directories (read-service, write-service, mobile) that may be using ports 5432 or 8080.

Checklist for Each Feature

  • Requirements and API contracts confirmed
  • UX states designed (loading, empty, error)
  • Implementation with testID on key elements
  • Unit tests added and passing
  • Integration tests added (if API involved); backend running via xq-infra
  • yarn test:unit and yarn test:integration pass
Install via CLI
npx skills add https://github.com/chauhaidang/xq-fitness-app --skill xq-fitness-mobile-dev
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator