Multi-Platform Feature Development Workflow
Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.
[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.]
Use this skill when
- Working on multi-platform feature development workflow tasks or workflows
- Needing guidance, best practices, or checklists for multi-platform feature development workflow
Do not use this skill when
- The task is unrelated to multi-platform feature development workflow
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
Phase 1: Architecture and API Design (Sequential)
1. Define Feature Requirements and API Contracts
- Use Task tool with subagent_type="backend-architect"
- Prompt: "Design the API contract for feature: $ARGUMENTS. Create OpenAPI 3.1 specification with:
- RESTful endpoints with proper HTTP methods and status codes
- GraphQL schema if applicable for complex data queries
- WebSocket events for real-time features
- Request/response schemas with validation rules
- Authentication and authorization requirements
- Rate limiting and caching strategies
- Error response formats and codes
Define shared data models that all platforms will consume."
- Expected output: Complete API specification, data models, and integration guidelines
2. Design System and UI/UX Consistency
- Use Task tool with subagent_type="ui-ux-designer"
- Prompt: "Create cross-platform design system for feature using API spec: [previous output]. Include:
- Component specifications for each platform (Material Design, iOS HIG, Fluent)
- Responsive layouts for web (mobile-first approach)
- Native patterns for iOS (SwiftUI) and Android (Material You)
- Desktop-specific considerations (keyboard shortcuts, window management)
- Accessibility requirements (WCAG 2.2 Level AA)
- Dark/light theme specifications
- Animation and transition guidelines"
- Context from previous: API endpoints, data structures, authentication flows
- Expected output: Design system documentation, component library specs, platform guidelines
3. Shared Business Logic Architecture
- Use Task tool with subagent_type="comprehensive-review::architect-review"
- Prompt: "Design shared business logic architecture for cross-platform feature. Define:
- Core domain models and entities (platform-agnostic)
- Business rules and validation logic
- State management patterns (MVI/Redux/BLoC)
- Caching and offline strategies
- Error handling and retry policies
- Platform-specific adapter patterns
Consider Kotlin Multiplatform for mobile or TypeScript for web/desktop sharing."
- Context from previous: API contracts, data models, UI requirements
- Expected output: Shared code architecture, platform abstraction layers, implementation guide
Phase 2: Parallel Platform Implementation
4a. Web Implementation (React/Next.js)
- Use Task tool with subagent_type="frontend-developer"
- Prompt: "Implement web version of feature using:
- React 18+ with Next.js 14+ App Router
- TypeScript for type safety
- TanStack Query for API integration: [API spec]
- Zustand/Redux Toolkit for state management
- Tailwind CSS with design system: [design specs]
- Progressive Web App capabilities
- SSR/SSG optimization where appropriate
- Web vitals optimization (LCP < 2.5s, FID < 100ms)
Follow shared business logic: [architecture doc]"
- Context from previous: API contracts, design system, shared logic patterns
- Expected output: Complete web implementation with tests
4b. iOS Implementation (SwiftUI)
- Use Task tool with subagent_type="ios-developer"
- Prompt: "Implement iOS version using:
- SwiftUI with iOS 17+ features
- Swift 5.9+ with async/await
- URLSession with Combine for API: [API spec]
- Core Data/SwiftData for persistence
- Design system compliance: [iOS HIG specs]
- Widget extensions if applicable
- Platform-specific features (Face ID, Haptics, Live Activities)
- Testable MVVM architecture
Follow shared patterns: [architecture doc]"
- Context from previous: API contracts, iOS design guidelines, shared models
- Expected output: Native iOS implementation with unit/UI tests
4c. Android Implementation (Kotlin/Compose)
- Use Task tool with subagent_type="mobile-developer"
- Prompt: "Implement Android version using:
- Jetpack Compose with Material 3
- Kotlin coroutines and Flow
- Retrofit/Ktor for API: [API spec]
- Room database for local storage
- Hilt for dependency injection
- Material You dynamic theming: [design specs]
- Platform features (biometric auth, widgets)
- Clean architecture with MVI pattern
Follow shared logic: [architecture doc]"
- Context from previous: API contracts, Material Design specs, shared patterns
- Expected output: Native Android implementation with tests
4d. Desktop Implementation (Optional - Electron/Tauri)
- Use Task tool with subagent_type="frontend-mobile-development::frontend-developer"
- Prompt: "Implement desktop version using Tauri 2.0 or Electron with:
- Shared web codebase where possible
- Native OS integration (system tray, notifications)
- File system access if needed
- Auto-updater functionality
- Code signing and notarization setup
- Keyboard shortcuts and menu bar
- Multi-window support if applicable
Reuse web components: [web implementation]"
- Context from previous: Web implementation, desktop-specific requirements
- Expected output: Desktop application with platform packages
Phase 3: Integration and Validation
5. API Documentation and Testing
- Use Task tool with subagent_type="documentation-generation::api-documenter"
- Prompt: "Create comprehensive API documentation including:
- Interactive OpenAPI/Swagger documentation
- Platform-specific integration guides
- SDK examples for each platform
- Authentication flow diagrams
- Rate limiting and quota information
- Postman/Insomnia collections
- WebSocket connection examples
- Error handling best practices
- API versioning strategy
Test all endpoints with platform implementations."
- Context from previous: Implemented platforms, API usage patterns
- Expected output: Complete API documentation portal, test results
6. Cross-Platform Testing and Feature Parity
- Use Task tool with subagent_type="unit-testing::test-automator"
- Prompt: "Validate feature parity across all platforms:
- Functional testing matrix (features work identically)
- UI consistency verification (follows design system)
- Performance benchmarks per platform
- Accessibility testing (platform-specific tools)
- Network resilience testing (offline, slow connections)
- Data synchronization validation
- Platform-specific edge cases
- End-to-end user journey tests
Create test report with any platform discrepancies."
- Context from previous: All platform implementations, API documentation
- Expected output: Test report, parity matrix, performance metrics
7. Platform-Specific Optimizations
- Use Task tool with subagent_type="application-performance::performance-engineer"
- Prompt: "Optimize each platform implementation:
- Web: Bundle size, lazy loading, CDN setup, SEO
- iOS: App size, launch time, memory usage, battery
- Android: APK size, startup time, frame rate, battery
- Desktop: Binary size, resource usage, startup time
- API: Response time, caching, compression
Maintain feature parity while leveraging platform strengths.
Document optimization techniques and trade-offs."
- Context from previous: Test results, performance metrics
- Expected output: Optimized implementations, performance improvements
Configuration Options
- --platforms: Specify target platforms (web,ios,android,desktop)
- --api-first: Generate API before UI implementation (default: true)
- --shared-code: Use Kotlin Multiplatform or similar (default: evaluate)
- --design-system: Use existing or create new (default: create)
- --testing-strategy: Unit, integration, e2e (default: all)
Success Criteria
- API contract defined and validated before implementation
- All platforms achieve feature parity with <5% variance
- Performance metrics meet platform-specific standards
- Accessibility standards met (WCAG 2.2 AA minimum)
- Cross-platform testing shows consistent behavior
- Documentation complete for all platforms
- Code reuse >40% between platforms where applicable
- User experience optimized for each platform's conventions
Platform-Specific Considerations
Web: PWA capabilities, SEO optimization, browser compatibility
iOS: App Store guidelines, TestFlight distribution, iOS-specific features
Android: Play Store requirements, Android App Bundles, device fragmentation
Desktop: Code signing, auto-updates, OS-specific installers
Initial feature specification: $ARGUMENTS
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---5
6# Multi-Platform Feature Development Workflow
7
8Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.
9
10[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.]
11
12## Use this skill when
13
14- Working on multi-platform feature development workflow tasks or workflows
15- Needing guidance, best practices, or checklists for multi-platform feature development workflow
16
17## Do not use this skill when
18
19- The task is unrelated to multi-platform feature development workflow
20- You need a different domain or tool outside this scope
21
22## Instructions
23
24- Clarify goals, constraints, and required inputs.
25- Apply relevant best practices and validate outcomes.
26- Provide actionable steps and verification.
27
28## Phase 1: Architecture and API Design (Sequential)
29
30### 1. Define Feature Requirements and API Contracts
31- Use Task tool with subagent_type="backend-architect"
32- Prompt: "Design the API contract for feature: $ARGUMENTS. Create OpenAPI 3.1 specification with:
33 - RESTful endpoints with proper HTTP methods and status codes
34 - GraphQL schema if applicable for complex data queries
35 - WebSocket events for real-time features
36 - Request/response schemas with validation rules
37 - Authentication and authorization requirements
38 - Rate limiting and caching strategies
39 - Error response formats and codes
40 Define shared data models that all platforms will consume."
41- Expected output: Complete API specification, data models, and integration guidelines
42
43### 2. Design System and UI/UX Consistency
44- Use Task tool with subagent_type="ui-ux-designer"
45- Prompt: "Create cross-platform design system for feature using API spec: [previous output]. Include:
46 - Component specifications for each platform (Material Design, iOS HIG, Fluent)
47 - Responsive layouts for web (mobile-first approach)
48 - Native patterns for iOS (SwiftUI) and Android (Material You)
49 - Desktop-specific considerations (keyboard shortcuts, window management)
50 - Accessibility requirements (WCAG 2.2 Level AA)
51 - Dark/light theme specifications
52 - Animation and transition guidelines"
53- Context from previous: API endpoints, data structures, authentication flows
54- Expected output: Design system documentation, component library specs, platform guidelines
55
56### 3. Shared Business Logic Architecture
57- Use Task tool with subagent_type="comprehensive-review::architect-review"
58- Prompt: "Design shared business logic architecture for cross-platform feature. Define:
59 - Core domain models and entities (platform-agnostic)
60 - Business rules and validation logic
61 - State management patterns (MVI/Redux/BLoC)
62 - Caching and offline strategies
63 - Error handling and retry policies
64 - Platform-specific adapter patterns
65 Consider Kotlin Multiplatform for mobile or TypeScript for web/desktop sharing."
66- Context from previous: API contracts, data models, UI requirements
67- Expected output: Shared code architecture, platform abstraction layers, implementation guide
68
69## Phase 2: Parallel Platform Implementation
70
71### 4a. Web Implementation (React/Next.js)
72- Use Task tool with subagent_type="frontend-developer"
73- Prompt: "Implement web version of feature using:
74 - React 18+ with Next.js 14+ App Router
75 - TypeScript for type safety
76 - TanStack Query for API integration: [API spec]
77 - Zustand/Redux Toolkit for state management
78 - Tailwind CSS with design system: [design specs]
79 - Progressive Web App capabilities
80 - SSR/SSG optimization where appropriate
81 - Web vitals optimization (LCP < 2.5s, FID < 100ms)
82 Follow shared business logic: [architecture doc]"
83- Context from previous: API contracts, design system, shared logic patterns
84- Expected output: Complete web implementation with tests
85
86### 4b. iOS Implementation (SwiftUI)
87- Use Task tool with subagent_type="ios-developer"
88- Prompt: "Implement iOS version using:
89 - SwiftUI with iOS 17+ features
90 - Swift 5.9+ with async/await
91 - URLSession with Combine for API: [API spec]
92 - Core Data/SwiftData for persistence
93 - Design system compliance: [iOS HIG specs]
94 - Widget extensions if applicable
95 - Platform-specific features (Face ID, Haptics, Live Activities)
96 - Testable MVVM architecture
97 Follow shared patterns: [architecture doc]"
98- Context from previous: API contracts, iOS design guidelines, shared models
99- Expected output: Native iOS implementation with unit/UI tests
100
101### 4c. Android Implementation (Kotlin/Compose)
102- Use Task tool with subagent_type="mobile-developer"
103- Prompt: "Implement Android version using:
104 - Jetpack Compose with Material 3
105 - Kotlin coroutines and Flow
106 - Retrofit/Ktor for API: [API spec]
107 - Room database for local storage
108 - Hilt for dependency injection
109 - Material You dynamic theming: [design specs]
110 - Platform features (biometric auth, widgets)
111 - Clean architecture with MVI pattern
112 Follow shared logic: [architecture doc]"
113- Context from previous: API contracts, Material Design specs, shared patterns
114- Expected output: Native Android implementation with tests
115
116### 4d. Desktop Implementation (Optional - Electron/Tauri)
117- Use Task tool with subagent_type="frontend-mobile-development::frontend-developer"
118- Prompt: "Implement desktop version using Tauri 2.0 or Electron with:
119 - Shared web codebase where possible
120 - Native OS integration (system tray, notifications)
121 - File system access if needed
122 - Auto-updater functionality
123 - Code signing and notarization setup
124 - Keyboard shortcuts and menu bar
125 - Multi-window support if applicable
126 Reuse web components: [web implementation]"
127- Context from previous: Web implementation, desktop-specific requirements
128- Expected output: Desktop application with platform packages
129
130## Phase 3: Integration and Validation
131
132### 5. API Documentation and Testing
133- Use Task tool with subagent_type="documentation-generation::api-documenter"
134- Prompt: "Create comprehensive API documentation including:
135 - Interactive OpenAPI/Swagger documentation
136 - Platform-specific integration guides
137 - SDK examples for each platform
138 - Authentication flow diagrams
139 - Rate limiting and quota information
140 - Postman/Insomnia collections
141 - WebSocket connection examples
142 - Error handling best practices
143 - API versioning strategy
144 Test all endpoints with platform implementations."
145- Context from previous: Implemented platforms, API usage patterns
146- Expected output: Complete API documentation portal, test results
147
148### 6. Cross-Platform Testing and Feature Parity
149- Use Task tool with subagent_type="unit-testing::test-automator"
150- Prompt: "Validate feature parity across all platforms:
151 - Functional testing matrix (features work identically)
152 - UI consistency verification (follows design system)
153 - Performance benchmarks per platform
154 - Accessibility testing (platform-specific tools)
155 - Network resilience testing (offline, slow connections)
156 - Data synchronization validation
157 - Platform-specific edge cases
158 - End-to-end user journey tests
159 Create test report with any platform discrepancies."
160- Context from previous: All platform implementations, API documentation
161- Expected output: Test report, parity matrix, performance metrics
162
163### 7. Platform-Specific Optimizations
164- Use Task tool with subagent_type="application-performance::performance-engineer"
165- Prompt: "Optimize each platform implementation:
166 - Web: Bundle size, lazy loading, CDN setup, SEO
167 - iOS: App size, launch time, memory usage, battery
168 - Android: APK size, startup time, frame rate, battery
169 - Desktop: Binary size, resource usage, startup time
170 - API: Response time, caching, compression
171 Maintain feature parity while leveraging platform strengths.
172 Document optimization techniques and trade-offs."
173- Context from previous: Test results, performance metrics
174- Expected output: Optimized implementations, performance improvements
175
176## Configuration Options
177
178- **--platforms**: Specify target platforms (web,ios,android,desktop)
179- **--api-first**: Generate API before UI implementation (default: true)
180- **--shared-code**: Use Kotlin Multiplatform or similar (default: evaluate)
181- **--design-system**: Use existing or create new (default: create)
182- **--testing-strategy**: Unit, integration, e2e (default: all)
183
184## Success Criteria
185
186- API contract defined and validated before implementation
187- All platforms achieve feature parity with <5% variance
188- Performance metrics meet platform-specific standards
189- Accessibility standards met (WCAG 2.2 AA minimum)
190- Cross-platform testing shows consistent behavior
191- Documentation complete for all platforms
192- Code reuse >40% between platforms where applicable
193- User experience optimized for each platform's conventions
194
195## Platform-Specific Considerations
196
197**Web**: PWA capabilities, SEO optimization, browser compatibility
198**iOS**: App Store guidelines, TestFlight distribution, iOS-specific features
199**Android**: Play Store requirements, Android App Bundles, device fragmentation
200**Desktop**: Code signing, auto-updates, OS-specific installers
201
202Initial feature specification: $ARGUMENTS