neon-get-started-kiro

neon-get-started-kiro is a cursor rule for Cursor from neondatabase/ai-rules. It costs 0 tokens per session (2,178 once invoked), scanned A, original, MIT.

A guided process for connecting an application to a Neon hosted PostgreSQL database.

In plain words
What is it for?
Use it to create or connect a Neon project, add its connection string, and link the database to an existing codebase.
Why use it?
It adapts the setup to the project’s existing code instead of assuming the project is new or uses a particular structure.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/neondatabase/ai-rules/neon-get-started-kiro
Clone the repo
git clone --depth 1 https://github.com/neondatabase/ai-rules

Made for: Cursor.

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-get-started-kiro

README.md
[![agentmods](https://agentmods.dev/badge/rules/neondatabase/ai-rules/neon-get-started-kiro.svg)](https://agentmods.dev/rules/neondatabase/ai-rules/neon-get-started-kiro)
Your own site
<a href="https://agentmods.dev/rules/neondatabase/ai-rules/neon-get-started-kiro"><img src="https://agentmods.dev/badge/rules/neondatabase/ai-rules/neon-get-started-kiro.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,178 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.02178
Opus 5 $0.00000 $0.01089
Sonnet 5 $0.00000 $0.00436
Haiku 4.5 $0.00000 $0.00218

Measured 6d ago against content hash 2014765d50e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

neon-get-started-kiro scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

neon-get-started-kiro.mdc · 264 lines

How it starts

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

Neon Database Get Started Guide

Overview

This guide provides steps to help users get started with Neon in their project. It sets up their Neon project (with a connection string) and connects their database to their code by understanding the context within the codebase.

Use Case

These guidelines apply when users say "Get started with Neon" or similar phrases. The user's codebase may be mature (with existing database connections) or have little to no code - the guidelines should apply to both cases.

Communication Style

Keep all responses succinct:

  • ✅ Tell the user what you did: "Created users table with 3 columns"
  • ✅ Ask direct questions when needed: "Which database should I use?"
  • ❌ Avoid verbose explanations of what you're about to do
  • ❌ Don't explain every step unless the user asks

Examples:

  • Good: "Added DATABASE_URL to .env. Ready to connect?"
  • Bad: "I'm going to add the DATABASE_URL environment variable to your .env file so that your application can connect to the database. This will allow..."

Get Started with Neon (Interactive Guide)

TRIGGER PHRASE: When the user says "Get started with Neon" or similar phrases, provide an interactive onboarding experience by following these steps:

Before starting: Let the user know they can pause and resume anytime by saying "Continue with Neon setup" if they need to come back later.

RESUME TRIGGER: If the user says "Continue with Neon setup" or similar, check what's already configured (MCP server, .env, dependencies, schema) and resume from where they left off. Ask them which step they'd like to continue from or analyze their setup to determine automatically.

Step 1: Check Organizations and Projects

First, check for organizations:

Use the Neon MCP Server to check the user's organizations:

If they have 1 organization:

  • Default to that organization automatically
  • Proceed to check projects within that org

If they have multiple organizations:

Read the full file on GitHub · 264 lines

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. 6d ago First seen · 264 lines · 0 tokens per session scan A 2014765d50e8

Subscribe to this mod's changes

neon-get-started-kiro is a cursor rule published in the GitHub repository neondatabase/ai-rules (86 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,178 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.