pp-neon
Neon API commands in one static binary, plus a local fleet mirror for stale-branch cleanup, usage trends and compute audits. Trigger phrases: `find stale neon…
by mvanhorn★ 2,170 GitHub stars
Install pp-neon in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Neon — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the neon-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install neon --cli-only - Verify:
neon-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.9 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/cloud/neon/cmd/neon-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Manage Neon projects, branches, computes, roles and databases from the terminal with agent-native JSON and no Node runtime. Sync your account locally to get stale, tree, usage trend and compute audit, and use preview up and wait for per-PR branch workflows.
When to Use This CLI
Use this CLI to manage Neon control-plane resources: projects, branches, computes, roles, databases, operations and consumption. It suits per-PR branch automation, fleet audits and cost questions across many projects.
Anti-triggers
Do not use this CLI for:
- Running SQL queries against a database; use psql with the connection string
- Schema migrations; use your migration tool
- Billing invoices and payment methods; use the Neon console
Unique Capabilities
Fleet hygiene
stale— Find idle or expired branches across every project from the local mirror (run sync first), with delete commands for non-default branches.Reach for this before cleanup to see which preview branches are safe to remove.
neon-pp-cli stale --idle 14d --agenttree— See every org, project, branch and compute in one hierarchy from the local mirror (run sync first).Use it to orient in an unfamiliar Neon account in one call.
neon-pp-cli tree --jsonprune— Preview idle or expired branches to delete (from the local mirror); --yes actually deletes them, always skipping default and protected branches.Use after stale to actually clean up.
neon-pp-cli prune --idle 14d
Cost visibility
usage trend— Track compute, storage and transfer per project with period-over-period deltas; on plans without consumption history (below Launch/Scale) it uses per-sync snapshots (basis: sync-snapshots).Use for questions about how usage changed over time.
neon-pp-cli usage trend --since 30d --agentusage top— Rank projects by compute, storage, transfer or written data; on plans without consumption history it ranks period-to-date totals from sync snapshots (basis: sync-snapshots).Use to find which project drove a bill spike.
neon-pp-cli usage top --metric compute --since 7d --agentcompute audit— Flag computes that never scale to zero, have fixed autoscaling, or are oversized on non-default branches, from the local mirror (run sync first).Use to find the cheapest cost wins in a Neon fleet.
neon-pp-cli compute audit --agent
Preview branch workflow
wait— Block until a branch's async operations finish; exits 0 when done, 6 if an operation failed, 8 on timeout.Use in CI or agent flows before connecting to a freshly created branch.
neon-pp-cli wait --branch pr-123 --project-id lucky-sun-123456 --timeout 5mpreview up— Create a real branch (or reuse an existing one by name), wait until ready and print its connection string; --expires applies only to newly created branches.Use for per-PR databases; safe to re-run.
neon-pp-cli preview up pr-123 --project-id lucky-sun-123456 --expires 7d --agent
Command Reference
connection-string — Print a Postgres connection string for a branch, by name or ID.
neon-pp-cli connection-string --project-id lucky-sun-123456 pr-123— infers the database and owner role when the branch has one database;--pooled,--database,--role,--format uri|env|psql.
context — Save a default project/org (like neonctl set-context).
neon-pp-cli context set --project-id lucky-sun-123456— thenconnection-string,preview upandwaitwork without--project-id. Alsocontext showandcontext clear;NEON_CONTEXT_FILEselects a per-repo file.
Organization API keys cannot call /users/me, /regions or /api_keys (Neon returns 404 "not allowed for
Allowed tools
Tools this skill is permitted to call.
- 01
Read - 02
Bash
Bundled files
- .gitignore
- .golangci.yml
- .goreleaser.yaml
- .manuscripts/20261010-145639-66213866/proofs/2026-10-10-145639-fix-neon-pp-cli-acceptance.md
- .manuscripts/20261010-145639-66213866/proofs/2026-10-10-145639-fix-neon-pp-cli-build-log.md
- .manuscripts/20261010-145639-66213866/proofs/2026-10-10-145639-fix-neon-pp-cli-polish.md
- .manuscripts/20261010-145639-66213866/proofs/2026-10-10-145639-fix-neon-pp-cli-shipcheck.md
- .manuscripts/20261010-145639-66213866/proofs/phase-4.85-findings.md
- .manuscripts/20261010-145639-66213866/proofs/phase-4.95-findings.md
- .manuscripts/20261010-145639-66213866/proofs/phase5-acceptance.json
- .manuscripts/20261010-145639-66213866/proofs/preview-up-lifecycle.md
- .manuscripts/20261010-145639-66213866/research.json
- .manuscripts/20261010-145639-66213866/research/2026-10-10-145639-feat-neon-pp-cli-absorb-manifest.md
- .manuscripts/20261010-145639-66213866/research/2026-10-10-145639-feat-neon-pp-cli-brief.md
- .manuscripts/20261010-145639-66213866/research/2026-10-10-145639-novel-features-brainstorm.md
- .manuscripts/20261010-145639-66213866/research/absorbed.md
- .manuscripts/20261010-145639-66213866/research/neon-openapi.json
- .manuscripts/20261010-145639-66213866/research/neon-openapi.overlay.json
- .manuscripts/20261010-145639-66213866/research/ops.txt
- .printing-press-patches/.gitkeep
- .printing-press-patches/neon-api-error-hints.json
- .printing-press-patches/neon-fleet-commands.json
- .printing-press-patches/neon-sync-fleet-defaults.json
- .printing-press-patches/neon-sync-pagination-snapshots.json
- .printing-press-pii-polish.json
- .printing-press-release.json
- .printing-press-tools-polish.json
- .printing-press.json
- AGENTS.md
- CHANGELOG.md
- CLAUDE.md
- LICENSE
- Makefile
- NOTICE
- README.md
- agentcookie.toml
- apify-actor-audit-report.json
- cmd/neon-pp-cli/main.go
- cmd/neon-pp-mcp/http_auth_test.go
- cmd/neon-pp-mcp/main.go
FAQ
What does the pp-neon skill do?
Neon API commands in one static binary, plus a local fleet mirror for stale-branch cleanup, usage trends and compute audits. Trigger phrases: `find stale neon branches`, `clean up old neon branches`, `neon usage this week`, `create a neon preview branch`, `get a neon connection string`, `use neon`, `run neon`.
How do I install the pp-neon skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pp-neon skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…