Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions content/docs/ai/agent-skills-neon-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this correctly, these ai/agent-skills-* files would be indexes for a given topic from which the agent can then go deeper by following the references listed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, although this is a good question. Honestly, it's repurposing the existing rules pages (rename->update) so is limited in nature (only 6) for this initial conversion.

Upon reimagining, let's discuss soon about how agent skills can integrate more closely (and become) the documentation.

title: 'Agent Skills: Neon API'
subtitle: Context and guidance for AI tools to use the Neon API
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-api
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add that we have an agent experience channel for this!

</Admonition>

<InfoBlock>
<DocsList title="Related docs" theme="docs">
<a href="/docs/reference/api-reference">Neon API Reference</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/tree/main/skills/neon-postgres/references/neon-rest-api">View API references</a>
</DocsList>
</InfoBlock>

## What's covered

- REST API guidelines, authentication, and rate limiting
- Core concepts (Organization, Project, Branch, Endpoint, Database, Role)
- Managing projects, branches, endpoints, databases, and roles
- API keys and async operations

<AISkill name="Neon API" />
33 changes: 33 additions & 0 deletions content/docs/ai/agent-skills-neon-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Agent Skills: Neon Auth'
subtitle: Context and guidance for AI tools to help implement authentication with Neon Auth
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-auth
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

<InfoBlock>

<DocsList title="Related docs" theme="docs">
<a href="/docs/guides/neon-auth">Neon Auth</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/blob/main/skills/neon-postgres/references/neon-auth.md">View this reference</a>
</DocsList>
</InfoBlock>

## What's covered

- Package selection (`@neondatabase/auth` vs `@neondatabase/neon-js`)
- Setup patterns for Next.js App Router, React SPA, and Node.js
- Environment variables and key imports
- Common mistakes and troubleshooting

<AISkill name="Neon Auth" />
33 changes: 33 additions & 0 deletions content/docs/ai/agent-skills-neon-drizzle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Agent Skills: Neon with Drizzle'
subtitle: Context and guidance for AI tools to help implement Drizzle ORM with Neon databases
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-drizzle
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

<InfoBlock>
<DocsList title="Related docs" theme="docs">
<a href="https://orm.drizzle.team/docs/get-started/neon-new">Get started with Drizzle and Neon</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/blob/main/skills/neon-postgres/references/neon-drizzle.md">View this reference</a>
</DocsList>
</InfoBlock>

## What's covered

- Driver selection for different platforms (Vercel, Cloudflare, Railway, etc.)
- Connection setup (TCP, HTTP adapter, WebSocket adapter)
- Drizzle config and migrations
- Schema definition and query patterns
- Working with Neon branches

<AISkill name="Neon with Drizzle" />
34 changes: 34 additions & 0 deletions content/docs/ai/agent-skills-neon-python-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: 'Agent Skills: Neon Python SDK'
subtitle: Context and guidance for AI tools to use the Neon Python SDK
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-python-sdk
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

<InfoBlock>
<DocsList title="Related docs" theme="docs">
<a href="/docs/reference/python-sdk">Get started with Neon Python SDK</a>
<a href="/docs/reference/api-reference">Neon API Reference</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://github.com/neondatabase/neon-api-python">Github Repo</a>
<a href="https://neon-api-python.readthedocs.io/en/latest/">Python SDK Docs</a>
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/blob/main/skills/neon-postgres/references/neon-python-sdk.md">View this reference</a>
</DocsList>
</InfoBlock>

## What's covered

- Managing projects, branches, endpoints, databases, and roles
- API keys and operations
- Error handling patterns

<AISkill name="Neon Python SDK" />
33 changes: 33 additions & 0 deletions content/docs/ai/agent-skills-neon-serverless.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Agent Skills: Neon Serverless Driver'
subtitle: Context and guidance for AI tools to help implement the Neon Serverless driver
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-serverless
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

<InfoBlock>
<DocsList title="Related docs" theme="docs">
<a href="/docs/serverless/serverless-driver">Neon Serverless Driver</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/blob/main/skills/neon-postgres/references/neon-serverless.md">View this reference</a>
</DocsList>
</InfoBlock>

## What's covered

- HTTP queries with the `neon()` function
- WebSocket connections with `Pool` and `Client`
- Transactions (HTTP and interactive)
- ORM integration (Prisma, Kysely, Drizzle)
- Environment-specific optimizations (Vercel Edge, Cloudflare)

<AISkill name="Neon Serverless" />
34 changes: 34 additions & 0 deletions content/docs/ai/agent-skills-neon-typescript-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: 'Agent Skills: Neon API TypeScript SDK'
subtitle: Context and guidance for AI tools to use the Neon API TypeScript SDK
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules-neon-typescript-sdk
---

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

<InfoBlock>
<DocsList title="Related docs" theme="docs">
<a href="/docs/reference/typescript-sdk">Get started with Neon API TypeScript SDK</a>
<a href="/docs/reference/api-reference">Neon API Reference</a>
</DocsList>

<DocsList title="Repository" theme="repo">
<a href="https://www.npmjs.com/package/@neondatabase/api-client">@neondatabase/api-client on npm</a>
<a href="https://github.com/neondatabase/agent-skills">Agent Skills Repository</a>
<a href="https://github.com/neondatabase/agent-skills/blob/main/skills/neon-postgres/references/neon-typescript-sdk.md">View this reference</a>
</DocsList>
</InfoBlock>

## What's covered

- Managing projects, branches, endpoints, databases, and roles
- API keys and organizations
- Async operations
- Error handling patterns

<AISkill name="Neon TypeScript SDK" />
55 changes: 55 additions & 0 deletions content/docs/ai/agent-skills.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: Agent Skills
subtitle: Enhance your AI development experience with Neon-specific context and guidance
enableTableOfContents: true
updatedOn: '2026-01-27T00:00:00.000Z'
redirectFrom:
- /docs/ai/ai-rules
- /docs/ai/ai-rules-neon-toolkit
---

Boost your productivity with Agent Skills for Neon. These skills help AI assistants understand Neon's features, leading to more accurate code suggestions and fewer common mistakes.

Install the Neon agent skill to get started:

```bash
npx add-skill neondatabase/agent-skills
```

This works with **Cursor**, **Claude Code**, and other AI tools that support the [Agent Skills](https://agentskills.io) format.

<Admonition type="note" title="Agent Skills">
Agent Skills are new and actively being improved. We'd love your feedback! Join us on [Discord](https://discord.gg/92vNTzKDGp) to share suggestions.
</Admonition>

## What's covered

The Neon agent skill provides guidance across the full Neon development workflow:

- **Getting started** — Project setup, Neon features (branching, autoscaling, scale-to-zero)
- **Connections** — Serverless driver, connection methods, Drizzle ORM
- **Authentication & Data** — Neon Auth, neon-js Data API
- **Platform APIs & SDKs** — REST API, TypeScript SDK, Python SDK
- **Developer tools** — CLI, VS Code extension, MCP server

The skill automatically loads relevant context based on your task. For the complete reference, see the [Agent Skills repository](https://github.com/neondatabase/agent-skills).

## How it works

Agent Skills use a progressive disclosure model. When you install a skill:

1. **Entry point**: The agent reads the SKILL.md file to understand what guidance is available
2. **On-demand loading**: Detailed reference files are only loaded when needed for specific tasks
3. **Context efficiency**: Agents don't waste tokens on information they don't need

### Example: Agent Skills in action

Here's a practical example using [Cursor](https://www.cursor.so). A developer wants to set up Neon Auth in their Next.js app:

**Developer prompt**: _"Set up Neon Auth for my Next.js app"_

The AI assistant automatically uses the installed Neon skill to provide accurate, up-to-date guidance for authentication setup, including proper imports, configuration, and best practices.

### Alternative: Browse individual references
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would cut this section - not sure why this would be needed :)


If you prefer to work with individual reference files, you can browse and download them directly from the [Agent Skills repository](https://github.com/neondatabase/agent-skills).
36 changes: 12 additions & 24 deletions content/docs/ai/ai-agents-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ updatedOn: '2026-01-22T15:48:50.611Z'

Neon provides several ways to integrate with AI tools and agents, from natural language database control to autonomous agent frameworks. Choose the tools that fit your workflow.

## Agent Skills

Install the Neon agent skill to give AI tools like Cursor and Claude Code context-aware guidance for working with Neon:

```bash
npx add-skill neondatabase/agent-skills
```

Topics covered include Neon Auth, Drizzle ORM, serverless connections, API usage, and more. See [Agent Skills](/docs/ai/agent-skills) for the full list.

For Claude Code, you can also install via the [Claude Code plugin](/docs/ai/ai-claude-code-plugin) which includes Agent Skills and MCP integration.

## MCP integration

The Model Context Protocol (MCP) is a standardized way for AI tools to interact with Neon databases using natural language, providing secure and contextual access to your data and infrastructure.
Expand All @@ -16,14 +28,6 @@ The Model Context Protocol (MCP) is a standardized way for AI tools to interact
<a href="/docs/ai/connect-mcp-clients-to-neon" description="Learn how to connect MCP clients like Cursor, Claude Code, and ChatGPT to your Neon database" icon="github">Connect MCP clients</a>
</DetailIconCards>

## Claude Code plugin

If you're using Claude Code, install the Neon plugin to get Skills, MCP integration, and all the context rules in one package.

<DetailIconCards>
<a href="/docs/ai/ai-claude-code-plugin" description="Includes Claude Code Skills for Neon, Neon MCP integration, and context rules" icon="github">Claude Code plugin for Neon</a>
</DetailIconCards>

## GitHub Copilot agents

Custom agents for GitHub Copilot that bring Neon's branching workflow directly into VS Code for safe migrations and query optimization.
Expand All @@ -32,20 +36,6 @@ Custom agents for GitHub Copilot that bring Neon's branching workflow directly i
<a href="/docs/ai/ai-github-copilot-agents" description="Safe database migrations and query optimization using Neon branching" icon="github">Neon agents for GitHub Copilot</a>
</DetailIconCards>

## AI rules

For other AI tools like Cursor, use these individual `.mdc` context rule files. Copy them to your AI tool's custom rules directory — the format is tool-agnostic and works with any AI assistant that supports context rules.

<DetailIconCards>
<a href="/docs/ai/ai-rules-neon-auth" description="AI rules for implementing authentication with Neon" icon="github">Neon Auth</a>
<a href="/docs/ai/ai-rules-neon-drizzle" description="AI rules for using Drizzle ORM with Neon" icon="github">Neon Drizzle</a>
<a href="/docs/ai/ai-rules-neon-serverless" description="AI rules for serverless database connections" icon="github">Neon Serverless Driver</a>
<a href="/docs/ai/ai-rules-neon-typescript-sdk" description="AI rules for using the Neon API TypeScript SDK" icon="github">Neon API TypeScript SDK</a>
<a href="/docs/ai/ai-rules-neon-python-sdk" description="AI rules for using the Neon Python SDK" icon="github">Neon Python SDK</a>
<a href="/docs/ai/ai-rules-neon-api" description="AI rules for using the Neon API" icon="github">Neon API</a>
<a href="/docs/ai/ai-rules-neon-toolkit" description="AI rules for using the Neon Toolkit" icon="github">Neon Toolkit</a>
</DetailIconCards>

## Build AI agents

Create autonomous agents that can manage and interact with your Neon databases programmatically. Build with our terse JavaScript client or the Neon API.
Expand All @@ -54,8 +44,6 @@ Create autonomous agents that can manage and interact with your Neon databases p

<a href="https://neon.com/use-cases/ai-agents" description="Read about Neon as a solution for agents that need backends." icon="openai">Neon for AI agent platforms</a>

<a href="https://github.com/neondatabase/toolkit" description="A terse JavaScript client for spinning up Postgres databases and running SQL queries" icon="github">@neondatabase/toolkit</a>

<a href="/docs/ai/ai-database-versioning" description="How AI agents and codegen platforms use Neon snapshot APIs for database versioning" icon="openai">Database versioning</a>

<a href="/docs/reference/api-reference" description="Integrate using the Neon API" icon="transactions">Neon API</a>
Expand Down
Loading