agentleFS
ww-w-aiww-w-ai/bkit-codex/.agents/skills/mobile-app/SKILL.md

mobile-app

Skill70 starsChanged 9 months agoApache-2.0View on GitHub

Mobile application development guide for React Native, Expo, and Flutter. Covers iOS and Android cross-platform development patterns. Triggers: mobile app, React Native, Flutter, Expo, iOS, Android, cross-platform, 모바일 앱, 리액트 네이티브, 앱 개발, モバイルアプリ, アプリ開発, 移动应用, 手机应用, aplicacion movil, application mobile, mobile App, app mobile Do NOT use for: desktop apps (use $desktop-app), web apps (use $dynamic or $starter).

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No native build setup needed initially

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mobile App Skill

Cross-platform mobile development with React Native or Flutter.

Actions

ActionDescriptionExample
initInitialize mobile project$mobile-app init my-app
guideMobile dev guide$mobile-app guide
helpPlatform-specific help$mobile-app help ios

Framework Comparison

FeatureReact Native (Expo)Flutter
LanguageTypeScript/JavaScriptDart
UINative componentsCustom rendering
Hot ReloadYesYes
Web SupportExpo WebFlutter Web
Package Managernpm/yarnpub
Best ForJS/TS teams, rapid MVPCustom UI, high performance

Recommended: Expo (React Native)

For bkit-codex users, Expo is recommended because:

  • Shares skills with web development (TypeScript, React)
  • Integrates with bkend.ai BaaS
  • Faster development cycle
  • No native build setup needed initially

Project Structure (Expo)

mobile-app/
├── app/                       # Expo Router (file-based routing)
│   ├── (tabs)/               # Tab navigation
│   │   ├── index.tsx         # Home tab
│   │   ├── explore.tsx       # Explore tab
│   │   └── profile.tsx       # Profile tab
│   ├── (auth)/               # Auth screens
│   │   ├── login.tsx
│   │   └── register.tsx
│   ├── _layout.tsx           # Root layout
│   └── +not-found.tsx        # 404 screen
├── components/                # Reusable components
│   ├── ui/                   # Basic UI components
│   └── features/             # Feature components
├── hooks/                     # Custom hooks
│   ├── useAuth.ts
│   └── useColorScheme.ts
├── lib/                       # Utilities
│   ├── api-client.ts         # API client
│   └── storage.ts            # AsyncStorage wrapper
├── stores/                    # State management
│   └── auth-store.ts
├── constants/                 # App constants
│   ├── Colors.ts
│   └── Layout.ts
├── assets/                    # Images, fonts
├── app.json                   # Expo config
├── package.json
└── tsconfig.json

Core Patterns

Navigation (Expo Router)

// app/_layout.tsx
import { Stack } from 'expo-router';

export default function RootLayout() {
  return (
    <Stack>
      <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
      <Stack.Screen name="(auth)" options={{ headerShown: false }} />
    </Stack>
  );
}

// app/(tabs)/_layout.tsx
import { Tabs } from 'expo-router';
import { Home, Search, User } from 'lucide-react-native';

export default function TabLayout() {
  return (
    <Tabs>
      <Tabs.Screen name="index" options={{ title: 'Home', tabBarIcon: ({color}) => <Home color={color} /> }} />
      <Tabs.Screen name="explore" options={{ title: 'Explore', tabBarIcon: ({color}) => <Search color={color} /> }} />
      <Tabs.Screen name="profile" options={{ title: 'Profile', tabBarIcon: ({color}) => <User color={color} /> }} />
    </Tabs>
  );
}

Secure Storage

// lib/storage.ts
import * as SecureStore from 'expo-secure-store';

export const storage = {
  async getToken(): Promise<string | null> {
    return SecureStore.getItemAsync('access_token');
  },
  async setToken(token: string): Promise<void> {
    await SecureStore.setItemAsync('access_token', token);
  },
  async removeToken(): Promise<void> {
    await SecureStore.deleteItemAsync('access_token');
  },
};

Platform-Specific Code

import { Platform, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  container: {
    paddingTop: Platform.OS === 'ios' ? 50 : 30,
    ...Platform.select({
      ios: { shadowColor: '#000', shadowOffset: { width: 0, height: 2 } },
      android: { elevation: 4 },
    }),
  },
});

Pipeline Integration

Mobile apps follow the same 9-phase pipeline with mobile-specific considerations:

  • Phase 3: Include mobile wireframes (320px, 375px, 414px widths)
  • Phase 5: Use React Native component patterns
  • Phase 6: Handle offline state and connectivity
  • Phase 9: App Store / Play Store submission

Build & Distribution

# Development
npx expo start

# Build for iOS
eas build --platform ios

# Build for Android
eas build --platform android

# Submit to stores
eas submit --platform ios
eas submit --platform android

Common Mistakes

MistakeSolution
Ignoring platform differencesTest on both iOS and Android
Large bundle sizeUse lazy loading and code splitting
No offline handlingImplement offline-first data layer
Hardcoded dimensionsUse responsive sizing (Dimensions API)
Missing permissionsRequest permissions gracefully

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.