跳到正文
Skillpedia
移动应用48k · #5261

multi-platform-apps-multi-platform

它能做什么

这个工具可以帮你在不同平台(网页、移动端、桌面端)上一致地实现同一个功能。它采用“API 优先”的思路,先定义各部分之间如何通信,然后让各个团队并行开发。

适用场景

  • ✓同时为网页、移动端和桌面端开发一个新功能时。
  • ✓需要确保同一功能在所有平台上表现一致时。
  • ✓组织不同平台的开发团队协同工作时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/multi-platform-apps-multi-platform/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/multi-platform-apps-multi-platform/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“怎样做一个登录按钮,能同时在网站、iPhone 应用和 Windows 程序里使用,并且外观和操作感受保持一致?”

每周 5 个新技能,1 分钟读完。

工作原理

首先,它会定义系统各部分之间如何通信(也就是“API”)。然后,制作一份设计指南,保证外观统一。最后,网页、移动端和桌面端的团队按照已经确定的定义同时开发各自的版本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

…

常见问题

“API 优先”是什么意思?

就是在开始开发界面或各自的内部逻辑之前,先把各个系统之间用来通信的“语言”定义好。

为什么要并行开发?

因为通信和设计规则已经事先确定,网页、移动端和桌面端的团队就可以同时工作,从而加快开发进度。

这里的“平台”指什么?

指软件可以运行的各种环境,比如浏览器(网页)、智能手机和平板(移动端)以及电脑(桌面端)。

详情

作者的原始描述

Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5261
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能