teamday-ai/agents/postgresql
Claude Code and agent skill by teamday-ai/agents
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Query and manage PostgreSQL databases using psql CLI. Connect to Supabase, Neon, AWS RDS, Railway, or any PostgreSQL instance via connection string.
Install
npx vskill@latest install teamday-ai/agents/postgresqlSKILL.md
PostgreSQL Skill
Query and manage PostgreSQL databases directly using psql CLI.
Quick Start
Prerequisites
| Variable | Description | Example | |
|---|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgresql://user:pass@host:5432/dbname?sslmode=require |
Verify Connection
If this fails, check:
DATABASE_URLis set in Space environment variables- Connection string format is correct
- SSL mode is appropriate for your provider
Core Recipes
Run a Query
List Tables
Describe Table Structure
List Columns with Types
Count Rows
Search Data
Export & Import
Export to CSV
Export Query Results to CSV
Import from CSV
Export as JSON
Export Single Row as JSON
Schema Operations
Dump Full Schema
Dump Single Table Schema
List All Schemas
List Indexes
Table Sizes
Formatting Options
Expanded Output (vertical)
No Headers (for scripting)
Tab-Separated Output
HTML Output
Write Operations
Insert Data
Update Data
Delete Data
Create Table
Managed Service Connection Strings
Supabase
Find in: Supabase Dashboard — Settings — Database — Connection string
Neon
Find in: Neon Console — Connection Details
AWS RDS
Find in: AWS Console — RDS — Instances — Connectivity
Railway
Find in: Railway Dashboard — PostgreSQL service — Connect
Self-Hosted
Error Handling
| Error | Cause | Solution | |
|---|---|---|---|
connection refused | Host unreachable | Check host/port, firewall rules | |
password authentication failed | Wrong credentials | Verify DATABASE_URL | |
SSL off / SSL required | SSL mismatch | Add ?sslmode=require to URL | |
relation does not exist | Wrong table name | Run \dt to list tables | |
permission denied | Insufficient privileges | Check database user permissions | |
too many connections | Connection limit hit | Use connection pooler (e.g., Supabase pooler port 6543) |
Tips
- Always use `LIMIT` when exploring data to avoid dumping huge tables
- Use `\x on` for wide tables — switches to vertical display
- Use `RETURNING *` on INSERT/UPDATE/DELETE to see affected rows
- Use `-t -A` flags for clean output in scripts (no headers, no alignment)
- Use `pg_dump --schema-only` to understand a database before querying
- Connection pooling: For Supabase, use port 6543 (pooler) instead of 5432 (direct)
- SSL: Most managed services require
?sslmode=requirein the URL
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/teamday/postgresql/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/teamday-ai/agents/postgresql)