Agent instructions
The rootAGENTS.md explains the application architecture and its main coding
conventions. It covers topics such as:
- Admin and customer portal boundaries
- Typed frontend API services and route handlers
- Repository-based Prisma access
- Zod validation and pre-checks
- Serializer and public response types
- Better Auth server API conventions
- React Hook Form and shared UI patterns
AGENTS.md files live inside src/app/ and prisma/. These add
context for application routes and database work. When an agent works in one of
those directories, it should follow both the root instructions and the nearest
more-specific instructions.
Authentication skills
The repository also includes focused agent skills under.agents/skills/ for
authentication and security work.
AGENTS.md conventions still take
precedence when a general example uses a different pattern.
Working with a coding agent
Open the repository in a coding-agent environment that supportsAGENTS.md,
then describe the feature or change you want. The existing instructions help the
agent place code in the expected layer and preserve the application’s trust
boundaries.
If your tool does not discover AGENTS.md automatically, ask it to read the root
file and any scoped file that applies before making changes.
Agent instructions improve consistency, but they do not replace review. Check
the generated changes and run the relevant lint, type, and test commands
before merging them.
Keep instructions current
Treat agent instructions like application documentation. When you introduce a new architectural pattern or replace an existing convention, update the relevantAGENTS.md file at the same time. This keeps future agent work aligned
with the codebase as it evolves.