Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add digitalocean-labs/do-app-platform-skills --skill postgresgit clone --depth 1 https://github.com/digitalocean-labs/do-app-platform-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/digitalocean-labs/do-app-platform-skills/postgres)<a href="https://agentmods.dev/skills/digitalocean-labs/do-app-platform-skills/postgres"><img src="https://agentmods.dev/badge/skills/digitalocean-labs/do-app-platform-skills/postgres/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/digitalocean-labs/do-app-platform-skills/postgres"><img src="https://agentmods.dev/badge/skills/digitalocean-labs/do-app-platform-skills/postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01115 |
| Opus 5.5 | $0.00017 | $0.00446 |
| Sonnet 5.5 | $0.00008 | $0.00223 |
| Haiku 4.5 | $0.00004 | $0.00112 |
Grade A, and why
postgres scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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) ✅ RECOMMENDED
Path 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/repo
Password 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) |
What ships with it
20 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 4.0 KB
- reference/bundled-scripts.md 2.6 KB
- reference/database-migrations.md 3.1 KB
- reference/doctl-reference.md 2.3 KB
- reference/orm-configurations.md 3.6 KB
- reference/path-a-bindable-vars.md 7.1 KB
- reference/path-b-schema-isolation.md 7.0 KB
- reference/troubleshooting.md 3.1 KB
- scripts/add_client.py 9.9 KB runs code
- scripts/cleanup_client.py 7.0 KB runs code
- scripts/create_schema_user.py 12 KB runs code
- scripts/generate_connection_string.py 3.6 KB runs code
- scripts/get_admin_conn.sh 2.2 KB runs code
- scripts/list_schemas_users.py 4.5 KB runs code
- scripts/secure_setup.py 11 KB runs code
- scripts/secure_setup.sh 9.2 KB runs code
- templates/migrations/alembic.template.py 4.6 KB runs code
- templates/orm/drizzle.template.ts 4.3 KB runs code
- templates/orm/prisma.template.prisma 1.5 KB
- templates/orm/sqlalchemy.template.py 2.9 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 143 lines · 42 tokens per session scan A f6c8950e0e47
postgres is a skill published in the GitHub repository digitalocean-labs/do-app-platform-skills (38 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 1,115 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
postgres compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| postgresdigitalocean-labs/do-app-platform-skills | Skill | 38 | 7d ago | MIT | A | 42 | Claude Code, Codex |
| digitaloceanericrisco/rsc-harness | Skill | 709 | 4d ago | MIT | B | 96 | Claude Code, Codex |
| deploio-provisionrenuo/deploio-claude-plugin | Skill | 3 | 2d ago | MIT | A | 0 | Claude Code |
| use-sealoslabring/sealos-skills | Skill | 86 | 2mo ago | none | A | 151 | Claude Code |
| cloud-sql-basicsgoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 108 | Claude Code, Codex |
| atlas-lakebaseariga/atlas | Skill | 8.9k | 5d ago | Apache-2.0 | A | 140 | Claude Code |
| moai-platform-database-cloudmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 51 | Claude Code |