Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

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:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install neon --cli-only
    
  2. Verify: neon-pp-cli --version
  3. Ensure the reported install directory is on $PATH for 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 --agent
    
  • tree — 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 --json
    
  • prune — 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 --agent
    
  • usage 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 --agent
    
  • compute 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 5m
    
  • preview 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 `neo

Полный SKILL.md на GitHub

Установить pp-neon в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл 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 branches`, `clean up old neon branches`, `neon usage this week`, `create a neon preview branch`, `get a neon connection string`, `use neon`, `run neon`.

Как установить скилл pp-neon?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-neon запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-neon с