This example demonstrates using Omni Architect for a native mobile application with iOS and Android platform-specific considerations, gesture-based navigation, and offline-first architecture.
# PRD: FitTrack Mobile App## Feature: Workout Logging### User Stories1. As a **gym member**, I want to **log my workout offline**, so that I can **track progress without internet**.2. As a **fitness enthusiast**, I want to **sync my Apple Health data**, so that I can **see all my activity in one place**.3. As a **mobile user**, I want to **use swipe gestures to navigate**, so that I can **quickly switch between exercises**.### Mobile-Specific Requirements- Native iOS (SwiftUI) and Android (Jetpack Compose)- Offline-first with SQLite local storage- Background sync with conflict resolution- Haptic feedback on key actions- Platform-specific navigation (tab bar vs bottom nav)### Acceptance Criteria- [ ] Workout logged in < 10 seconds- [ ] Offline mode with automatic sync- [ ] Apple Health HealthKit integration- [ ] Google Fit API integration- [ ] Swipe left/right for exercise navigation- [ ] Pull-to-refresh for sync### Entities| Entity | Attributes ||--------|------------|| User | id, name, email, platform, health_kit_enabled || Workout | id, user_id, date, duration, sync_status || Exercise | id, workout_id, name, sets, reps, weight || HealthData | id, user_id, source, data_type, value, recorded_at |### State Management- Local: Not synced (📱)- Syncing: In progress (🔄)- Synced: Confirmed (✓)- Conflict: Needs resolution (⚠️)
Mobile apps with offline capabilities require clear state management. The state diagram revealed 4 distinct states (Local, Syncing, Synced, Conflict) that we initially missed in the PRD.
Platform-Specific Flows
Generate separate Figma files for iOS and Android with platform-specific design systems (apple-hig vs material-3) to maintain native patterns.
Gesture Documentation
Include gesture annotations (swipe left/right, pull-to-refresh) directly in flowcharts for clear handoff to developers.
Integration Sequences
HealthKit and Google Fit integrations are complex. Sequence diagrams caught missing permission flows and data type mappings early.
hooks: on_validation_approved: | # Generate platform-specific specs npm run generate:ios-specs npm run generate:android-specs on_figma_complete: | # Notify mobile team on Slack curl -X POST $SLACK_WEBHOOK \ -d '{"text": "New mobile designs ready in Figma!"}' on_error: | # Alert on validation failures npm run alert:mobile-team