Imported from neondatabase/examples (
with-trpc/AGENTS.md). Install upstream withnpx skills add neondatabase/examples --skill with-trpc. Copyright stays with the author.
Neon
By default, when using the Neon CLI, always use the project [PROJECT NAME] (id: [PROJECT ID]).
Mandatory Feature Workflow
For any feature, bug fix, or investigation that may touch app code using the database:
- Before editing application code, create a git feature branch.
- Before querying, migrating, or running database-backed app code, create a Neon branch in project
[PROJECT NAME]([PROJECT ID]). - Set the Neon branch to expire after 7 days unless the user explicitly asks for a longer-lived branch.
- Update local
.env.localsoDATABASE_URLpoints to the new Neon branch. - Apply schema changes only to the Neon feature branch, never production.