distributed postgres

A guide for building applications with Amazon Aurora DSQL, a serverless distributed SQL database compatible with PostgreSQL. It covers database structure, queries, migrations, authentication, and multi-tenant designs.

In plain words
What is it for?
Use it to create or change schemas, run queries, migrate data, inspect query plans, load data, and design tenant isolation.
Why use it?
It reduces mistakes when working with DSQL’s constraints, connection rules, data formats, and application-level relationships.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/awslabs/mcp/distributed-postgres-skill
Any agent
npx skills add awslabs/mcp --skill distributed-postgres-skill
Clone the repo
git clone --depth 1 https://github.com/awslabs/mcp

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.00321
Opus 5 $0.00022 $0.00161
Sonnet 5 $0.00009 $0.00064
Haiku 4.5 $0.00004 $0.00032

Measured today against content hash aafc44d7f7f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

distributed 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 today.

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.

Origin

This is a copy

98% identical to amazon aurora dsql — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/aurora-dsql-mcp-server/skills/distributed-postgres-skill/SKILL.md · 38 lines

What it actually says

Aurora DSQL Skill Moved

This standalone skill is deprecated. The canonical DSQL skill is now:

plugins/databases-on-aws/skills/dsql/SKILL.md in awslabs/agent-plugins.

Redirect

  1. Check whether the canonical dsql skill is already available.
  2. If it is available, read and follow its SKILL.md, then read only the references that canonical skill routes to.
  3. Do not combine canonical guidance with content from this deprecated standalone skill.
  4. If the canonical skill is unavailable, explain that the DSQL skill moved to awslabs/agent-plugins.
  5. Get explicit user approval before installing anything or changing user configuration.

Repository-reading tools may read the canonical skill to provide advisory guidance. Reading its repository does not install the plugin, hooks, scripts, or MCP servers.

For Claude Code, the verified installation commands are:

/plugin marketplace add awslabs/agent-plugins
/plugin install databases-on-aws@agent-plugins-for-aws

For Codex and Cursor, use the current canonical installation instructions.

Files

What ships with it

3 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.

Changes

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.

  1. today Changed · -304 lines · -153 tokens per session aafc44d7f7f6
  2. 2d ago First seen · 342 lines · 196 tokens per session scan A 642eebcaace6

Subscribe to this mod's changes

distributed postgres is a skill published in the GitHub repository awslabs/mcp (9,653 stars, last pushed today), licensed Apache-2.0. It adds 43 tokens to every session and 321 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to amazon aurora dsql, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

code_explorer

Explores the repository to locate primary source files, coupled UI components, and test files for bug reports or feature requests.

google-gemini/gemini-cli · 28 tokens

quality

Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

google-gemini/gemini-cli · 24 tokens

prowler-ui

Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).

prowler-cloud/prowler · 64 tokens

prowler-test-api

Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).

prowler-cloud/prowler · 62 tokens

prowler-pr

Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…

prowler-cloud/prowler · 84 tokens

investigate-issue

Investigate a GitHub issue by fetching details, analyzing the codebase, researching documentation, and presenting an actionable implementation plan with test guidance. Use when asked to investigate, analyze, triage, or plan work for a GitHub issue. Invoked with /investigate-issue or /investigate-issue (prompts for ID).

maximhq/bifrost · 78 tokens