Imported from Phazzie/SkepticalWombatTellsYourTale (
src/app/AGENTS.md). Install upstream withnpx skills add Phazzie/SkepticalWombatTellsYourTale --skill app. Copyright stays with the author.
AGENTS.md (src/app)
This file extends /AGENTS.md. Follow root rules first.
Scope: App Router UI pages, layouts, and route handlers in src/app.
UI guidance
- Keep
page.tsxfiles focused; extract large sections into components undersrc/components. - Prefer shared primitives from
src/components/ui/primitives.tsx. - Keep client components minimal and isolate stateful logic.
- Preserve existing route paths and dynamic param names.
Route handler guidance
- Use
handleRoutefor consistent error handling. - Require auth with
requireUserandensureProjectAccessas appropriate. - Validate inputs via schema/validation helpers.
- Avoid direct Prisma access in route handlers; use services/repositories.