[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-neon-postgres-best-practices":3,"mdc-h38c49-key":36,"related-org-neon-postgres-best-practices":118,"related-repo-neon-postgres-best-practices":299},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":34,"mdContent":35},"postgres-best-practices","design and tune Postgres schemas","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"neon","Neon","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fneon.png","neondatabase",[13,17,20,23],{"name":14,"slug":15,"type":16},"Performance","performance","tag",{"name":18,"slug":19,"type":16},"Database","database",{"name":21,"slug":22,"type":16},"PostgreSQL","postgresql",{"name":24,"slug":25,"type":16},"SQL","sql",21,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpostgres-skills","2026-04-06T18:39:08.125109",null,5,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":29},[],"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpostgres-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fpostgres-best-practices","---\nname: postgres-best-practices\ndescription: Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.\n---\n\n# Postgres Best Practices\n\nGuidelines and best practices for working with Postgres, covering schema design, indexing, query optimization, and common pitfalls.\n\n## References\n\n| Area           | Resource                          | When to Use                                      |\n| -------------- | --------------------------------- | ------------------------------------------------ |\n| Schema Design  | `references\u002Fschema-design.md`     | Designing tables, choosing data types, normalizing |\n",{"data":37,"body":38},{"name":4,"description":6},{"type":39,"children":40},"root",[41,49,55,62],{"type":42,"tag":43,"props":44,"children":45},"element","h1",{"id":4},[46],{"type":47,"value":48},"text","Postgres Best Practices",{"type":42,"tag":50,"props":51,"children":52},"p",{},[53],{"type":47,"value":54},"Guidelines and best practices for working with Postgres, covering schema design, indexing, query optimization, and common pitfalls.",{"type":42,"tag":56,"props":57,"children":59},"h2",{"id":58},"references",[60],{"type":47,"value":61},"References",{"type":42,"tag":63,"props":64,"children":65},"table",{},[66,90],{"type":42,"tag":67,"props":68,"children":69},"thead",{},[70],{"type":42,"tag":71,"props":72,"children":73},"tr",{},[74,80,85],{"type":42,"tag":75,"props":76,"children":77},"th",{},[78],{"type":47,"value":79},"Area",{"type":42,"tag":75,"props":81,"children":82},{},[83],{"type":47,"value":84},"Resource",{"type":42,"tag":75,"props":86,"children":87},{},[88],{"type":47,"value":89},"When to Use",{"type":42,"tag":91,"props":92,"children":93},"tbody",{},[94],{"type":42,"tag":71,"props":95,"children":96},{},[97,103,113],{"type":42,"tag":98,"props":99,"children":100},"td",{},[101],{"type":47,"value":102},"Schema Design",{"type":42,"tag":98,"props":104,"children":105},{},[106],{"type":42,"tag":107,"props":108,"children":110},"code",{"className":109},[],[111],{"type":47,"value":112},"references\u002Fschema-design.md",{"type":42,"tag":98,"props":114,"children":115},{},[116],{"type":47,"value":117},"Designing tables, choosing data types, normalizing",{"items":119,"total":298},[120,135,149,161,177,190,204,219,231,250,268,285],{"slug":121,"name":121,"fn":122,"description":123,"org":124,"tags":125,"stars":132,"repoUrl":133,"updatedAt":134},"neon-postgres","build apps with Neon serverless Postgres","Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods and drivers, pooled vs direct connections, branching, autoscaling, scale-to-zero, instant restore, read replicas, connection pooling, IP allow lists, and logical replication. Use when users ask about \"Neon setup\", \"connect to Neon\", \"Neon project\", \"DATABASE_URL\", \"serverless Postgres\", \"Neon CLI\", \"neon\", \"Neon MCP\", \"Neon Auth\", \"@neondatabase\u002Fserverless\", \"@neondatabase\u002Fneon-js\", \"scale to zero\", \"Neon autoscaling\", \"Neon read replica\", or \"Neon connection pooling\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[126,127,128,129],{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":21,"slug":22,"type":16},{"name":130,"slug":131,"type":16},"Serverless","serverless",321,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fwebsite","2026-07-27T06:08:14.168734",{"slug":136,"name":136,"fn":137,"description":138,"org":139,"tags":140,"stars":146,"repoUrl":147,"updatedAt":148},"add-neon-docs","add Neon docs to project AI docs","Use this skill when the user asks to add documentation, add docs, add references, or install documentation about Neon. Adds Neon best practices reference links to project AI documentation (CLAUDE.md, AGENTS.md, or Cursor rules). Does not install packages or modify code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[141,142,145],{"name":18,"slug":19,"type":16},{"name":143,"slug":144,"type":16},"Documentation","documentation",{"name":9,"slug":8,"type":16},86,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fai-rules","2026-04-06T18:38:53.722898",{"slug":150,"name":150,"fn":151,"description":152,"org":153,"tags":154,"stars":146,"repoUrl":147,"updatedAt":160},"neon-auth","set up Neon Auth for apps","Sets up Neon Auth for your application. Configures authentication, creates auth routes, and generates UI components. Use when adding authentication to Next.js, React SPA, or Node.js projects.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[155,158,159],{"name":156,"slug":157,"type":16},"Auth","auth",{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},"2026-04-06T18:38:52.386193",{"slug":162,"name":162,"fn":163,"description":164,"org":165,"tags":166,"stars":146,"repoUrl":147,"updatedAt":176},"neon-drizzle","set up Drizzle ORM with Neon","Creates a fully functional Drizzle ORM setup with a provisioned Neon database. Installs dependencies, provisions database credentials, configures connections, generates schemas, and runs migrations. Results in working code that can immediately connect to and query the database. Use when creating new projects with Drizzle, adding ORM to existing applications, or modifying database schemas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[167,168,171,172,175],{"name":18,"slug":19,"type":16},{"name":169,"slug":170,"type":16},"Drizzle","drizzle",{"name":9,"slug":8,"type":16},{"name":173,"slug":174,"type":16},"ORM","orm",{"name":21,"slug":22,"type":16},"2026-04-06T18:38:56.217495",{"slug":178,"name":178,"fn":179,"description":180,"org":181,"tags":182,"stars":146,"repoUrl":147,"updatedAt":189},"neon-js","set up the Neon JS SDK for auth and queries","Sets up the full Neon JS SDK with unified auth and PostgREST-style database queries. Configures auth client, data client, and type generation. Use when building apps that need both authentication and database access in one SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[183,184,185,186],{"name":156,"slug":157,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":187,"slug":188,"type":16},"TypeScript","typescript","2026-04-06T18:38:51.116041",{"slug":191,"name":191,"fn":192,"description":193,"org":194,"tags":195,"stars":146,"repoUrl":147,"updatedAt":203},"neon-serverless","configure Neon serverless driver","Configures Neon Serverless Driver for Next.js, Vercel Edge Functions, AWS Lambda, and other serverless environments. Installs @neondatabase\u002Fserverless, sets up environment variables, and creates working API route examples with TypeScript types. Use when users need to connect their application to Neon, fetch or query data from a Neon database, integrate Neon with Next.js or serverless frameworks, or set up database access in edge\u002Fserverless environments where traditional PostgreSQL clients don't work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[196,197,200,201,202],{"name":18,"slug":19,"type":16},{"name":198,"slug":199,"type":16},"Edge Functions","edge-functions",{"name":9,"slug":8,"type":16},{"name":21,"slug":22,"type":16},{"name":130,"slug":131,"type":16},"2026-04-06T18:38:54.97085",{"slug":205,"name":205,"fn":206,"description":207,"org":208,"tags":209,"stars":146,"repoUrl":147,"updatedAt":218},"neon-toolkit","create ephemeral Neon databases for testing","Creates and manages ephemeral Neon databases for testing, CI\u002FCD pipelines, and isolated development environments. Use when building temporary databases for automated tests or rapid prototyping.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[210,213,214,215],{"name":211,"slug":212,"type":16},"CI\u002FCD","cicd",{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":216,"slug":217,"type":16},"Testing","testing","2026-04-06T18:38:57.490782",{"slug":220,"name":220,"fn":221,"description":222,"org":223,"tags":224,"stars":228,"repoUrl":229,"updatedAt":230},"claimable-postgres","provision temporary Postgres databases","Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping\u002Ftests, or \"just give me a DB now\". Triggers include: \"quick postgres\", \"temporary postgres\", \"no signup database\", \"no credit card database\", \"instant DATABASE_URL\", \"npx neon-new\", \"neon.new\", \"neon.new API\", \"claimable postgres API\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[225,226,227],{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":21,"slug":22,"type":16},81,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills","2026-07-27T06:07:56.160588",{"slug":8,"name":8,"fn":232,"description":233,"org":234,"tags":235,"stars":228,"repoUrl":229,"updatedAt":249},"build applications on the Neon platform","Overview of the Neon platform for apps and agents, spanning Postgres, Auth, the Data API, Object Storage, Compute Functions, and the AI Gateway. Start here to route to the right Neon skill, set up the CLI or MCP server, and follow the branch-first workflow. Use when \"Neon\" is mentioned, or when any of its individual capabilities are the trigger: \"object storage\" or \"S3\", \"buckets\", \"serverless functions\", \"AI gateway\", \"call an LLM\", \"postgres\", \"database\", or \"backend\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[236,239,242,243,244,245,246],{"name":237,"slug":238,"type":16},"AI Infrastructure","ai-infrastructure",{"name":240,"slug":241,"type":16},"Authentication","authentication",{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":21,"slug":22,"type":16},{"name":130,"slug":131,"type":16},{"name":247,"slug":248,"type":16},"Storage","storage","2026-07-27T06:08:01.383115",{"slug":251,"name":251,"fn":252,"description":253,"org":254,"tags":255,"stars":228,"repoUrl":229,"updatedAt":267},"neon-ai-gateway","call LLMs via Neon AI Gateway","One API and one credential for frontier and open-source LLMs, built into your Neon branch and powered by Databricks. Use when a user wants to call an LLM, add AI\u002Fchat\u002Fan agent to their app, route between model providers (OpenAI, Anthropic, Google\u002FGemini, Meta, Alibaba, DeepSeek), or avoid juggling separate provider API keys and accounts — especially when they already use Neon and want AI requests to branch with their project. Works with the OpenAI SDK, Anthropic SDK, google-genai, the Vercel AI SDK, and Mastra by changing only the base URL. Triggers include \"call an LLM\", \"add AI to my app\", \"chat completion\", \"model routing\", \"LLM proxy\u002Fgateway\", \"one API for all models\", \"use Claude\u002FGPT\u002FGemini\", \"AI SDK\", \"Mastra agent\", \"Neon AI Gateway\", and \"log\u002Frate-limit AI calls\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[256,257,260,263,266],{"name":237,"slug":238,"type":16},{"name":258,"slug":259,"type":16},"API Development","api-development",{"name":261,"slug":262,"type":16},"Databricks","databricks",{"name":264,"slug":265,"type":16},"LLM","llm",{"name":9,"slug":8,"type":16},"2026-07-27T06:08:00.288175",{"slug":269,"name":269,"fn":270,"description":271,"org":272,"tags":273,"stars":228,"repoUrl":229,"updatedAt":284},"neon-functions","deploy serverless functions on Neon","Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASE_URL injected automatically and compute that runs next to your data. Use when a user wants to host an API, an AI agent with long streaming responses, a WebSocket or server-sent-events (SSE) server, a webhook handler, a Discord bot, an MCP server, or any request\u002Fresponse workload that risks timing out on short, lambda-style serverless functions — and wants it to branch with their database. Triggers include \"serverless function\", \"deploy an API\", \"long-running function\", \"streaming agent\", \"SSE server\", \"WebSocket server\", \"webhook handler\", \"MCP server\", \"run code next to my database\", \"function that won't time out\", \"Neon Functions\", and \"Neon Compute\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[274,275,278,279,280,283],{"name":258,"slug":259,"type":16},{"name":276,"slug":277,"type":16},"Backend","backend",{"name":198,"slug":199,"type":16},{"name":9,"slug":8,"type":16},{"name":281,"slug":282,"type":16},"Node.js","node-js",{"name":130,"slug":131,"type":16},"2026-07-27T06:07:59.147675",{"slug":286,"name":286,"fn":287,"description":288,"org":289,"tags":290,"stars":228,"repoUrl":229,"updatedAt":297},"neon-object-storage","manage Neon object storage","S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch. Use when a user wants object storage, a bucket, blob\u002Ffile storage, or somewhere to put uploads, images, documents, avatars, or user-generated files for their app or agent — especially when they already use (or are setting up) Neon Postgres and don't want to add a separate storage provider like AWS S3, Cloudflare R2, or Supabase Storage. Triggers include \"object storage\", \"bucket\", \"blob storage\", \"file storage\", \"store uploads\u002Fimages\u002Ffiles\", \"S3-compatible storage\", \"presigned URL\", \"where do I put files\", \"Neon Object Storage\", \"Neon Storage\", and \"storage that branches with my database\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[291,292,295,296],{"name":18,"slug":19,"type":16},{"name":293,"slug":294,"type":16},"File Storage","file-storage",{"name":9,"slug":8,"type":16},{"name":247,"slug":248,"type":16},"2026-07-27T06:07:57.150892",19,{"items":300,"total":308},[301],{"slug":4,"name":4,"fn":5,"description":6,"org":302,"tags":303,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[304,305,306,307],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":21,"slug":22,"type":16},{"name":24,"slug":25,"type":16},1]