Skip to content
cccskills
FreePublished on GitHub

native

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md2.5 KB
  • ios.md3.8 KB
  • swift-concurrency.md4.7 KB
  • swiftui-performance.md4.9 KB
  • tauri.md13.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

原生应用开发

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

子文件

原生 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

通用最佳实践

架构模式

模式iOSAndroid
MVVMSwiftUI + @ObservableCompose + ViewModel
Clean Architecture分层 + 协议分层 + 接口
依赖注入Swift DIHilt/Koin

性能优化

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

测试策略

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

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

api

Free

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals during development sessions.

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

debug

Free

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

See all skills by xiaobei930

Report a problem with this skill