react-native-boilerplate: Instructions file for Codex

AGENTS.md

react-native-boilerplate AGENTS.md is an instructions file for Codex, OpenCode from wataru-maeda/react-native-boilerplate. It costs 1,709 tokens per session, scanned A, original, MIT.

Repository instructions for a React Native mobile app, including its tools, file layout, coding style, screens, navigation, and configuration. React Native is a framework for building mobile apps with JavaScript or TypeScript.

In plain words
What is it for?
Use them when adding or changing screens, components, hooks, styles, navigation, configuration, or other app code in the boilerplate repository.
Why use it?
They give contributors consistent rules for where code belongs, how shared components and types are used, and how to keep secrets out of version control.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is wataru-maeda/react-native-boilerplate's own configuration. It tells Codex and OpenCode how to work on react-native-boilerplate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything react-native-boilerplate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wataru-maeda/react-native-boilerplate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wataru-maeda/react-native-boilerplate/dev/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/wataru-maeda/react-native-boilerplate

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-native-boilerplate AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wataru-maeda/react-native-boilerplate/agents-md/github.svg)](https://agentmods.dev/instructions/wataru-maeda/react-native-boilerplate/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wataru-maeda/react-native-boilerplate/agents-md"><img src="https://agentmods.dev/badge/instructions/wataru-maeda/react-native-boilerplate/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-native-boilerplate AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wataru-maeda/react-native-boilerplate/agents-md"><img src="https://agentmods.dev/badge/instructions/wataru-maeda/react-native-boilerplate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,709 This file is loaded in full into every session.
When invoked 1,709 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01709 $0.01709
Opus 5.5 $0.00684 $0.00684
Sonnet 5.5 $0.00342 $0.00342
Haiku 4.5 $0.00171 $0.00171

Measured 19d ago against content hash a0be53717401, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-native-boilerplate AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Native Boilerplate Rules

See README for setup and structure.

Use Node ≥24 and npm ≥11.

Before Editing

  • Verify rules against code. Correct outdated rules.
  • Use manage-docs before editing README.md, AGENTS.md, or skills in .agents/skills.
  • Keep secrets out of git. Write variable names to .env.*.example only.

Code

  • Reuse existing components, hooks, and utilities.
  • Import with @/, which maps to src/. Keep TypeScript strict.
  • Export props of reusable elements as interface <Component>Props. Import shared types from @/types.
  • Use function declarations for components. Call hooks before early returns.
  • Name components and types in PascalCase. Name utilities in camelCase. Prefix hooks with use.
  • Keep console.log out of production code.

Screens and Styles

  • Put screens in src/scenes/<name>/<Name>.tsx. Keep src/app/ files limited to routing and layouts.
  • Put reusable controls in src/components/elements/. Put navigation and sheet layouts in src/components/layouts/.
  • Give each component its own folder with <Name>.tsx and an index.ts that re-exports it.
  • Use Expo Router for navigation. Use <Redirect> for rendered redirects. Use router.push or router.replace in event handlers.
  • Import navigation helpers such as DrawerActions from expo-router/react-navigation. Import themes from expo-router. Do not add @react-navigation/* packages.
  • Use StyleSheet.create. Read colors, fonts, and images from @/theme.
  • Support dark and light mode with useColorScheme from @/hooks/useColorScheme.
  • Import SafeAreaView from react-native-safe-area-context.

State and Configuration

  • Read app settings from @/utils/config. Do not hardcode environment values.
  • Add a new environment variable in three places: .env.*.example, extra in app.config.ts, and src/utils/config.ts.
  • Treat values in extra as public. They ship inside the app bundle.
  • Read platform and dimensions from @/utils/deviceInfo.
  • Use useAppSlice from @/slices for shared app state. Add new state as a slice in src/slices/ and register it in src/utils/store.ts.
  • Use useDataPersist from @/hooks for local storage. Use useKeyboard from @/hooks for keyboard state.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 129 lines · 1,709 tokens per session scan A a0be53717401

Subscribe to this mod's changes

react-native-boilerplate AGENTS.md is an instructions file published in the GitHub repository wataru-maeda/react-native-boilerplate (524 stars, last pushed 5d ago), licensed MIT. It adds 1,709 tokens to every session, about $0.0068 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

react-native-boilerplate AGENTS.md compared with instructions from other repositories

react-native-boilerplate AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-native-boilerplate AGENTS.mdwataru-maeda/react-native-boilerplateInstructions file5245d agoMITA1,709Codex, OpenCode
mcp-react-native-toolkit copilot-instructions.mdItamiForge/mcp-react-native-toolkitInstructions file02mo agoMITA1,296GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot