react-native-architecture — скилл для React Native на Expo
Скилл для Claude Code, Codex и Cursor: подсказывает структуру проекта, навигацию, нативные модули и офлайн-синхронизацию в React Native на Expo.
/plugin marketplace add wshobson/agents
/plugin install frontend-mobile-development@claude-code-workflowsЧто делает react-native-architecture
Скилл кладёт в контекст агента готовые шаблоны для мобильной разработки на React Native. Автор — Seth Hobson, репозиторий wshobson/agents, лицензия MIT.
Внутри — структура каталогов src/ с группами маршрутов Expo Router: (auth), (tabs), корневой _layout.tsx. Есть таблица сравнения Expo и голого React Native по сложности настройки, нативным модулям, OTA-обновлениям и сборке. Отдельно — быстрый старт: создание проекта через create-expo-app, установка expo-router, expo-secure-store, expo-haptics, @react-native-async-storage/async-storage.
Дальше идут правила. Использовать Expo, FlashList вместо FlatList, мемоизацию компонентов, Reanimated для анимаций, тесты на реальных устройствах. Не писать стили инлайном, не тянуть данные в рендере, не хранить секреты в коде, не пропускать error boundaries.
Развёрнутые примеры лежат в references/details.md — файл читается, когда базовых шаблонов не хватает. Для проекта на Expo Router это экономит время на старте. Если у вас голый React Native без Expo, польза меньше: половина советов про EAS Build и config plugins мимо.
Какие задачи решает
- Новый проект на React Native или Expo — нужна раскладка каталогов и настройка маршрутов
- Сложная навигация: группы маршрутов, табы, модальные окна
- Подключение нативных модулей и API платформы
- Офлайн-первый сценарий с синхронизацией данных
- Просадки производительности на длинных списках и анимациях
Примеры запросов агенту
- Поставьте скилл через маркетплейс плагинов или `npx skills add`
- Опишите агенту задачу: структура проекта, навигация, нативный модуль, офлайн-синк
- Для нестандартных случаев попросите открыть `references/details.md`
Как установить react-native-architecture
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install frontend-mobile-development@claude-code-workflows2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill react-native-architecture -a claude-code3Вручную: положить файлы
~/.claude/skills/react-native-architecture/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/react-native-architecture/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill react-native-architecture -a codex2Вручную: положить файлы
.agents/skills/react-native-architecture/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill react-native-architecture -a cursor2Вручную: положить файлы
.cursor/skills/react-native-architecture/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents react-native-architecture2Вручную: положить файлы
.github/skills/react-native-architecture/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/frontend-mobile-development/skills/react-native-architectureВручную: положить файлы
.devin/skills/react-native-architecture/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о react-native-architecture
Что делает скилл react-native-architecture?
Даёт агенту шаблоны для React Native на Expo: структура src/, маршруты Expo Router, сравнение Expo и голого RN, правила по спискам, анимациям и обработке ошибок.
Как установить react-native-architecture в Claude Code?
Через маркетплейс: /plugin marketplace add wshobson/agents, затем /plugin install frontend-mobile-development@claude-code-workflows. Либо npx skills add wshobson/agents --skill react-native-architecture -a claude-code.
Работает ли скилл в Cursor и Codex?
Да. Для Cursor — npx skills add wshobson/agents --skill react-native-architecture -a cursor, файл окажется в .cursor/skills/react-native-architecture/SKILL.md. Для Codex — тот же npx skills add с флагом -a codex.
Подойдёт ли скилл проекту без Expo?
Частично. Советы про EAS Build, config plugins и OTA-обновления рассчитаны на Expo. Общие правила по спискам, мемоизации и error boundaries пригодятся и в голом React Native.
Исходный текст
SKILL.md · MIT
---
name: react-native-architecture
description: Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.
---
# React Native Architecture
Production-ready patterns for React Native development with Expo, including navigation, state management, native modules, and offline-first architecture.
## When to Use This Skill
- Starting a new React Native or Expo project
- Implementing complex navigation patterns
- Integrating native modules and platform APIs
- Building offline-first mobile applications
- Optimizing React Native performance
- Setting up CI/CD for mobile releases
## Core Concepts
### 1. Project Structure
```
src/
├── app/ # Expo Router screens
│ ├── (auth)/ # Auth group
│ ├── (tabs)/ # Tab navigation
│ └── _layout.tsx # Root layout
├── components/
│ ├── ui/ # Reusable UI components
│ └── features/ # Feature-specific components
├── hooks/ # Custom hooks
├── services/ # API and native services
├── stores/ # State management
├── utils/ # Utilities
└── types/ # TypeScript types
```
### 2. Expo vs Bare React Native
| Feature | Expo | Bare RN |
| ------------------ | -------------- | -------------- |
| Setup complexity | Low | High |
| Native modules | EAS Build | Manual linking |
| OTA updates | Built-in | Manual setup |
| Build service | EAS | Custom CI |
| Custom native code | Config plugins | Direct access |
## Quick Start
```bash
# Create new Expo project
npx create-expo-app@latest my-app -t expo-template-blank-typescript
# Install essential dependencies
npx expo install expo-router expo-status-bar react-native-safe-area-context
npx expo install @react-native-async-storage/async-storage
npx expo install expo-secure-store expo-haptics
```
```typescript
// app/_layout.tsx
import { Stack } from 'expo-router'
import { ThemeProvider } from '@/providers/ThemeProvider'
import { QueryProvider } from '@/providers/QueryProvider'
export default function RootLayout() {
return (
<QueryProvider>
<ThemeProvider>
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" />
<Stack.Screen name="(auth)" />
<Stack.Screen name="modal" options={{ presentation: 'modal' }} />
</Stack>
</ThemeProvider>
</QueryProvider>
)
}
```
## Detailed patterns and worked examples
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
## Best Practices
### Do's
- **Use Expo** - Faster development, OTA updates, managed native code
- **FlashList over FlatList** - Better performance for long lists
- **Memoize components** - Prevent unnecessary re-renders
- **Use Reanimated** - 60fps animations on native thread
- **Test on real devices** - Simulators miss real-world issues
### Don'ts
- **Don't inline styles** - Use StyleSheet.create for performance
- **Don't fetch in render** - Use useEffect or React Query
- **Don't ignore platform differences** - Test on both iOS and Android
- **Don't store secrets in code** - Use environment variables
- **Don't skip error boundaries** - Mobile crashes are unforgiving
© Seth Hobson · MIT · wshobson/agents