一键导入
sp-neon
Use for Neon provider guidance in this project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Neon provider guidance in this project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user wants a plan or design stress-tested before implementation, or asks to be grilled, interviewed, or interrogated about a decision tree.
Disciplined root-cause investigation for hard bugs and performance regressions, with findings pinned to the case board. Use when user reports a bug, says something is broken/throwing/failing, describes a performance regression, or asks to diagnose/debug/investigate something.
Use when writing a commit message — "write a commit", "commit message", "generate commit", "/commit", or invokes /faceless-commit, or when staging changes. Legacy alias: "/caveman-commit".
Use when reviewing code or a diff — "review this PR", "code review", "review the diff", "/review", or invokes /faceless-review. Legacy alias: "/caveman-review".
Use when the user wants terse, compressed, low-token responses — "faceless mode", "talk faceless", "be brief", "less tokens", "compress", or invokes /faceless. Also when token efficiency is explicitly requested. Legacy aliases: "caveman mode", "use caveman".
Use when turning raw material — research, notes, interview answers, fragments, or investigation findings — into a sourced written report or article, or when shaping, drafting, restructuring, or tightening such a draft. Triggers: "write up the findings", "investigative report", "turn these notes into an article", "draft the report", "shape this into an article", "edit the article", "help me write this up".
| name | sp-neon |
| description | Use for Neon provider guidance in this project. |
Generated by stripe projects llm-context for Neon.
Source: https://neon.com/agentic-provisioning-llm-context.md
Neon is the backend for apps and agents. Neon Postgres, Neon Auth, and Data API are available today, with Storage, Compute, and AI Gateway coming soon. Every service is agent-ready: instant, branchable, and serverless.
Context for LLMs and agents: use the API key from the APP account request to interact with Neon (projects, branches, connection strings, provisioning). Full documentation index: neon.com/docs/llms.txt.
In the APP flow, the orchestrator (e.g. Stripe) calls the provider (Neon) to create or link an account for the developer:
POST <provider_base_url>/provisioning/account_requeststype: "credentials" with:
credentials.access_token — User-scoped API key (Bearer token). Use for all Neon API and APP provisioning calls for this user.credentials.account.id — Account (user) identifier (use when the protocol or APIs require an account/user ID).| Response field | How the agent uses it |
|---|---|
credentials.access_token | Send as Authorization: Bearer <access_token> on every Neon API request and on APP provisioning requests that act on this user (e.g. POST .../provisioning/resources). |
credentials.account.id | Use when linking resources to the correct user or when the API requires an account ID. |
Use the same API key for all operations in this document (projects, branches, connection URIs, provisioning resources).
Authorization: Bearer <access_token> on every request.https://console.neon.tech/api/v2/Example — list the user's projects:
curl 'https://console.neon.tech/api/v2/projects' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $NEON_API_KEY"
(Replace $NEON_API_KEY with the access_token from the account request.)
All of these use the same Authorization: Bearer <access_token> and base URL above.
A full list of endpoints, request/response schemas, rate limits, and constraints is in Neon REST API.
Create a branch — Optional body: branch.parent_id (omit to use project default branch), endpoints (e.g. [{ "type": "read_write" }] for compute). Example:
curl -X POST 'https://console.neon.tech/api/v2/projects/{project_id}/branches' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $NEON_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"endpoints":[{"type":"read_write"}],"branch":{}}'
Provisioning resources (APP) — When the orchestrator provisions a resource (POST .../provisioning/resources), it sends the same Bearer token so the provider knows which user account to create the resource for. The response may include access_configuration (e.g. connection_string, project_id, branch_id, or api_key and api_base_url). Use the returned details with the same API key for further operations.
Neon is the backend for apps and agents. Use the API key from Part 1 for all Neon API and connection operations. The Neon docs are the source of truth; prefer fetching current docs over relying on training data.
Fetching docs as Markdown: Append .md to the URL (e.g. https://neon.com/docs/introduction/branching.md) or send Accept: text/markdown on the standard URL.
Docs index (all pages): https://neon.com/docs/llms.txt — search here for a topic if not listed below.
| Topic | Use when | Link |
|---|---|---|
| What Is Neon | Architecture, terminology (orgs, projects, branches, endpoints) | what-is-neon.md |
| Getting Started | First-time setup, connection strings, driver install, schema | getting-started.md |
| Connection Methods & Drivers | Choosing transport/driver (TCP, HTTP, WebSocket, edge, serverless) | connection-methods.md |
| Serverless Driver | @neondatabase/serverless, HTTP/WebSocket, runtime optimizations | neon-serverless.md |
| Neon JS SDK | Neon Auth + Data API, PostgREST-style queries, typed client | neon-js.md |
| Developer Tools | npx neonctl@latest init, VSCode, Neon MCP server | devtools.md |
| Neon CLI | Terminal/scripts/CI with neonctl | neon-cli.md |
| Neon REST API | Direct HTTP automation, API key auth, rate limits, polling | neon-rest-api.md |
| Neon TypeScript SDK | Typed Neon control in TypeScript (@neondatabase/api-client) | neon-typescript-sdk.md |
| Neon Python SDK | Programmatic Neon management in Python (neon-api) | neon-python-sdk.md |
| Neon Auth | Managed auth, UI components, methods, Next.js/React integration | neon-auth.md (see also Neon JS SDK) |
| Branching | Isolated environments, preview deployments, branch lifecycle | branching.md |
| Autoscaling | Compute scaling with workload, CU sizing | autoscaling.md |
| Scale to Zero | Idle suspend/resume, cold-start trade-offs | scale-to-zero.md |
| Instant Restore | Point-in-time recovery, branch from history, Time Travel | branch-restore.md |
| Read Replicas | Read-only compute, analytics/reporting | read-replicas.md |
| Connection Pooling | PgBouncer, -pooler hostnames, serverless concurrency | connection-pooling.md |
| IP Allow Lists | Restrict access by IP/CIDR | ip-allow.md |
| Logical Replication | CDC, external Postgres sync | logical-replication-guide.md |
Key points (brief):
-pooler to endpoint hostnames for pooled connections; important in serverless.