All challengesCHALLENGE 09 OF 25

Move Frontend Rules to the Right Scope

Place frontend guidance under the right directory scope.

Intermediate

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.

Code exampleMarkdown
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:

Code exampleMarkdown
apps/web/AGENTS.md

Only the web application uses React Server Components.

Current AGENTS.md

The root AGENTS.md currently contains:

Code exampleMarkdown
# 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:

Code exampleMarkdown
# 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.

YOUR AGENTS.mdEdit the Current AGENTS.md shown in the challenge
AGENTS.mdMarkdown

This challenge contains multiple AGENTS.md files in one editor. Lines beginning with === identify file boundaries. Keep the markers intact and edit instructions within the appropriate file section.

Loading editor…

Sign in to save progress across devices.

Your answer is checked locally against the challenge rules. No AI is used for evaluation.