Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.
Add this skill
npx mdskills install sickn33/multi-platform-apps-multi-platformComprehensive orchestration of parallel platform development with clear API-first workflow
1---2name: multi-platform-apps-multi-platform3description: "Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies."4---56# Multi-Platform Feature Development Workflow78Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.910[Extended thinking: This workflow orchestrates multiple specialized agents to ensure feature parity across platforms while maintaining platform-specific optimizations. The coordination strategy emphasizes shared contracts and parallel development with regular synchronization points. By establishing API contracts and data models upfront, teams can work independently while ensuring consistency. The workflow benefits include faster time-to-market, reduced integration issues, and maintainable cross-platform codebases.]1112## Use this skill when1314- Working on multi-platform feature development workflow tasks or workflows15- Needing guidance, best practices, or checklists for multi-platform feature development workflow1617## Do not use this skill when1819- The task is unrelated to multi-platform feature development workflow20- You need a different domain or tool outside this scope2122## Instructions2324- Clarify goals, constraints, and required inputs.25- Apply relevant best practices and validate outcomes.26- Provide actionable steps and verification.27- If detailed examples are required, open `resources/implementation-playbook.md`.2829## Phase 1: Architecture and API Design (Sequential)3031### 1. Define Feature Requirements and API Contracts32- Use Task tool with subagent_type="backend-architect"33- Prompt: "Design the API contract for feature: $ARGUMENTS. Create OpenAPI 3.1 specification with:34 - RESTful endpoints with proper HTTP methods and status codes35 - GraphQL schema if applicable for complex data queries36 - WebSocket events for real-time features37 - Request/response schemas with validation rules38 - Authentication and authorization requirements39 - Rate limiting and caching strategies40 - Error response formats and codes41 Define shared data models that all platforms will consume."42- Expected output: Complete API specification, data models, and integration guidelines4344### 2. Design System and UI/UX Consistency45- Use Task tool with subagent_type="ui-ux-designer"46- Prompt: "Create cross-platform design system for feature using API spec: [previous output]. Include:47 - Component specifications for each platform (Material Design, iOS HIG, Fluent)48 - Responsive layouts for web (mobile-first approach)49 - Native patterns for iOS (SwiftUI) and Android (Material You)50 - Desktop-specific considerations (keyboard shortcuts, window management)51 - Accessibility requirements (WCAG 2.2 Level AA)52 - Dark/light theme specifications53 - Animation and transition guidelines"54- Context from previous: API endpoints, data structures, authentication flows55- Expected output: Design system documentation, component library specs, platform guidelines5657### 3. Shared Business Logic Architecture58- Use Task tool with subagent_type="comprehensive-review::architect-review"59- Prompt: "Design shared business logic architecture for cross-platform feature. Define:60 - Core domain models and entities (platform-agnostic)61 - Business rules and validation logic62 - State management patterns (MVI/Redux/BLoC)63 - Caching and offline strategies64 - Error handling and retry policies65 - Platform-specific adapter patterns66 Consider Kotlin Multiplatform for mobile or TypeScript for web/desktop sharing."67- Context from previous: API contracts, data models, UI requirements68- Expected output: Shared code architecture, platform abstraction layers, implementation guide6970## Phase 2: Parallel Platform Implementation7172### 4a. Web Implementation (React/Next.js)73- Use Task tool with subagent_type="frontend-developer"74- Prompt: "Implement web version of feature using:75 - React 18+ with Next.js 14+ App Router76 - TypeScript for type safety77 - TanStack Query for API integration: [API spec]78 - Zustand/Redux Toolkit for state management79 - Tailwind CSS with design system: [design specs]80 - Progressive Web App capabilities81 - SSR/SSG optimization where appropriate82 - Web vitals optimization (LCP < 2.5s, FID < 100ms)83 Follow shared business logic: [architecture doc]"84- Context from previous: API contracts, design system, shared logic patterns85- Expected output: Complete web implementation with tests8687### 4b. iOS Implementation (SwiftUI)88- Use Task tool with subagent_type="ios-developer"89- Prompt: "Implement iOS version using:90 - SwiftUI with iOS 17+ features91 - Swift 5.9+ with async/await92 - URLSession with Combine for API: [API spec]93 - Core Data/SwiftData for persistence94 - Design system compliance: [iOS HIG specs]95 - Widget extensions if applicable96 - Platform-specific features (Face ID, Haptics, Live Activities)97 - Testable MVVM architecture98 Follow shared patterns: [architecture doc]"99- Context from previous: API contracts, iOS design guidelines, shared models100- Expected output: Native iOS implementation with unit/UI tests101102### 4c. Android Implementation (Kotlin/Compose)103- Use Task tool with subagent_type="mobile-developer"104- Prompt: "Implement Android version using:105 - Jetpack Compose with Material 3106 - Kotlin coroutines and Flow107 - Retrofit/Ktor for API: [API spec]108 - Room database for local storage109 - Hilt for dependency injection110 - Material You dynamic theming: [design specs]111 - Platform features (biometric auth, widgets)112 - Clean architecture with MVI pattern113 Follow shared logic: [architecture doc]"114- Context from previous: API contracts, Material Design specs, shared patterns115- Expected output: Native Android implementation with tests116117### 4d. Desktop Implementation (Optional - Electron/Tauri)118- Use Task tool with subagent_type="frontend-mobile-development::frontend-developer"119- Prompt: "Implement desktop version using Tauri 2.0 or Electron with:120 - Shared web codebase where possible121 - Native OS integration (system tray, notifications)122 - File system access if needed123 - Auto-updater functionality124 - Code signing and notarization setup125 - Keyboard shortcuts and menu bar126 - Multi-window support if applicable127 Reuse web components: [web implementation]"128- Context from previous: Web implementation, desktop-specific requirements129- Expected output: Desktop application with platform packages130131## Phase 3: Integration and Validation132133### 5. API Documentation and Testing134- Use Task tool with subagent_type="documentation-generation::api-documenter"135- Prompt: "Create comprehensive API documentation including:136 - Interactive OpenAPI/Swagger documentation137 - Platform-specific integration guides138 - SDK examples for each platform139 - Authentication flow diagrams140 - Rate limiting and quota information141 - Postman/Insomnia collections142 - WebSocket connection examples143 - Error handling best practices144 - API versioning strategy145 Test all endpoints with platform implementations."146- Context from previous: Implemented platforms, API usage patterns147- Expected output: Complete API documentation portal, test results148149### 6. Cross-Platform Testing and Feature Parity150- Use Task tool with subagent_type="unit-testing::test-automator"151- Prompt: "Validate feature parity across all platforms:152 - Functional testing matrix (features work identically)153 - UI consistency verification (follows design system)154 - Performance benchmarks per platform155 - Accessibility testing (platform-specific tools)156 - Network resilience testing (offline, slow connections)157 - Data synchronization validation158 - Platform-specific edge cases159 - End-to-end user journey tests160 Create test report with any platform discrepancies."161- Context from previous: All platform implementations, API documentation162- Expected output: Test report, parity matrix, performance metrics163164### 7. Platform-Specific Optimizations165- Use Task tool with subagent_type="application-performance::performance-engineer"166- Prompt: "Optimize each platform implementation:167 - Web: Bundle size, lazy loading, CDN setup, SEO168 - iOS: App size, launch time, memory usage, battery169 - Android: APK size, startup time, frame rate, battery170 - Desktop: Binary size, resource usage, startup time171 - API: Response time, caching, compression172 Maintain feature parity while leveraging platform strengths.173 Document optimization techniques and trade-offs."174- Context from previous: Test results, performance metrics175- Expected output: Optimized implementations, performance improvements176177## Configuration Options178179- **--platforms**: Specify target platforms (web,ios,android,desktop)180- **--api-first**: Generate API before UI implementation (default: true)181- **--shared-code**: Use Kotlin Multiplatform or similar (default: evaluate)182- **--design-system**: Use existing or create new (default: create)183- **--testing-strategy**: Unit, integration, e2e (default: all)184185## Success Criteria186187- API contract defined and validated before implementation188- All platforms achieve feature parity with <5% variance189- Performance metrics meet platform-specific standards190- Accessibility standards met (WCAG 2.2 AA minimum)191- Cross-platform testing shows consistent behavior192- Documentation complete for all platforms193- Code reuse >40% between platforms where applicable194- User experience optimized for each platform's conventions195196## Platform-Specific Considerations197198**Web**: PWA capabilities, SEO optimization, browser compatibility199**iOS**: App Store guidelines, TestFlight distribution, iOS-specific features200**Android**: Play Store requirements, Android App Bundles, device fragmentation201**Desktop**: Code signing, auto-updates, OS-specific installers202203Initial feature specification: $ARGUMENTS204
Full transparency — inspect the skill content before installing.