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.
- If detailed examples are required, open
resources/implementation-playbook.md.
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
AGI Framework Integration
Adapted for @techwavedev/agi-agent-kit
Original source: antigravity-awesome-skills
Memory-First Protocol
Retrieve prior API design decisions, database schema choices, and error handling patterns. Cache API response templates for consistent error formatting.
# Check for prior backend/API context before starting
python3 execution/memory_manager.py auto --query "API design patterns and architecture decisions for Multi Platform Apps Multi Platform"
Storing Results
After completing work, store backend/API decisions for future sessions:
python3 execution/memory_manager.py store \
--content "API architecture: REST with HATEOAS, JWT auth, rate limiting at 100 req/min per tenant" \
--type decision --project <project> \
--tags multi-platform-apps-multi-platform backend
Multi-Agent Collaboration
Share API contract changes with frontend agents so they update their client code, and with QA agents for test coverage.
python3 execution/cross_agent_context.py store \
--agent "<your-agent>" \
--action "Implemented API endpoints — 5 new routes with OpenAPI spec and integration tests" \
--project <project>
Agent Team: Code Review
After implementation, dispatch code_review_team for two-stage review (spec compliance + code quality) before merging.
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."4risk: unknown5source: community6date_added: "2026-02-27"7---89# Multi-Platform Feature Development Workflow1011Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.1213[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.]1415## Use this skill when1617- Working on multi-platform feature development workflow tasks or workflows18- Needing guidance, best practices, or checklists for multi-platform feature development workflow1920## Do not use this skill when2122- The task is unrelated to multi-platform feature development workflow23- You need a different domain or tool outside this scope2425## Instructions2627- Clarify goals, constraints, and required inputs.28- Apply relevant best practices and validate outcomes.29- Provide actionable steps and verification.30- If detailed examples are required, open `resources/implementation-playbook.md`.3132## Phase 1: Architecture and API Design (Sequential)3334### 1. Define Feature Requirements and API Contracts35- Use Task tool with subagent_type="backend-architect"36- Prompt: "Design the API contract for feature: $ARGUMENTS. Create OpenAPI 3.1 specification with:37 - RESTful endpoints with proper HTTP methods and status codes38 - GraphQL schema if applicable for complex data queries39 - WebSocket events for real-time features40 - Request/response schemas with validation rules41 - Authentication and authorization requirements42 - Rate limiting and caching strategies43 - Error response formats and codes44 Define shared data models that all platforms will consume."45- Expected output: Complete API specification, data models, and integration guidelines4647### 2. Design System and UI/UX Consistency48- Use Task tool with subagent_type="ui-ux-designer"49- Prompt: "Create cross-platform design system for feature using API spec: [previous output]. Include:50 - Component specifications for each platform (Material Design, iOS HIG, Fluent)51 - Responsive layouts for web (mobile-first approach)52 - Native patterns for iOS (SwiftUI) and Android (Material You)53 - Desktop-specific considerations (keyboard shortcuts, window management)54 - Accessibility requirements (WCAG 2.2 Level AA)55 - Dark/light theme specifications56 - Animation and transition guidelines"57- Context from previous: API endpoints, data structures, authentication flows58- Expected output: Design system documentation, component library specs, platform guidelines5960### 3. Shared Business Logic Architecture61- Use Task tool with subagent_type="comprehensive-review::architect-review"62- Prompt: "Design shared business logic architecture for cross-platform feature. Define:63 - Core domain models and entities (platform-agnostic)64 - Business rules and validation logic65 - State management patterns (MVI/Redux/BLoC)66 - Caching and offline strategies67 - Error handling and retry policies68 - Platform-specific adapter patterns69 Consider Kotlin Multiplatform for mobile or TypeScript for web/desktop sharing."70- Context from previous: API contracts, data models, UI requirements71- Expected output: Shared code architecture, platform abstraction layers, implementation guide7273## Phase 2: Parallel Platform Implementation7475### 4a. Web Implementation (React/Next.js)76- Use Task tool with subagent_type="frontend-developer"77- Prompt: "Implement web version of feature using:78 - React 18+ with Next.js 14+ App Router79 - TypeScript for type safety80 - TanStack Query for API integration: [API spec]81 - Zustand/Redux Toolkit for state management82 - Tailwind CSS with design system: [design specs]83 - Progressive Web App capabilities84 - SSR/SSG optimization where appropriate85 - Web vitals optimization (LCP < 2.5s, FID < 100ms)86 Follow shared business logic: [architecture doc]"87- Context from previous: API contracts, design system, shared logic patterns88- Expected output: Complete web implementation with tests8990### 4b. iOS Implementation (SwiftUI)91- Use Task tool with subagent_type="ios-developer"92- Prompt: "Implement iOS version using:93 - SwiftUI with iOS 17+ features94 - Swift 5.9+ with async/await95 - URLSession with Combine for API: [API spec]96 - Core Data/SwiftData for persistence97 - Design system compliance: [iOS HIG specs]98 - Widget extensions if applicable99 - Platform-specific features (Face ID, Haptics, Live Activities)100 - Testable MVVM architecture101 Follow shared patterns: [architecture doc]"102- Context from previous: API contracts, iOS design guidelines, shared models103- Expected output: Native iOS implementation with unit/UI tests104105### 4c. Android Implementation (Kotlin/Compose)106- Use Task tool with subagent_type="mobile-developer"107- Prompt: "Implement Android version using:108 - Jetpack Compose with Material 3109 - Kotlin coroutines and Flow110 - Retrofit/Ktor for API: [API spec]111 - Room database for local storage112 - Hilt for dependency injection113 - Material You dynamic theming: [design specs]114 - Platform features (biometric auth, widgets)115 - Clean architecture with MVI pattern116 Follow shared logic: [architecture doc]"117- Context from previous: API contracts, Material Design specs, shared patterns118- Expected output: Native Android implementation with tests119120### 4d. Desktop Implementation (Optional - Electron/Tauri)121- Use Task tool with subagent_type="frontend-mobile-development::frontend-developer"122- Prompt: "Implement desktop version using Tauri 2.0 or Electron with:123 - Shared web codebase where possible124 - Native OS integration (system tray, notifications)125 - File system access if needed126 - Auto-updater functionality127 - Code signing and notarization setup128 - Keyboard shortcuts and menu bar129 - Multi-window support if applicable130 Reuse web components: [web implementation]"131- Context from previous: Web implementation, desktop-specific requirements132- Expected output: Desktop application with platform packages133134## Phase 3: Integration and Validation135136### 5. API Documentation and Testing137- Use Task tool with subagent_type="documentation-generation::api-documenter"138- Prompt: "Create comprehensive API documentation including:139 - Interactive OpenAPI/Swagger documentation140 - Platform-specific integration guides141 - SDK examples for each platform142 - Authentication flow diagrams143 - Rate limiting and quota information144 - Postman/Insomnia collections145 - WebSocket connection examples146 - Error handling best practices147 - API versioning strategy148 Test all endpoints with platform implementations."149- Context from previous: Implemented platforms, API usage patterns150- Expected output: Complete API documentation portal, test results151152### 6. Cross-Platform Testing and Feature Parity153- Use Task tool with subagent_type="unit-testing::test-automator"154- Prompt: "Validate feature parity across all platforms:155 - Functional testing matrix (features work identically)156 - UI consistency verification (follows design system)157 - Performance benchmarks per platform158 - Accessibility testing (platform-specific tools)159 - Network resilience testing (offline, slow connections)160 - Data synchronization validation161 - Platform-specific edge cases162 - End-to-end user journey tests163 Create test report with any platform discrepancies."164- Context from previous: All platform implementations, API documentation165- Expected output: Test report, parity matrix, performance metrics166167### 7. Platform-Specific Optimizations168- Use Task tool with subagent_type="application-performance::performance-engineer"169- Prompt: "Optimize each platform implementation:170 - Web: Bundle size, lazy loading, CDN setup, SEO171 - iOS: App size, launch time, memory usage, battery172 - Android: APK size, startup time, frame rate, battery173 - Desktop: Binary size, resource usage, startup time174 - API: Response time, caching, compression175 Maintain feature parity while leveraging platform strengths.176 Document optimization techniques and trade-offs."177- Context from previous: Test results, performance metrics178- Expected output: Optimized implementations, performance improvements179180## Configuration Options181182- **--platforms**: Specify target platforms (web,ios,android,desktop)183- **--api-first**: Generate API before UI implementation (default: true)184- **--shared-code**: Use Kotlin Multiplatform or similar (default: evaluate)185- **--design-system**: Use existing or create new (default: create)186- **--testing-strategy**: Unit, integration, e2e (default: all)187188## Success Criteria189190- API contract defined and validated before implementation191- All platforms achieve feature parity with <5% variance192- Performance metrics meet platform-specific standards193- Accessibility standards met (WCAG 2.2 AA minimum)194- Cross-platform testing shows consistent behavior195- Documentation complete for all platforms196- Code reuse >40% between platforms where applicable197- User experience optimized for each platform's conventions198199## Platform-Specific Considerations200201**Web**: PWA capabilities, SEO optimization, browser compatibility202**iOS**: App Store guidelines, TestFlight distribution, iOS-specific features203**Android**: Play Store requirements, Android App Bundles, device fragmentation204**Desktop**: Code signing, auto-updates, OS-specific installers205206Initial feature specification: $ARGUMENTS207208---209210<!-- AGI-INTEGRATION-START -->211212## AGI Framework Integration213214> **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)**215> Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills)216217### Memory-First Protocol218219Retrieve prior API design decisions, database schema choices, and error handling patterns. Cache API response templates for consistent error formatting.220221```bash222# Check for prior backend/API context before starting223python3 execution/memory_manager.py auto --query "API design patterns and architecture decisions for Multi Platform Apps Multi Platform"224```225226### Storing Results227228After completing work, store backend/API decisions for future sessions:229230```bash231python3 execution/memory_manager.py store \232 --content "API architecture: REST with HATEOAS, JWT auth, rate limiting at 100 req/min per tenant" \233 --type decision --project <project> \234 --tags multi-platform-apps-multi-platform backend235```236237### Multi-Agent Collaboration238239Share API contract changes with frontend agents so they update their client code, and with QA agents for test coverage.240241```bash242python3 execution/cross_agent_context.py store \243 --agent "<your-agent>" \244 --action "Implemented API endpoints — 5 new routes with OpenAPI spec and integration tests" \245 --project <project>246```247248### Agent Team: Code Review249250After implementation, dispatch `code_review_team` for two-stage review (spec compliance + code quality) before merging.251252<!-- AGI-INTEGRATION-END -->