mobile-development · rohitg00 — скилл для Claude Code
Скилл mobile-development с шаблонами мобильной разработки для React Native и Flutter: от виртуализации списков до типизированной навигации.
Apache-2.0 ★ 2 858 обновлён 2026-05-12
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-codeЧто делает mobile-development
Скилл задаёт для Claude Code правила мобильной вёрстки и архитектуры. Внутри собраны готовые фрагменты кода для React Native и Flutter: списки на FlatList с параметрами пакетирования maxToRenderPerBatch, настройка вложенной навигации в @react-navigation/native-stack и @react-navigation/bottom-tabs, а также адаптивные сетки через useWindowDimensions.
В инструкциях зафиксирован список антипаттернов. Скилл запрещает рендерить списки через ScrollView с методом .map(), требует выносить оформление в StyleSheet.create вместо инлайновых стилей и напоминает выносить тяжёлые вычисления из потока JS через InteractionManager.
Для платформ iOS и Android прописано разделение стилей через Platform.select (тени против elevation) и обязательный отступ под вырезы экранов с помощью SafeAreaView.
Какие задачи решает
- настроить типизированную навигацию со стеками и табами в React Native
- оптимизировать рендеринг длинных списков через FlatList
- адаптировать интерфейс под экраны телефонов и планшетов
- разделить стили теней под iOS и Android через Platform.select
Примеры запросов агенту
- Напиши компонент каталога товаров на React Native с виртуализацией списка через FlatList
- Собери структуру навигации с табами и модальным экраном корзины на React Navigation
- Создай карточку товара на Flutter с обработкой ошибок загрузки картинки
Как установить mobile-development
1Через Skills CLI (Vercel)
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-code2Вручную: положить файлы
~/.claude/skills/mobile-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/mobile-development/
1Через Skills CLI (Vercel)
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a codex2Вручную: положить файлы
.agents/skills/mobile-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a cursor2Вручную: положить файлы
.cursor/skills/mobile-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rohitg00/awesome-claude-code-toolkit skills/mobile-development2Вручную: положить файлы
.github/skills/mobile-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/rohitg00/awesome-claude-code-toolkit --path skills/mobile-developmentВручную: положить файлы
.devin/skills/mobile-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о mobile-development
Как установить mobile-development в Claude Code?
Выполните команду npx skills add rohitg00/awesome-claude-code-toolkit --skill mobile-development -a claude-code в терминале или сохраните файл по пути ~/.claude/skills/mobile-development/SKILL.md.
Что делает скилл mobile-development?
Он направляет Claude Code при генерации кода под React Native и Flutter, заставляя следовать проверенным паттернам адаптивности, типизации маршрутов и оптимизации списков.
Какие антипаттерны отслеживает этот скилл?
Скилл предостерегает от использования ScrollView с методом .map() для списков данных, запрещает инлайновые стили при каждом рендере и требует разгружать поток JS с помощью InteractionManager.
Исходный текст
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
Похожие скиллы
Все скиллы по теме «Мобильная разработка» →Сначала — mobile-development от других авторов.