Goal
Move frontend-specific instructions out of the repository-wide scope and into the frontend application where they belong.
Repository Context
This repository contains a Next.js frontend and an Express API.
platform/
├── AGENTS.md
├── apps/
│ ├── web/
│ │ ├── src/
│ │ └── AGENTS.md
│ └── api/
│ └── src/
└── package.json
Repository-wide rules belong in the root AGENTS.md.
Frontend-specific rules belong in:
apps/web/AGENTS.md
Only the web application uses React Server Components.
Current AGENTS.md
The root AGENTS.md currently contains:
# Project Instructions
## Development
- Use `pnpm` throughout the repository.
- Prefer React Server Components unless client-side state or browser APIs are required.
## Validation
- Run relevant tests for the application or package being changed.
The current apps/web/AGENTS.md contains:
# Web Instructions
- Follow the existing Next.js App Router structure.
Your Task
Move the React Server Component instruction from the root AGENTS.md into apps/web/AGENTS.md.
Keep repository-wide instructions at the root and frontend-specific instructions in the web scope.