Stop Your AI Agent Writing 2023 React Native: A CLAUDE.md for Expo + Supabase Apps A developer published a CLAUDE.md project rules file for Expo + Supabase apps that steers AI coding agents away from deprecated React Native patterns such as expo-av, core SafeAreaView, and AsyncStorage token storage. The file specifies npx expo install over npm install, Expo Router with Stack.Protected auth guards, Supabase RLS and generated types, and a pre-completion check running tsc, expo lint, and expo-doctor. Ask an AI coding agent to "add a video player" to your Expo app, and there's a good chance it reaches for expo-av . Ask for a login screen, and it may store the session token in plain AsyncStorage, wrap the screen in SafeAreaView from react-native , and install packages with npm install instead of npx expo install . None of that is the agent being careless. It's the agent averaging over years of tutorials, most of which were written for older versions of React Native and Expo. The fix is cheap: a project rules file. Claude Code reads CLAUDE.md at the start of every session, and other agents read similar files AGENTS.md , Cursor rules . A rules file tells the agent how this project works, so it stops guessing. Here's one built for Expo + Supabase apps, section by section, then the checks that catch what still slips through. expo-image , not Image from react-native " changes the output. Copy this into the root of your project and edit it to match your stack. Project rules Stack - Expo managed workflow, development builds + TypeScript strict - Expo Router for navigation file-based, in /app . Do NOT add React Navigation directly. - Supabase for auth, database, and storage. Client in /lib/supabase.ts. Packages - Install with npx expo install