跳到正文
Skillpedia
移动应用33k · #8698

mobile-design

它能做什么

这个技能为你的智能体提供移动应用设计原则,涵盖触控、速度、电池消耗,以及 iOS 与 Android 的不同习惯。适合使用 React Native、Flutter 或原生工具开发应用的人。

适用场景

  • ✓当你开始为 iPhone 或 Android 构建移动应用时。
  • ✓当你希望按钮和菜单便于用拇指点击时。
  • ✓当你的应用运行缓慢或耗电快,需要修复建议时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/mobile-design/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请检查我的移动应用页面,让它们便于单手操作。”

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

工作原理

该技能为智能体提供移动设计规则和检查清单,用于应用到你的应用上。它还包含一个脚本,可以检查项目中常见的触控和可用性问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Mobile Design System

Philosophy: Touch-first. Battery-conscious. Platform-respectful. Offline-capable. Core Principle: Mobile is NOT a small desktop. THINK mobile constraints, ASK platform choice.


🔧 Runtime Scripts

Execute these for validation (don't read, just run):

Script Purpose Usage
scripts/mobile_audit.py Mobile UX & Touch Audit python scripts/mobile_audit.py <project_path>

🔴 MANDATORY: Read Reference Files Before Working!

⛔ DO NOT start development until you read the relevant files:

Universal (Always Read)

File Content Status
mobile-design-thinking.md ⚠️ ANTI-MEMORIZATION: Forces thinking, prevents AI defaults ⬜ CRITICAL FIRST
touch-psychology.md Fitts' Law, gestures, haptics, thumb zone ⬜ CRITICAL
mobile-performance.md RN/Flutter performance, 60fps, memory ⬜ CRITICAL
mobile-backend.md Push notifications, offline sync, mobile API ⬜ CRITICAL
mobile-testing.md Testing pyramid, E2E, platform-specific ⬜ CRITICAL
mobile-debugging.md Native vs JS debugging, Flipper, Logcat ⬜ CRITICAL
mobile-navigation.md Tab/Stack/Drawer, deep linking ⬜ Read
mobile-typography.md System fonts, Dynamic Type, a11y ⬜ Read
mobile-color-system.md OLED, dark mode, battery-aware ⬜ Read
decision-trees.md Framework/state/storage selection ⬜ Read

🧠 mobile-design-thinking.md is PRIORITY! This file ensures AI thinks instead of using memorized patterns.

Platform-Specific (Read Based on Target)

Platform File Content When to Read
iOS platform-ios.md Human Interface Guidelines, SF Pro, SwiftUI patterns Building for iPhone/iPad
Android platform-android.md Material Design 3, Roboto, Compose patterns Building for Android
Cross-Platform Both above Platform divergence points React Native / Flutter

🔴 If building for iOS → Read platform-ios.md FIRST! 🔴 If building for Android → Read platform-android.md FIRST! 🔴 If cross-platform → Read BOTH and apply conditional platform logic!


⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)

STOP! If the user's request is open-ended, DO NOT default to your favorites.

You MUST Ask If Not Specified:

Aspect Ask Why
Platform "iOS, Android, or both?" Affects EVERY design decision
Framework "React Native, Flutter, or native?" Determines patterns and tools
Navigation "Tab bar, drawer, or stack-based?" Core UX decision
State "What state management? (Zustand/Redux/Riverpod/BLoC?)" Architecture foundation
Offline "Does this need to work offline?" Affects data strategy
Target devices "Phone only, or tablet support?" Layout complexity

⛔ AI MOBILE ANTI-PATTERNS (YASAK LİSTESİ)

🚫 These are AI default tendencies that MUST be avoided!

Performance Sins

❌ NEVER DO Why It's Wrong ✅ ALWAYS DO
ScrollView for long lists Renders ALL items, memory explodes Use FlatList / FlashList / ListView.builder
Inline renderItem function New function every render, all items re-render useCallback + React.memo
Missing keyExtractor Index-based keys cause bugs on reorder Unique, stable ID from data
Skip getItemLayout Async layout = janky scroll Provide when items have fixed height
setState() everywhere Unnecessary widget rebuilds Targeted state, const constructors
Native driver: false Animations blocked by JS thread useNativeDriver: true always
console.log in production Blocks JS thread severely Remove before release build
Skip React.memo/const Every item re-renders on any change Memoize list items ALWAYS

Touch/UX Sins

❌ NEVER DO Why It's Wrong ✅ ALWAYS DO
Touch target < 44px Impossible to tap accuratel
常见问题

它同时适用于 iOS 和 Android 吗?

是的。它涵盖两个平台,并提醒智能体遵守各自的惯例。

它支持哪些框架?

它面向 React Native、Flutter 和原生移动应用编写。

它包括测试建议吗?

包括。它涵盖移动应用的测试和调试,包括性能。

详情

作者的原始描述

Mobile-first design thinking and decision-making for iOS and Android apps. Touch interaction, performance patterns, platform conventions. Teaches principles, not fixed values. Use when building React Native, Flutter, or native mobile apps.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8698
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能