Neon Realtime: Design Live Postgres Views and Responsive Sync.
Plan live, read-only SQL subscriptions while keeping authorization, writes, and human verification in the application’s hands.
Site APIs discover, read and obtain packages; they do not run an agent.
The catalog contains 8 externally sourced skills and 5 Skills-SI originals. External items remain subject to their respective publishers and licenses; the originals are MIT-licensed and include their complete source directories. Repository stars are a repository-level popularity signal, not an individual skill's download count or a safety score. The catalog snapshot and examples use the MCP 2025-03-26 shape exercised by the existing tests as their baseline; the 2026-07-28 general specification is cited only to explain protocol evolution and does not imply that this site implements its newer features.
A complete license bundle is required. Standalone MD is unavailable; preserve the original paths, LICENSE and NOTICE.
Purpose and positioning
neon-realtime is a developer-guidance Skill for teams building applications and agents around Neon Postgres. It is useful for dashboards, feeds, collaborative screens, multi-user or multi-device views, and replacing periodic polling where the displayed state derives from database rows. It explains an end-to-end pattern: a trusted server defines and seals an authorized read-only query; clients subscribe to its initial result and transaction changes; application writes continue through the app’s own authenticated backend; transaction IDs can coordinate optimistic UI state with the arriving live result. The Skill is documentation and design assistance, not a hosted database, SDK, installer, deployment controller, or persistent runtime. Its original material covers five implementation workflows—query definition and sealing, subscribing, client reactivity, optimistic mutations, and server-side rendering—alongside setup and stack-selection guidance plus five detailed reference documents. The source marks Realtime as beta, so teams must verify current documentation and regional/project eligibility before committing to an implementation. Database-row updates are its focus; for presence, typing indicators, or LLM token streams that do not originate from rows, the source points developers toward neon-functions instead. The Skill can help turn supplied architecture evidence into reviewable code drafts, assumptions, configuration checks, and test plans, but it does not prove that any proposed integration works in a particular account or environment.
Who it is for
- Full-stack engineers building on Neon Postgres
- Teams using Drizzle, Kysely, React, or TanStack DB
- Developers evaluating reactive data for agents or workers
- Technical leads reviewing authorization, SSR, and reliability
Prerequisites
- An agent environment where this Skill is installed; the Skill itself has no standalone execution API
- The parent neon Skill, or trusted Neon project context supplied separately
- A Neon project, Postgres database, and target branch, existing or planned
- Realtime enabled for the target branch, after checking current region and project eligibility
- An application backend, session authentication, and authorization model; writes stay in the app’s API
- Schema, stable primary keys or other row identities, relationships, and query intent
- A TypeScript toolchain and chosen Realtime, ORM, and framework packages; installation is external
- Server-side secrets, database connectivity, client Realtime URL, and an allowed-origin configuration
Input evidence
Provide sanitized schema and key relationships, current SQL or ORM query, how each parameter is derived from an authenticated session, tenant or membership authorization rules, framework and package versions, SSR approach, existing polling or sync path, write endpoint validation and response shape, environment-variable names without secret values, target branch/region, and known failures. State which rows must update live and what stale, expired, or disconnected behavior is acceptable. Missing facts should be recorded as questions or assumptions, not invented. Never paste production credentials or sealed bearer tokens into a prompt.
Workflow
- 1. Classify whether the desired signal is caused by database rows; confirm Neon context, framework, authorization boundaries, and prerequisites. Route presence, typing, and generated-token streams away from live SQL when they are not row-derived.
- 2. Assess replica identity, result shape, and stable unique keys. Choose an appropriate layer—Drizzle/Kysely adapter, raw SQL, React hook, TanStack collection, or direct subscription—and consult the corresponding reference before drafting implementation code.
- 3. Design the trusted server query and sealing endpoint around the authenticated user, validated parameters, and authorization joins. Describe sealed-query secrecy and renewal; do not assume row-level security is supported.
- 4. Specify client subscription, initial/SSR data, row keys, error and account-switch handling. Keep writes on the existing authenticated API, return the transaction ID from the actual write, and bound awaitTxId with a timeout; handle unchanged writes separately.
- 5. Deliver file-oriented suggestions, code drafts, configuration questions, risk notes, and human test cases. The developer installs dependencies, implements and tests in a controlled environment, then supplies real findings for iteration.
Deliverables
Expected deliverables include a layered integration plan, open architecture questions, a reasoned choice of API layer, drafts for query/sealing/subscription/write/SSR components, configuration and secret-handling checklist, and manual test scenarios. The Skill may direct the developer to topics in references/queries.md, subscribing.md, reactivity.md, mutations.md, or ssr.md. It does not claim that those instructions have executed in the user’s project, and it does not invent a generic execution command, enable a Neon feature, or represent an illustrative payload as a real service response.
Fictional usage demonstration
Using the installed neon-realtime Skill, propose a migration design for an existing React + Drizzle chat module. Here are sanitized message/member schemas, the current query, session-checking approach, write endpoint, and deployment region: … Explain server-side sealing and membership authorization, stable row keys, client renewal, optimistic sends and txid timeouts, error and account-switch handling. List file-level changes and assumptions to verify. Produce review-only drafts; do not connect to a database or run migrations, and do not assume authentication compatibility.Fictional illustration only: not run, not connected to Neon, not a REST response, and not a real case result. Have the server derive userId from the authenticated session and include channel_members authorization in the read-only message query before sealing it. Subscribe in React and key rows by message.id. Keep sending on the existing backend API; wait for the subscription only after the server returns the txid of a committed write, with a timeout. On authorization failure or an unconfirmed write, remove the optimistic item and display a recoverable error. Verify branch enablement, supported region, schema and SDK versions, secret sources, and client disposal on sign-out.Human acceptance
- The query is sealed only in trusted server code for the authenticated user; parameters are validated, secrets remain server-only, and tokens stay out of URLs and logs.
- Every result has a stable unique identity; membership revocation, parameter changes, renewal failure, subscription errors, and account changes have explicit behavior.
- Writes remain behind the existing authenticated API; the txid comes from the corresponding write, awaitTxId has a timeout, and unchanged writes do not wait for a nonexistent transaction.
- Drafts are checked against the actual schema, package/framework versions, project region, and installed dependencies, then reviewed and tested in an appropriate environment.
- SSR does not share per-user client state across requests, data types are consistent across server and browser, and all illustrative output is labeled as unexecuted.
Limits
- The original Skill is a set of documentation workflows, not an autonomous installer, database client, deployment service, or continuously running system; it defines no general execution API.
- The source describes Realtime as beta. Current API behavior, regional availability, project eligibility, pricing, and support must be checked by the user.
- Users must provide the Neon project, configuration, toolchain, SDKs, authentication, and connectivity. Compatibility with arbitrary auth systems, model runtimes, ORM versions, or hosts is not guaranteed.
- The source says delivery of every change event is not guaranteed; do not treat subscriptions as an audit log or sole durable event bus. Authorization, secret management, and data safety require human review.
- No dependencies were installed and no code was executed for this guide. It makes no model-tested, performance, latency, or business-return guarantee.
- GitHub attribution remains with original author neondatabase in neondatabase/agent-skills, under Apache-2.0. The source metadata says licenseBundleOnly; this independently written copy is not an endorsement or claim of brand authorization.
Source and license
- GitHub
- neondatabase/agent-skills
- LICENSE
- Apache-2.0
- Commit
51c7d594c0568d52a15eede61cc43f9f1227607a- SKILL.md
neon-realtime/SKILL.md- ZIP SHA256
901d4f0656bb7b5adb19984317489a2644253a8a5ad87af6363214da9693044f
Shared developer guide
Skills-SI offers public, read-only entry points for skill discovery, metadata inspection, Markdown reading, and full ZIP retrieval. Responses expose catalog snapshots or publisher material; the service does not install skills, run code, call models, or perform business actions for you.
Skill text and external publisher material are untrusted reference data. Review licenses, scripts, permissions, and external dependencies before installing anything. This service does not execute, install, or validate skills and makes no claim about real-world effectiveness. Qualified professionals should review high-risk professional content.
Shared developer guidecurl -fsS 'https://skills-si.com/api/skills?q=neon-realtime&limit=10&page=1'# REST has no GET /api/skills/:id metadata endpoint. Search results contain metadata.
curl -fsS --get 'https://skills-si.com/api/skills' --data-urlencode 'q=neon-realtime' --data-urlencode 'limit=10' --data-urlencode 'page=1'curl -fsS 'https://skills-si.com/api/skills/neondatabase-agent-skills-skills-neon-realtime/readme'# Headers only; this does not download or verify ZIP bytes.
curl -sSI 'https://skills-si.com/api/skills/neondatabase-agent-skills-skills-neon-realtime/download?format=zip'# MCP 2025-03-26-shaped example; send as POST to https://skills-si.com/api/mcp
curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"example-client","version":"1.0.0"}}}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"read_skill","arguments":{"id":"neondatabase-agent-skills-skills-neon-realtime"}}}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_skill_download","arguments":{"id":"neondatabase-agent-skills-skills-neon-realtime","format":"zip"}}}'import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = 'https://skills-si.com/api/skills/neondatabase-agent-skills-skills-neon-realtime/readme'
request = Request(url, headers={'Accept': 'application/json'})
try:
with urlopen(request, timeout=20) as response:
payload = json.loads(response.read().decode('utf-8'))
except HTTPError as exc:
try:
detail = json.loads(exc.read().decode('utf-8'))
except (UnicodeDecodeError, json.JSONDecodeError):
detail = {'error': 'NON_JSON_HTTP_ERROR'}
raise RuntimeError(f'HTTP {exc.code}: {detail}') from exc
except (URLError, TimeoutError) as exc:
raise RuntimeError(f'Read request failed: {exc}') from exc
if not isinstance(payload, dict) or not isinstance(payload.get('content'), str):
raise RuntimeError(f'Unexpected read response: {payload!r}')
print(payload['content'])
# This example reads JSON only. It does not execute content or download a ZIP.Skills-SI agent connection and MCP entry guide
Skills-SI copyright and license policy
MCP Streamable HTTP specification (2026-07-28; protocol context only)