Skip to content
Development
Skill

/native

Native app development strategies including iOS/macOS (Apple platforms), Tauri desktop apps. Use when developing native mobile or desktop applications.

From plugin
cc-best
5019 skills8 agents44 commands20 hooks

Claude Code

$ npx -y skills add xiaobei930/cc-best --skill native --agent claude-code

SKILL.md

native.SKILL.md
name: native
description: "Native app development strategies including iOS/macOS (Apple platforms), Tauri desktop apps. Use when developing native mobile or desktop applications."
allowed-tools: Read, Write, Edit, Bash, Grep, Glob

原生应用开发

本技能提供原生应用开发的策略选择指南,整合各平台特定的开发模式。

子文件

  • [ios.md](ios.md) - iOS/macOS 开发指南
  • [swift-concurrency.md](swift-concurrency.md) - Swift 并发编程
  • [swiftui-performance.md](swiftui-performance.md) - SwiftUI 性能优化
  • [tauri.md](tauri.md) - Tauri 跨平台桌面应用开发

原生 vs 跨平台

| 维度 | 原生开发 | 跨平台 (Flutter/RN) | | -------- | ---------- | ------------------- | | 性能 | 最佳 | 接近原生 | | 平台特性 | 完全支持 | 部分支持 | | 开发成本 | 各平台独立 | 一套代码 | | 维护成本 | 较高 | 较低 | | 用户体验 | 最佳 | 良好 |

**选择原生开发的场景**:

  • 性能敏感应用(游戏、视频)
  • 深度平台集成(系统 API、硬件)
  • 追求极致用户体验
  • 团队有平台专业知识

平台概览

Apple 平台(iOS/macOS)

**覆盖范围**:iOS/iPadOS、macOS、watchOS/tvOS

**技术栈**:Swift 6.x、SwiftUI / UIKit、Xcode

详细指南参阅 `ios.md`

Android(未来)

**覆盖范围**:Android 手机/平板、Wear OS、Android TV

**技术栈**:Kotlin、Jetpack Compose / View、Android Studio

通用最佳实践

架构模式

| 模式 | iOS | Android | | ------------------ | --------------------- | ------------------- | | MVVM | SwiftUI + @Observable | Compose + ViewModel | | Clean Architecture | 分层 + 协议 | 分层 + 接口 | | 依赖注入 | Swift DI | Hilt/Koin |

性能优化

1. **启动优化** - 延迟加载、预加载 2. **内存管理** - 避免循环引用、及时释放 3. **UI 流畅** - 主线程保持响应、异步处理 4. **电量优化** - 减少后台任务、优化网络请求

测试策略

| 层级 | 覆盖内容 | | -------- | ------------------- | | 单元测试 | 业务逻辑、ViewModel | | 集成测试 | 网络层、数据层 | | UI 测试 | 关键用户流程 |

---

> **记住**:原生开发追求的是最佳的平台体验,选择原生意味着要深入理解平台特性。

Read more
@xiaobei930
Ships withcc-best

Role-Driven Development Workflow for Claude Code Transform Claude into a complete development team. From product requirements to code review — one plugin, full workflow. Quick Start • Features • Workflow • Commands • FAQ

5019 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
50
Star history of xiaobei930/cc-best on GitHub, a chart by star-history.com

Other skills on cc-best.

api

api

RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

@xiaobei930@xiaobei930Install Skill
architecture

architecture

Architecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex…

@xiaobei930@xiaobei930Install Skill
backend

backend

Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or…

@xiaobei930@xiaobei930Install Skill
compact

compact

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals…

@xiaobei930@xiaobei930Install Skill
database

database

Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing…

@xiaobei930@xiaobei930Install Skill
debug

debug

Systematic debugging methods, log analysis, and performance diagnostics. Use when debugging issues, analyzing errors, or…

@xiaobei930@xiaobei930Install Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about native.

Which coding agents can use native?
native installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.