Skip to content

Add AGENTS.md - #261

Open
huntie wants to merge 1 commit into
react-native-community:mainfrom
huntie:add-agents-md
Open

huntie wants to merge 1 commit into
react-native-community:mainfrom
huntie:add-agents-md

Conversation

@huntie

@huntie huntie commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add an AGENTS.md to new apps, so coding agents get the project commands and avoid the mistakes they commonly make in a Community CLI app. It stays tool-agnostic, per the discussion in #175.

  • Commands to run, test, lint, typecheck and clean the build, and which changes need a native rebuild.
  • Guardrails against reaching for Expo, deprecated APIs and the legacy native module APIs.
  • Built-in Turbo Native Modules and Fabric Native Components as the default for native code.
  • Library guidance: find libraries on React Native Directory, and never downgrade React Native or force past peer dependency conflicts to fit one.

Resolves #175

Changelog:
[General][Added] - Template: AGENTS.md with guidance for coding agents

Test Plan

  • prettier --check template/AGENTS.md passes.
  • Every link in the file resolves.
  • npm run ios installing CocoaPods itself, and start --reset-cache, checked against the Community CLI source and docs.

@huntie huntie changed the title Add AGENTS.md to template Add AGENTS.md Nov 3, 2026
@huntie

huntie commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

@cortinico @cipolleschi Trying my best here to be both minimal + ecosystem agnostic with this first draft. This guidance becomes the default for everyone, so let's review thoroughly!

Comment thread template/AGENTS.md Resolved
@Shreyas-Kumar-S

Copy link
Copy Markdown

The updated commit aligns to what I was trying to convey. Thanks @huntie for this!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a copilot-instructions.md in the template

2 participants