
Neon Postgres Egress Optimizer
This walks Claude through finding and fixing the query patterns that cause surprise Neon bills. It starts by running pg_stat_statements to identify which queries transfer the most data, then analyzes your codebase for common culprits like SELECT *, missing pagination, and JOINs that duplicate parent rows across children. The fixes are practical: select only needed columns, add LIMIT clauses, cache high-frequency queries, push aggregations into SQL instead of fetching raw data. Most egress problems come from application code fetching way more data than it actually uses, and this gives Claude a step-by-step diagnostic workflow to catch those issues before they show up on your invoice.
- skills.sh installs
- 35.1K
- GitHub stars
- 113
- last updated
- Aug 21, 2026
Install
$ npx -y skills add neondatabase/agent-skills --skill neon-postgres-egress-optimizer --agent claude-codeInstalls into .claude/skills of the current project.
Files
This walks Claude through finding and fixing the query patterns that cause surprise Neon bills. It starts by running pg_stat_statements to identify which queries transfer the most data, then analyzes your codebase for common culprits like SELECT *, missing pagination, and JOINs that duplicate parent rows across children. The fixes are practical: select only needed columns, add LIMIT clauses, cache high-frequency queries, push aggregations into SQL instead of fetching raw data. Most egress problems come from application code fetching way more data than it actually uses, and this gives Claude a step-by-step diagnostic workflow to catch those issues before they show up on your invoice.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/neondatabase/agent-skills
- Categories
- Backend & APIs, AI & Agent Building, Debugging, Databases
- First seen
- May 16, 2026