AGENT SKILL

Neon Serverless Postgres 使用指南

using-neon

使用 Neon Serverless Postgres 的指南与最佳实践。涵盖入门、Neon 本地开发、连接方式选择、Neon 功能、认证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 平台 API/SDK。适用于任何与 Neon 相关的问题。

使用场景数据库管理
License 许可
MIT
最近更新
2026-11-15
Stars
★ 3.4w
Forks
4.0k

01 前言 Front Matter

name
using-neon
description
Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related questions.

02 资源文件 28

03 SKILL.md 正文

Neon Serverless Postgres

Neon is a serverless Postgres platform that separates compute and storage to offer autoscaling, branching, instant restore, and scale-to-zero. It's fully compatible with Postgres and works with any language, framework, or ORM that supports Postgres.

Neon Documentation

Always reference the Neon documentation before making Neon-related claims. The documentation is the source of truth for all Neon-related information.

Below you'll find a list of resources organized by area of concern. This is meant to support you find the right documentation pages to fetch and add a bit of additonal context.

You can use the curl commands to fetch the documentation page as markdown:

Documentation:

# Get list of all Neon docs
curl https://neon.tech/llms.txt

# Fetch any doc page as markdown
curl -H "Accept: text/markdown" https://neon.tech/docs/<path>

Don't guess docs pages. Use the llms.txt index to find the relevant URL or follow the links in the resources below.

Overview of Resources

Reference the appropriate resource file based on the user's needs:

Core Guides

Area Resource When to Use
What is Neon references/what-is-neon.md Understanding Neon concepts, architecture, core resources
Referencing Docs references/referencing-docs.md Looking up official documentation, verifying information
Features references/features.md Branching, autoscaling, scale-to-zero, instant restore
Getting Started references/getting-started.md Setting up a project, connection strings, dependencies, schema
Connection Methods references/connection-methods.md Choosing drivers based on platform and runtime
Developer Tools references/devtools.md VSCode extension, MCP server, Neon CLI (neon init)

Database Drivers & ORMs

HTTP/WebSocket queries for serverless/edge functions.

Area Resource When to Use
Serverless Driver references/neon-serverless.md @neondatabase/serverless - HTTP/WebSocket queries
Drizzle ORM references/neon-drizzle.md Drizzle ORM integration with Neon

Auth & Data API SDKs

Authentication and PostgREST-style data API for Neon.

Area Resource When to Use
Neon Auth references/neon-auth.md @neondatabase/auth - Authentication only
Neon JS SDK references/neon-js.md @neondatabase/neon-js - Auth + Data API (PostgREST-style queries)

Neon Platform API & CLI

Managing Neon resources programmatically via REST API, SDKs, or CLI.

Area Resource When to Use
Platform API Overview references/neon-platform-api.md Managing Neon resources via REST API
Neon CLI references/neon-cli.md Terminal workflows, scripts, CI/CD pipelines
TypeScript SDK references/neon-typescript-sdk.md @neondatabase/api-client
Python SDK references/neon-python-sdk.md neon-api package

04 同仓库更多 Skills

davila7
davila7/claude-code-templates

wealthville-pool-scoring

Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter/Hold/Exit/Reduce/Avoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.

★ 3.4w
davila7
davila7/claude-code-templates

technical-debt-auditor

Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO/FIXME/HACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like "where should I focus refactoring", "find code smells", "audit my codebase", "what technical debt do we have", "prioritize cleanup work", or asks about code quality metrics. Also trigger when the user mentions "code rot", "legacy cleanup", "refactoring priorities", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say "technical debt" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.

★ 3.4w
davila7
davila7/claude-code-templates

readonly-sql-guard

Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production/ERP/analytics database (a "query" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write/DDL/side-effect/transaction-escape risks. Checks what a statement CALLS, not just its shape.

★ 3.4w
davila7
davila7/claude-code-templates

Claude 网页 Artifact 构建

web-artifacts-builder

用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件,采用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)。适用于需要状态管理、路由或 shadcn/ui 组件的复杂 artifact —— 不适用于简单的单文件 HTML/JSX artifact。

软件开发工程师前端开发与界面实现
★ 3.4w
davila7
davila7/claude-code-templates

Playwright Web 应用测试

webapp-testing

使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。

测试工程师测试与质量保障
★ 3.4w
davila7
davila7/claude-code-templates

回复事实核查追问

discernment-nudge

在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件(如目标、计划、推介、提案或电子邮件)、估计或预测、数据分析或解读、他们可能依赖的事实声明,或多步骤论证——在最终确定回复之前调用本技能,然后,如适用,附加 2-3 个简短的后续问题,每个问题都与你刚刚产出的具体内容相关,帮助用户核查关键事实、探究推理或假设,并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化/转换/组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天,或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。

普通用户回答复核
★ 3.4w