Back to Mobile Development

Mobile Design System

mobileux-designperformancereact-nativearchitecture
β˜… 4.5 (100)⭐ 40.9kπŸ“„ MITπŸ•’ 2026-06-16Source β†—

Install this skill

npx skills add sickn33/antigravity-awesome-skills

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

What this skill does

  • β€’Enforces a Mobile Feasibility & Risk Index (MFRI) to score architectural complexity
  • β€’Mandates platform-specific validation for iOS, Android, or cross-platform targets
  • β€’Provides deep integration with touch psychology and mobile interaction patterns
  • β€’Strictly forbids performance-draining anti-patterns like unoptimized long lists or heavy inline rendering
  • β€’Requires adherence to offline-first synchronization logic

When to use it

  • βœ“Before initiating the development of any new mobile screen or feature
  • βœ“When refactoring performance-heavy lists or complex state management
  • βœ“When establishing the foundation of a mobile architecture for React Native or Flutter
  • βœ“During the design phase of mobile navigation flows to ensure platform consistency

When not to use it

  • βœ•For standard desktop web application development
  • βœ•When the primary goal is prototyping generic browser-based interfaces without mobile performance requirements

How to invoke it

Example prompts that trigger this skill:

  • β€œAssess the feasibility of this feature using the mobile design system framework”
  • β€œBefore we write any code, run an MFRI score on this navigation flow”
  • β€œReview my component implementation against the touch-psychology and mobile-performance guidelines”
  • β€œCheck these screen requirements for common mobile anti-patterns before generating the scaffold”
  • β€œApply the mobile design system constraints to this login screen implementation”

Example workflow

  1. Invoke the skill to perform an MFRI assessment on a proposed mobile feature
  2. Define platform targets (iOS/Android) and interaction complexity constraints
  3. The agent verifies the proposed stack against mandatory performance checklists
  4. The agent generates component code using memoization and virtualized lists
  5. Final validation check against native-specific platform guidelines

Pitfalls & limitations

  • !The MFRI scoring can be subjective if the agent lacks sufficient context on user requirements
  • !Strict adherence may slow down rapid prototyping cycles
  • !Over-reliance on the library docs without individual critical thought may lead to rigid UI structures

FAQ

Why is the MFRI score mandatory?
It forces the agent to explicitly acknowledge performance risks and offline constraints before generating code, preventing 'desktop-thinking' errors.
Can this skill be used for web apps?
No, it is strictly tailored for mobile environments where memory, battery, and touch interactions are the primary constraints.
Does this replace my own UI design judgment?
No, it acts as a constraint layer to catch common technical anti-patterns, keeping your UI code performance-aligned with native expectations.
What happens if I get a low MFRI score?
The system mandates a redesign or architectural simplification, preventing the implementation of code that is likely to cause performance jank or crashes.

How it compares

Unlike generic prompts that might suggest desktop-centric CSS or heavy DOM structures, this skill enforces mobile-specific technical constraints and mandatory peer-review-style checklists.

Source & trust

⭐ 41k starsπŸ“„ MITπŸ•’ Updated 2026-06-16πŸ›‘ no risky patterns found

From the source: β€œ# Mobile Design System **(Mobile-First Β· Touch-First Β· Platform-Respectful)** > **Philosophy:** Touch-first. Battery-conscious. Platform-respectful. Offline-capable. > **Core Law:** Mobile is NOT a small desktop. > **Operating Rule:** Think constraints first, aesthetics second. This skill exists to …”

View the full SKILL.md source
# Mobile Design System

**(Mobile-First Β· Touch-First Β· Platform-Respectful)**

> **Philosophy:** Touch-first. Battery-conscious. Platform-respectful. Offline-capable.
> **Core Law:** Mobile is NOT a small desktop.
> **Operating Rule:** Think constraints first, aesthetics second.

This skill exists to **prevent desktop-thinking, AI-defaults, and unsafe assumptions** when designing or building mobile applications.

---

## 1. Mobile Feasibility & Risk Index (MFRI)

Before designing or implementing **any mobile feature or screen**, assess feasibility.

### MFRI Dimensions (1–5)

| Dimension                  | Question                                                          |
| -------------------------- | ----------------------------------------------------------------- |
| **Platform Clarity**       | Is the target platform (iOS / Android / both) explicitly defined? |
| **Interaction Complexity** | How complex are gestures, flows, or navigation?                   |
| **Performance Risk**       | Does this involve lists, animations, heavy state, or media?       |
| **Offline Dependence**     | Does the feature break or degrade without network?                |
| **Accessibility Risk**     | Does this impact motor, visual, or cognitive accessibility?       |

### Score Formula

```
MFRI = (Platform Clarity + Accessibility Readiness)
       βˆ’ (Interaction Complexity + Performance Risk + Offline Dependence)
```

**Range:** `-10 β†’ +10`

### Interpretation

| MFRI     | Meaning   | Required Action                       |
| -------- | --------- | ------------------------------------- |
| **6–10** | Safe      | Proceed normally                      |
| **3–5**  | Moderate  | Add performance + UX validation       |
| **0–2**  | Risky     | Simplify interactions or architecture |
| **< 0**  | Dangerous | Redesign before implementation        |

---

## 2. Mandatory Thinking Before Any Work

### β›” STOP: Ask Before Assuming (Required)

If **any of the following are not explicitly stated**, you MUST ask before proceeding:

| Aspect     | Question                                   | Why                                      |
| ---------- | ------------------------------------------ | ---------------------------------------- |
| Platform   | iOS, Android, or both?                     | Affects navigation, gestures, typography |
| Framework  | React Native, Flutter, or native?          | Determines performance and patterns      |
| Navigation | Tabs, stack, drawer?                       | Core UX architecture                     |
| Offline    | Must it work offline?                      | Data & sync strategy                     |
| Devices    | Phone only or tablet too?                  | Layout & density rules                   |
| Audience   | Consumer, enterprise, accessibility needs? | Touch & readability                      |

🚫 **Never default to your favorite stack or pattern.**

---

## 3. Mandatory Reference Reading (Enforced)

### Universal (Always Read First)

| File                          | Purpose                            | Status            |
| ----------------------------- | ---------------------------------- | ----------------- |
| **mobile-design-thinking.md** | Anti-memorization, context-forcing | πŸ”΄ REQUIRED FIRST |
| **touch-psychology.md**       | Fitts’ Law, thumb zones, gestures  | πŸ”΄ REQUIRED       |
| **mobile-performance.md**     | 60fps, memory, battery             | πŸ”΄ REQUIRED       |
| **mobile-backend.md**         | Offline sync, push, APIs           | πŸ”΄ REQUIRED       |
| **mobile-testing.md**         | Device & E2E testing               | πŸ”΄ REQUIRED       |
| **mobile-debugging.md**       | Native vs JS debugging             | πŸ”΄ REQUIRED       |

### Platform-Specific (Conditional)

| Platform       | File                |
| -------------- | ------------------- |
| iOS            | platform-ios.md     |
| Android        | platform-android.md |
| Cross-platform | BOTH above          |

> ❌ If you haven’t read the platform file, you are not allowed to design UI.

---

## 4. AI Mobile Anti-Patterns (Hard Bans)

### 🚫 Performance Sins (Non-Negotiable)

| ❌ Never                   | Why                  | βœ… Always                                |
| ------------------------- | -------------------- | --------------------------------------- |
| ScrollView for long lists | Memory explosion     | FlatList / FlashList / ListView.builder |
| Inline renderItem         | Re-renders all rows  | useCallback + memo                      |
| Index as key              | Reorder bugs         | Stable ID                               |
| JS-thread animations      | Jank                 | Native driver / GPU                     |
| console.log in prod       | JS thread block      | Strip logs                              |
| No memoization            | Battery + perf drain | React.memo / const widgets              |

---

### 🚫 Touch & UX Sins

| ❌ Never               | Why                  | βœ… Always          |
| --------------------- | -------------------- | ----------------- |
| Touch <44–48px        | Miss taps            | Min touch target  |
| Gesture-only action   | Excludes users       | Button fallback   |
| No loading state      | Feels broken         | Explicit feedback |
| No error recovery     | Dead end             | Retry + message   |
| Ignore platform norms | Muscle memory broken | iOS β‰  Android     |

---

### 🚫 Security Sins

| ❌ Never                | Why                | βœ… Always               |
| ---------------------- | ------------------ | ---------------------- |
| Tokens in AsyncStorage | Easily stolen      | SecureStore / Keychain |
| Hardcoded secrets      | Reverse engineered | Env + secure storage   |
| No SSL pinning         | MITM risk          | Cert pinning           |
| Log sensitive data     | PII leakage        | Never log secrets      |

---

## 5. Platform Unification vs Divergence Matrix

```
UNIFY                          DIVERGE
──────────────────────────     ─────────────────────────
Business logic                Navigation behavior
Data models                    Gestures
API contracts                  Icons
Validation                     Typography
Error semantics                Pickers / dialogs
```

### Platform Defaults

| Element   | iOS          | Android        |
| --------- | ------------ | -------------- |
| Font      | SF Pro       | Roboto         |
| Min touch | 44pt         | 48dp           |
| Back      | Edge swipe   | System back    |
| Sheets    | Bottom sheet | Dialog / sheet |
| Icons     | SF Symbols   | Material Icons |

---

## 6. Mobile UX Psychology (Non-Optional)

### Fitts’ Law (Touch Reality)

* Finger β‰  cursor
* Accuracy is low
* Reach matters more than precision

**Rules:**

* Primary CTAs live in **thumb zone**
* Destructive actions pushed away
* No hover assumptions

---

## 7. Performance Doctrine

### React Native (Required Pattern)

```ts
const Row = React.memo(({ item }) => (
  <View><Text>{item.title}</Text></View>
));

const renderItem = useCallback(
  ({ item }) => <Row item={item} />,
  []
);

<FlatList
  data={items}
  renderItem={renderItem}
  keyExtractor={(i) => i.id}
  getItemLayout={(_, i) => ({
    length: ITEM_HEIGHT,
    offset: ITEM_HEIGHT * i,
    index: i,
  })}
/>
```

### Flutter (Required Pattern)

```dart
class Item extends StatelessWidget {
  const Item({super.key});

  @override
  Widget build(BuildContext context) {
    return const Text('Static');
  }
}
```

* `const` everywhere possible
* Targeted rebuilds only

---

## 8. Mandatory Mobile Checkpoint

Before writing **any code**, you must complete this:

```
🧠 MOBILE CHECKPOINT

Platform:     ___________
Framework:    ___________
Files Read:   ___________

3 Principles I Will Apply:
1.
2.
3.

Anti-Patterns I Will Avoid:
1.
2.
```

❌ Cannot complete β†’ go back and read.

---

## 9. Framework Decision Tree (Canonical)

```
Need OTA + web team β†’ React Native + Expo
High-perf UI β†’ Flutter
iOS only β†’ SwiftUI
Android only β†’ Compose
```

No debate without justification.

---

## 10. Release Readiness Checklist

### Before Shipping

* [ ] Touch targets β‰₯ 44–48px
* [ ] Offline handled
* [ ] Secure storage used
* [ ] Lists optimized
* [ ] Logs stripped
* [ ] Tested on low-end devices
* [ ] Accessibility labels present
* [ ] MFRI β‰₯ 3

---

## 11. Related Skills

* **frontend-design** – Visual systems & components
* **frontend-dev-guidelines** – RN/TS architecture
* **backend-dev-guidelines** – Mobile-safe APIs
* **error-tracking** – Crash & performance telemetry

---

> **Final Law:**
> Mobile users are distracted, interrupted, and impatientβ€”often using one hand on a bad network with low battery.
> **Design for that reality, or your app will fail quietly.**

---

## When to Use
This skill is applicable to execute the workflow or actions described in the overview.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Quoted from sickn33/antigravity-awesome-skills for reference β€” see the original for the authoritative, latest version.

πŸ“„ Full skill instructions β€” original source: sickn33/antigravity-awesome-skills
The Mobile Design System skill provides a structured framework for AI agents to build mobile-first applications by enforcing constraints that prevent desktop-oriented coding habits. It acts as an architectural gatekeeper, requiring agents to define platform specifics, offline capabilities, and touch interaction models before generating code. By mandating a Mobile Feasibility & Risk Index (MFRI) check, it ensures performance-critical decisionsβ€”such as scroll list optimization and state managementβ€”are handled with battery and responsiveness in mind. This skill is essential for developers building React Native, Flutter, or native apps who want to avoid common AI pitfalls like performance-heavy animations or incorrect navigation patterns. It forces the AI to acknowledge touch psychology and native platform conventions, resulting in code that is tailored for mobile hardware rather than generic web-view patterns.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/mobile-design/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/sickn33/antigravity-awesome-skills/mobile-design/SKILL.md
  • Cursor: ~/.cursor/skills/sickn33/antigravity-awesome-skills/mobile-design/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/sickn33/antigravity-awesome-skills/mobile-design/SKILL.md

πŸš€ Install with CLI:
npx skills add sickn33/antigravity-awesome-skills

Read the Master Guide: Mastering Agent Skills β†’

Recommended Rules

View more rules β†’

Recommended Workflows

View more workflows β†’

Recommended MCP Servers

View more MCP servers β†’

Take It Further

Maximize your productivity with these powerful resources

πŸ“‹

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
πŸ“–

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid mobile development issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under Mobile Development and is published by sickn33, maintained in sickn33/antigravity-awesome-skills.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.