All skills
neondatabase avatar

/neon

@b4016a3 official

Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, and the AI Gateway. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASE_URL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.

Use this Skill: https://skilld.dev/gh/neondatabase/agent-skills/neon

This session only. Nothing lands on disk.

referencesparse-env.md

≈352 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Type-safe env vars with parseEnv

@neon/env's parseEnv takes your neon.ts config object and returns a parsed, typed env object, validated against the services you declared. The shape of env follows your config, and missing variables are flagged with clear errors.

npm i @neon/env
import { parseEnv } from "@neon/env";
import config from "./neon";

const env = parseEnv(config);

console.log(env.postgres.databaseUrl);
console.log(env.auth.baseUrl);

By default parseEnv requires every variable your config implies. When one of your apps only uses a subset, for example when you need to read DATABASE_URL but never the unpooled URL, pass an array of env-var keys to require and validate only those. The keys are typesafe: autocomplete only offers variables your config enables, and the returned shape is narrowed to exactly what you selected (so unselected variables are neither enforced nor present).

import { parseEnv } from "@neon/env";
import config from "./neon";

// Only DATABASE_URL is required and returned; DATABASE_URL_UNPOOLED is not enforced.
const { postgres } = parseEnv(config, ["DATABASE_URL"]);
console.log(postgres.databaseUrl);

// Selecting across services — only these keys are validated.
const env = parseEnv(config, ["DATABASE_URL", "NEON_AUTH_BASE_URL"]);
console.log(env.postgres.databaseUrl, env.auth.baseUrl);

Source: SKILL.md on GitHub

No alerts13d3 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    This skill provides a comprehensive toolkit for managing Neon cloud database services, including database provisioning, branching, serverless functions, and AI Gateway integration. It relies on the official Neon CLI and SDK for all operations, ensuring that all downloads and network activities are directed to trusted vendor-controlled domains.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

Signed by skilld at b4016a3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 weeks ago
Other metadata
metadata
{
  "source": "https://github.com/neondatabase/agent-skills/tree/main/skills/neon"
}
  • Auth
  • Backend
  • neon
  • postgres
  • serverless
  • object-storage
  • functions
  • ai-gateway
  • branching

README badge

README badge for neondatabase/agent-skills/neon

Neon is a backend platform bundling Postgres, Auth, Object Storage, Compute Functions, and an AI Gateway that branch together with your project. Use this skill as the entry point for Neon setup, architecture decisions, and routing to specialized skills for Postgres, Functions, Storage, or the AI Gateway. Early access features (Object Storage, Functions, AI Gateway) require a new project in us-east-2 and private beta enrollment.

Generated from the current SKILL.md.

What is Neon and how does it fit into my app architecture?
Neon is a backend platform providing Serverless Postgres, Auth, Object Storage, Compute Functions, and an AI Gateway — all branching together with your project. It is not a full-stack host; you deploy your app to Vercel or Netlify and use Neon services as your backend.
Which Neon services are generally available versus preview?
Postgres and Auth are generally available. Object Storage, Compute Functions, and AI Gateway are in preview and only available on new projects created in the us-east-2 region.
How do I access preview features like Object Storage or Compute Functions?
Preview features require a new project in us-east-2. If you don't have early access, sign up at https://neon.com/blog/were-building-backends#access.
What is the branch-first dev flow and how do I use it?
Run `neonctl link` once per project to connect your workspace, then `neonctl checkout <branch-name>` per feature to create or switch branches with isolated databases. Both commands automatically pull the branch's environment variables into your `.env`.
How do I install or switch between individual Neon skills?
Use `npx skills add neondatabase/agent-skills -s <skill-name>` to install a specific skill like neon-postgres, neon-functions, or neon-ai-gateway. Check the skill index in the SKILL.md to find the right skill for your task.

Generated from the current SKILL.md. These answers refresh after source changes.