neon-functions

neon-functions is a skill for Claude Code from neondatabase/agent-skills. It costs 235 tokens per session (12,878 once invoked), scanned B, original, Apache-2.0.

Guidance for deploying long-running Node.js web handlers next to a Neon database. These handlers can expose HTTPS endpoints and receive the database connection automatically when a branch has Postgres.

In plain words
What is it for?
Deploying APIs, webhook receivers, chat or AI responses that stream for a long time, WebSocket servers, and server-sent events.
Why use it?
It gives developers a way to host request handlers that may run longer than typical short-lived serverless functions while staying near their data.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import config from "../neon";.

Part of the neon plugin — 7 skills, 1 MCP server shipped together

Good fit Deploying APIs, webhook receivers, chat or AI responses that stream for a long time, WebSocket servers, and server-sent events.

Compare 6 skills from other repositories ↓
About the project

Neon Agent Skills is a collection of agent instructions, scripts, and resources for working with Neon’s cloud backend services built around Lakebase Postgres. Developers, startups, and agent platforms use it to guide work with databases, branches, authentication, storage, functions, and AI Gateway services.

neondatabase/agent-skills · 121 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/neondatabase/agent-skills
agentmods
npx agentmods add skills/neondatabase/agent-skills/neon-functions

Made for: Claude Code.

Or install neon, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neon-functions

README.md
[![agentmods](https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-functions/github.svg)](https://agentmods.dev/skills/neondatabase/agent-skills/neon-functions)
Your own site
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-functions"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-functions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neon-functions

Your own site · 80×15
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-functions"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 235 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,878 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 8 Nov 2026
  • Snyk pass 10 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 22
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium MCP Rug Pull · line 25
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Prompt Injection · line 173
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00235 $0.12878
Opus 5.5 $0.00094 $0.05151
Sonnet 5.5 $0.00047 $0.02576
Haiku 4.5 $0.00023 $0.01288

Measured 21d ago against content hash 5f21534568cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

neon-functions scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- A standalone executable you spawn: ship it as above, then copy it to `/run` and `chmod 755` it at startup. Files in `/opt/function` arrive as mode `644` on a read-only filesystem, and `/tmp` is `noexec`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Web-standard handler** — A function is any default export with a `fetch(request)` method returning a `Response` (Workers/WinterTC-compatible). A Hono app exports exactly that shape, so `export default app` just works
plugins/neon-postgres/skills/neon-functions/SKILL.md · 728 lines

How it starts

The opening of the file, as written. The whole thing — 728 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FIRST: Use the parent neon skill for a Neon overview, getting started with Neon, Neon development best practices, and more.

If the neon skill is not installed, fetch it from https://neon.com/docs/ai/skills/neon/SKILL.md or install it with:

neon skills -s neon -y

Neon Functions

Currently available in aws-us-east-2, aws-us-east-1, aws-eu-central-1, and aws-ap-southeast-1.

Neon Functions are long-running Node.js HTTP handlers deployed onto a Neon branch. Each function gets a public HTTPS URL, runs in the same region as your database, and — if the branch has Postgres — gets DATABASE_URL injected automatically. You deploy and manage them through the same Neon CLI, neon.ts, and API you already use.

Use this skill to help the user define, run locally, deploy, and manage functions next to their database. Deliver a deployed function with its invocation URL, a working local neon dev loop, or a precise answer from the official Neon docs.

When to Use

Reach for Neon Functions when the workload is a request/response handler that benefits from staying alive and staying close to the data:

  • Long-running request/response flows that outlast lambda-style limits. Agents that make several LLM calls and tool invocations per request, or image/video generation, routinely blow past the ~10–60s execution caps and short streaming windows of traditional serverless functions. Neon Functions are long-running: the handler just needs to start responding within 15 minutes, and an open stream stays alive as long as bytes keep flowing. That's enough headroom for real agent workloads.
  • Stateful streaming without bolting on Redis. Because a function stays alive across a request, it can host an SSE endpoint or a WebSocket server and hold the connection open in-process — no external state store (Redis, etc.) needed just to keep a stream coherent. Module-scope state (a pg pool, an in-memory counter) persists across requests on the same isolate.
  • Compute that must sit next to Postgres. The function runs in the same region as the branch's database, so there are no cross-region round trips on every query. DATABASE_URL is injected for you.
  • A backend that branches with your data. Each branch runs its own version of the function at its own URL, against its own isolated database (and storage, and gateway) state. Preview deployments, CI, and dev environments each get a self-contained backend — deploying to a child never affects the parent.
  • Query Postgres from the Function (or an existing framework handler). Prefer that over the Data API. Use the Data API when the application already uses PostgREST or Supabase-js database calls, or is migrating that client.
  • Webhooks, bots, and post-response work. Webhook handlers that fan out into multiple DB writes, Discord/WebSocket bots, and fire-and-forget follow-ups via waitUntil (analytics, audit logs) all fit.
  • Recurring HTTP work. A Function Trigger POSTs to the function on a cron (type: "schedule") or when an object is created in Object Storage (type: "storage_object_created"). Same fetch handler, same 15-minute time-to-first-byte limit. See Function Triggers.

Read the full file on GitHub · 728 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · +17 lines 5f21534568cb
  2. 24d ago Changed · +43 lines d167d5d0a556
  3. 27d ago Changed b56e0af647bf
  4. 1mo ago Changed 2666db41fade
  5. 1mo ago Changed d75b5a9a096b
  6. 1mo ago Changed · +1 lines · -3 tokens per session 67faeb351691
  7. 2mo ago Changed · +11 lines scan A → B ef17cab6c81f
  8. 2mo ago Changed · +10 lines · +15 tokens per session f7cc659147e9
  9. 2mo ago Changed a6b2d4592724
  10. 2mo ago First seen · 646 lines · 223 tokens per session scan A ca2d62000683

Subscribe to this mod's changes

neon-functions is a skill published in the GitHub repository neondatabase/agent-skills (121 stars, last pushed today), licensed Apache-2.0. It adds 235 tokens to every session and 12,878 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

neon-functions compared with skills from other repositories

neon-functions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neon-functionsneondatabase/agent-skillsSkill121todayApache-2.0B235Claude Code
azure-postgres-tsmicrosoft/skillsSkill3.3ktodayMITA94Claude Code
supabasesupabase/agent-skillsSkill3.2k19d agoMITA185Claude Code, Codex
butterbasebutterbase-ai/butterbaseSkill3.0k2d agoApache-2.0A34Claude Code, Codex
supabase-clifcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A60Claude Code
supabase-jsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A64Claude Code
supabase-nodealinaqi/maggySkill7134d agoMITA14Claude Code