Skip to main content
skill CX Codex

mobile-development · rohitg00 — Claude Code skill: what it does, how to install

Mobile development guidelines for React Native and Flutter covering navigation, responsive layouts, and list performance.

Apache-2.0 ★ 2,858 updated 2026-05-12

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-code
Open on GitHub

What mobile-development does

This skill equips Claude Code with production patterns for mobile apps. It contains reference implementations for React Native and Flutter: virtualized lists via FlatList with tuning props like windowSize, typed routing using React Navigation stacks and bottom tabs, and responsive grid layouts driven by useWindowDimensions.

The guide explicitly flags common anti-patterns. It instructs the assistant to avoid ScrollView with .map() for dynamic data, prevent inline style allocations by demanding StyleSheet.create, and prevent UI freezes by deferring expensive computations with InteractionManager.

Platform-specific distinctions are strictly enforced, including split shadow configurations with Platform.select (shadowOffset for iOS vs elevation for Android) and mandatory safe area insets using SafeAreaView.

What it helps with

  • configure typed stack and tab navigation in React Navigation
  • virtualize large scrollable datasets with FlatList
  • build responsive layouts for phones and tablets
  • handle platform differences like shadows and notch insets

Example prompts for the agent

  • Build an e-commerce product list in React Native using FlatList with batch rendering props
  • Set up nested stack and tab navigation with TypeScript route types
  • Create a Flutter product card widget with network image fallbacks

How to install mobile-development

1Skills CLI (Vercel)

npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-code

2Manually: put the files in place

~/.claude/skills/mobile-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mobile-development/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mobile-development

How to install mobile-development in Claude Code?

Run npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-code or save the rule file directly to ~/.claude/skills/mobile-development/SKILL.md.

What does mobile-development do?

It guides Claude Code to output standardized React Native and Flutter code, focusing on safe areas, typed routes, responsive columns, and scroll performance.

Which mobile anti-patterns does this skill prevent?

It forbids inline styles on render, stops dynamic mapping inside ScrollView, mandates SafeAreaView, and offloads heavy background logic with InteractionManager.

Source text

SKILL.md · Apache-2.0
---
name: mobile-development
description: Mobile development patterns for React Native and Flutter including navigation, state management, and responsive design
---

# Mobile Development

## React Native Component Structure

```tsx
import { View, Text, FlatList, StyleSheet, Platform } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";

interface Product {
  id: string;
  name: string;
  price: number;
  image: string;
}

function ProductList({ products }: { products: Product[] }) {
  return (
    <SafeAreaView style={styles.container}>
      <FlatList
        data={products}
        keyExtractor={(item) => item.id}
        renderItem={({ item }) => <ProductCard product={item} />}
        contentContainerStyle={styles.list}
        ItemSeparatorComponent={() => <View style={styles.separator} />}
        ListEmptyComponent={<EmptyState message="No products found" />}
        initialNumToRender={10}
        maxToRenderPerBatch={10}
        windowSize={5}
      />
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
  },
  list: {
    padding: 16,
  },
  separator: {
    height: 12,
  },
});
```

Use `FlatList` for scrollable lists (never `ScrollView` with `.map()`). Set `windowSize` and `maxToRenderPerBatch` for large lists.

## React Native Navigation

```tsx
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";

type RootStackParams = {
  Tabs: undefined;
  ProductDetail: { productId: string };
  Cart: undefined;
};

const Stack = createNativeStackNavigator<RootStackParams>();
const Tab = createBottomTabNavigator();

function TabNavigator() {
  return (
    <Tab.Navigator screenOptions={{ headerShown: false }}>
      <Tab.Screen name="Home" component={HomeScreen} />
      <Tab.Screen name="Search" component={SearchScreen} />
      <Tab.Screen name="Profile" component={ProfileScreen} />
    </Tab.Navigator>
  );
}

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="Tabs" component={TabNavigator} options={{ headerShown: false }} />
        <Stack.Screen name="ProductDetail" component={ProductDetailScreen} />
        <Stack.Screen name="Cart" component={CartScreen} options={{ presentation: "modal" }} />
      </Stack.Navigator>
    </NavigationContainer>
  );
}
```

## Flutter Widget Pattern

```dart
class ProductCard extends StatelessWidget {
  final Product product;
  final VoidCallback onTap;

  const ProductCard({
    super.key,
    required this.product,
    required this.onTap,
  });

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      child: Card(
        elevation: 2,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            ClipRRect(
              borderRadius: const BorderRadius.vertical(top: Radius.circular(8)),
              child: Image.network(
                product.imageUrl,
                height: 200,
                width: double.infinity,
                fit: BoxFit.cover,
                errorBuilder: (_, __, ___) => const Icon(Icons.broken_image, size: 64),
              ),
            ),
            Padding(
              padding: const EdgeInsets.all(12),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(product.name, style: Theme.of(context).textTheme.titleMedium),
                  const SizedBox(height: 4),
                  Text("\$${product.price.toStringAsFixed(2)}",
                      style: Theme.of(context).textTheme.bodyLarge),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
```

## Responsive Layout

```tsx
import { useWindowDimensions } from "react-native";

function useResponsive() {
  const { width } = useWindowDimensions();
  return {
    isPhone: width < 768,
    isTablet: width >= 768 && width < 1024,
    isDesktop: width >= 1024,
    columns: width < 768 ? 1 : width < 1024 ? 2 : 3,
  };
}

function ProductGrid({ products }: { products: Product[] }) {
  const { columns } = useResponsive();

  return (
    <FlatList
      data={products}
      numColumns={columns}
      key={columns}
      keyExtractor={(item) => item.id}
      renderItem={({ item }) => (
        <View style={{ flex: 1, maxWidth: `${100 / columns}%`, padding: 8 }}>
          <ProductCard product={item} />
        </View>
      )}
    />
  );
}
```

## Platform-Specific Code

```tsx
import { Platform } from "react-native";

const styles = StyleSheet.create({
  shadow: Platform.select({
    ios: {
      shadowColor: "#000",
      shadowOffset: { width: 0, height: 2 },
      shadowOpacity: 0.1,
      shadowRadius: 4,
    },
    android: {
      elevation: 4,
    },
    default: {},
  }),
});
```

## Anti-Patterns

- Using `ScrollView` with `.map()` for dynamic lists (use `FlatList` or `SectionList`)
- Storing all state in a global store instead of colocating with components
- Not handling safe areas (notch, status bar, home indicator)
- Inline styles on every render (define with `StyleSheet.create`)
- Blocking the JS thread with heavy computation (use `InteractionManager`)
- Ignoring platform-specific UX conventions (iOS back swipe, Android back button)

## Checklist

- [ ] `FlatList` used for all scrollable lists with `keyExtractor`
- [ ] Navigation typed with TypeScript route params
- [ ] Safe area insets handled with `SafeAreaView`
- [ ] Styles defined with `StyleSheet.create` (not inline objects)
- [ ] Responsive layouts adapt to phone, tablet, and desktop
- [ ] Platform-specific styles handled with `Platform.select`
- [ ] Images cached and loaded with error/loading states
- [ ] Heavy computation offloaded from the JS thread

© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit

Similar skills

All skills for Mobile →

mobile-development by other authors comes first.

From the same set178

The whole set →
robotics-engineer robotics-engineer — a subagent that builds autonomous robots with ROS2: sensor drivers, perception, SLAM localization, motion planning, and real-time control loops. CX Codex ★ 2,858repo stars multi-agent-coordinator multi-agent-coordinator decomposes complex tasks into parallel branches, resolves dependencies, and merges outputs from multiple agents into coherent deliverables. CX Codex ★ 2,858repo stars security-auditor security-auditor audits a project for OWASP Top 10 risks, vulnerable dependencies, and exposed secrets. Use it to review code and get actionable remediation notes. CX Codex ★ 2,858repo stars voice-assistant voice-assistant is a Claude Code subagent for building voice interfaces with speech recognition, synthesis, dialog management, and Alexa and Google Assistant integration for apps with spoken input. CX Codex ★ 2,858repo stars education-tech The education-tech subagent helps build learning platforms with SCORM, xAPI, LTI, adaptive paths, assessments, and learner analytics. Use it for LMS design and implementation work. CX Codex ★ 2,858repo stars growth-engineer growth-engineer — a subagent for building analytics infrastructure: A/B testing with deterministic user assignment, funnel tracking, sample size calculation, and experiment monitoring with real-time guardrail checks. CX Codex ★ 2,858repo stars security-hardening security-hardening is a Claude Code skill for application security, covering input handling, authentication, secrets, and dependency checks. It applies to requests to review or strengthen a project’s security. CX Codex +1 ★ 2,858repo stars customer-success customer-success — a subagent for designing support systems: ticket triage, knowledge bases, workflow automation, and customer health scoring. CX Codex ★ 2,858repo stars

Project sponsors

Companies that keep this analytics open