postgres
Skill36 starsChanged 10 months agoMITView on GitHub
Configure DigitalOcean Managed Postgres with bindable variables or schema isolation. Use when setting up databases, creating users, managing permissions, configuring multi-tenant schemas, or troubleshooting database connectivity on App Platform.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- fworks-tech/agenthoodtheir own version, first seen Sep 28, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- timescale/pg-aiguidetheir own version, first seen Sep 2, 2026
- chenwei791129/agent-skillstheir own version, first seen Aug 29, 2026
- LDKTC/Agent-P-FullStacktheir own version, first seen Jul 31, 2026
- magnus919/agent-skillstheir own version, first seen Jul 21, 2026
Used with
Projects with it also use mysql, sentry and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
planetscaleSkillmysql
Plan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; diagnosing slow/locking behavior; planning migrations; or troubleshooting replication and connection issues. Load when using a MySQL database.
Also in 4 projects that use this
OpenAISkillsentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry CLI; perform read-only queries using the `sentry` command.
Also in 3 projects that use this
OpenAISkilllinear
Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.
Also in 3 projects that use this
NVIDIASkilldeep-research
Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- timescale/pg-aiguide★ 1.9ksame name
- planetscale/database-skills★ 692same name
- sanjay3290/ai-skills★ 429same name
- magnus919/agent-skills★ 109same name
- damusix/skills★ 62same name
- nahid-sparktales/agent-dispatcher★ 59same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- mamamou/ai-coding-skills★ 16same name
- qhkm/zeptoclaw-skills★ 4same name
- fworks-tech/agenthood★ 3same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- app-platform-routerSkill
- ai-servicesSkill
- deploymentSkill
- app-platform-designerSkill
- devcontainersSkill
- managed-db-servicesSkill
- app-platform-migrationSkill
- app-platform-networkingSkill
- plannerSkill
- app-platform-sandboxSkill
- spacesSkill
- app-platform-troubleshootingSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use when: Single app per database, standard CRUD applications.
- Distinctive: line 67
Use when: Multi-tenant SaaS, multiple apps sharing one cluster, schema-level isolation needed.
- Distinctive: line 139
→ designer: Add database block to app spec
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Postgres Skill
Configure DigitalOcean Managed Postgres databases with proper security isolation and production-ready defaults.
Quick Decision
Need multiple isolated schemas in one database?
├── YES → Path B (Schema Isolation)
└── NO → Path A (Bindable Variables) ✅ RECOMMENDEDPath A: Bindable Variables (Recommended)
Use when: Single app per database, standard CRUD applications.
Quick Start
# 1. Create cluster + user via doctl (DO stores password internally)
doctl databases create my-app-db --engine pg --region nyc3 --size db-s-1vcpu-2gb
CLUSTER_ID=$(doctl databases list --format ID,Name --no-header | grep my-app-db | awk '{print $1}')
doctl databases db create $CLUSTER_ID myappdb
doctl databases user create $CLUSTER_ID myappuser
# 2. Grant permissions (REQUIRED - users have no access by default!)
# Run: scripts/grant_permissions.sql as doadmin
# 3. Reference in app spec# .do/app.yaml
databases:
- name: db
engine: PG
production: true
cluster_name: my-app-db
db_name: myappdb
db_user: myappuser
services:
- name: api
envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${db.DATABASE_URL}Full guide: See path-a-bindable-vars.md
Path B: Schema Isolation
Use when: Multi-tenant SaaS, multiple apps sharing one cluster, schema-level isolation needed.
Quick Start
# Hands-free setup (requires gh CLI)
./scripts/secure_setup.sh \
--admin-url "$ADMIN_URL" \
--app-name myapp \
--schema myapp \
--repo owner/repoPassword flows directly to GitHub Secrets — never displayed.
Full guide: See path-b-schema-isolation.md
Available Bindable Variables
| Variable | Example |
${db.DATABASE_URL} | postgresql://user:pass@host:25060/db?sslmode=require |
${db.HOSTNAME} | my-db-do-user-123.db.ondigitalocean.com |
${db.PORT} | 25060 |
${db.USERNAME} | myappuser |
${db.PASSWORD} | (auto-populated) |
${db.DATABASE} | myappdb |
${db.CA_CERT} | (certificate content) |
Scripts
| Script | Purpose |
scripts/secure_setup.sh | Hands-free Path B setup with GitHub Secrets |
scripts/create_schema_user.py | Create isolated schema + user |
scripts/list_schemas_users.py | Audit existing schemas/users |
scripts/generate_connection_string.py | Build connection strings |
Reference Files
- path-a-bindable-vars.md — Full Path A workflow, connection pools, multi-app setup
- path-b-schema-isolation.md — Full Path B workflow, multi-tenant patterns
- orm-configurations.md — Prisma, SQLAlchemy, Drizzle, TypeORM configs
- database-migrations.md — Alembic, Prisma Migrate, Drizzle Migrate
- doctl-reference.md — All
doctl databasescommands - troubleshooting.md — Common errors and fixes
- bundled-scripts.md — Script usage documentation
Common Issues (Quick Fixes)
| Error | Fix |
| "permission denied for schema" | Run permission SQL as doadmin |
| "relation does not exist" | Check search_path or use schema-qualified names |
| "too many connections" | Create connection pool via doctl |
| "SSL connection required" | Add ?sslmode=require to connection string |
| Bindable vars not populated | Verify production: true and names match exactly |
Full troubleshooting: See troubleshooting.md
Integration with Other Skills
- → designer: Add database block to app spec
- → deployment: GitHub Actions workflow with DATABASE_URL secret
- → devcontainers: Local Postgres with prod parity
- → troubleshooting: Debug container for connectivity testing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

