AGENTS.md Pattern for React Native: Claude Code Generates Better Project-Aware Code

A Reddit user, julia_ships, has been experimenting with an AGENTS.md file for React Native/Expo projects. The file acts as a structured document that tells AI coding agents like Claude Code and Cursor about project-specific conventions. The difference is significant — before using the file, Claude generated generic React Native code; after, it generates components using the project's exact theme tokens, hooks, and patterns.
What Goes Into the AGENTS.md File
The user includes the following sections in their AGENTS.md:
- Folder structure and file naming conventions — e.g., where components live, how files are named (PascalCase, kebab-case, etc.)
- Theme system and color tokens — exact token names and how to apply them
- Custom hooks and their usage patterns — how to import and use project-specific hooks
- Component patterns — functional components with typed props (TypeScript), structure, and export style
Results
With the AGENTS.md in place, Claude Code produces code that matches the project's conventions on the first try. For example, it uses the correct theme colors.primary instead of hardcoded '#6200ee', imports custom hooks like useAuth() instead of writing inline logic, and follows the established component pattern (functional, typed props, proper export).
Who It's For
React Native / Expo developers using Claude Code, Cursor, or similar AI coding agents who want to reduce manual code review and force the AI to respect project conventions.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw AGENTS.md template for automated sales call prep
A Reddit user shares an AGENTS.md instruction for OpenClaw that automates lead research before sales calls, investigating company details and pain points to send a briefing 10 minutes before meetings.

Claude users report faster sessions by requesting markdown instead of Word documents
A Claude user discovered that asking for markdown instead of Word documents significantly reduces response time and token usage. The AI natively outputs markdown, while generating .docx files requires spinning up a Python environment and running conversion scripts.

Using Project Narratives to Maintain OpenClaw Context on Long-Term Projects
A developer shares a technique for creating 'project narratives' where a separate OpenClaw worker analyzes the codebase after milestones to document system understanding, identify issues, and maintain context.

Five Common OpenClaw Setup Mistakes That Waste Money and Create Security Risks
Based on reviewing 50+ OpenClaw setups, the same five issues appear repeatedly: using Opus as the default model instead of Sonnet for most tasks, never starting fresh sessions, installing skills without reading source code, exposing the gateway to the network, and adding a second agent before fixing the first.