dsql

dsql is a skill for Claude Code from awslabs/agent-plugins. It costs 247 tokens per session (5,655 once invoked), scanned A, original, Apache-2.0.

A guide for building applications with Aurora DSQL, Amazon’s serverless distributed SQL database with PostgreSQL compatibility. It covers database schemas, queries, migrations, access control, data loading, and troubleshooting.

In plain words
What is it for?
Use it to create schemas, run queries, perform migrations, connect with IAM authentication, design multi-tenant data, load data, convert schemas, and diagnose query or cluster problems.
Why use it?
It provides instructions for common database work while accounting for DSQL’s distributed behavior, authentication, and limits. It also explains patterns for moving schemas from MySQL or PostgreSQL.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the databases-on-aws plugin — 1 skill shipped together

Good fit Use it to create schemas, run queries, perform migrations, connect with IAM authentication, design multi-tenant data, load data, convert schemas, and diagnose query or cluster problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/agent-plugins/dsql
About the project

awslabs/agent-plugins is a collection of plugins, skills, instructions, an MCP server, a hook, and a setting that guide AI coding agents in architecting, deploying, and operating software on Amazon Web Services. It is for developers using coding agents such as Claude Code, Codex, and Cursor with AWS projects. The catalogue entries are the repository's own agent workflows and supporting components.

awslabs/agent-plugins · 955 stars · on GitHub

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.

Any agent
npx skills add awslabs/agent-plugins --skill dsql
Clone the repo
git clone --depth 1 https://github.com/awslabs/agent-plugins

Made for: Claude Code.

Or install databases-on-aws, the plugin that ships this one along with the rest of its 1 skill.

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

agentmods badge for dsql

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/agent-plugins/dsql/github.svg)](https://agentmods.dev/skills/awslabs/agent-plugins/dsql)
Your own site
<a href="https://agentmods.dev/skills/awslabs/agent-plugins/dsql"><img src="https://agentmods.dev/badge/skills/awslabs/agent-plugins/dsql/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.

agentmods 80×15 button for dsql

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/agent-plugins/dsql"><img src="https://agentmods.dev/badge/skills/awslabs/agent-plugins/dsql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 247 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 21
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 80
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 42
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 74
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 88
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 186
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found 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.1 $0.00247 $0.05655
Opus 5.5 $0.00099 $0.02262
Sonnet 5.5 $0.00049 $0.01131
Haiku 4.5 $0.00025 $0.00566

Measured 14d ago against content hash 0187689cbb0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsql 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (mcp/tools/safe_query.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/databases-on-aws/skills/dsql/SKILL.md · 300 lines

How it starts

The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Amazon Aurora DSQL Skill

Aurora DSQL is a serverless, PostgreSQL-compatible distributed SQL database. This skill covers direct query execution via MCP tools, schema management, migrations, multi-tenant isolation, IAM auth, and bulk data loading via aurora-dsql-loader.


Reference Files

Load these files as needed for detailed guidance:

Core:

Reference When to Load Contains
development-guide.md ALWAYS before schema changes or DB operations Best practices, DDL rules, transaction limits, foreign key constraints
foreign-keys.md MUST load for foreign key operations or migrations FK syntax, actions, validation, tenant keys
language.md MUST load for language-specific choices Driver selection, DSQL Connectors, connection code
access-control.md MUST load for roles, grants, or sensitive data Scoped role setup, IAM-to-database role mapping
troubleshooting.md SHOULD load for errors or unexpected behavior OCC and 23503, FK, connections, cluster state
limits-and-error-codes.md SHOULD load before sizing batches, keys or indexes, or on 54000/0A000/54011 Every limit, rejection and quota with SQLSTATE and exact message
dsql-examples.md Load for implementation examples Multi-tenant access, batch operations, identity and sequences, connection pooling
onboarding.md User requests "Get started with DSQL" Interactive step-by-step guide
occ-retry-patterns.md MUST load for OCC retry code or conflict mitigation Connectors, 40001 retry, non-retryable 23503, FK read conflicts, idempotent design
cost-alerts.md MUST load before creating or debugging cost alarms, or explaining cluster cost TotalDPU alarm, hourly threshold from a monthly budget, SNS notification

Read the full file on GitHub · 300 lines

Files

What ships with it

60 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. 14d ago Changed · +1 tokens per session 0187689cbb0f
  2. 1mo ago Changed · +17 tokens per session 7a53b87c2445
  3. 1mo ago Changed 1772cfe47b11
  4. 2mo ago Changed 82f8e2a0e514
  5. 2mo ago Changed · +2 tokens per session c93493e9eee2
  6. 3mo ago First seen · 300 lines · 227 tokens per session scan A bc2cf436f8da

Subscribe to this mod's changes

dsql is a skill published in the GitHub repository awslabs/agent-plugins (955 stars, last pushed today), licensed Apache-2.0. It adds 247 tokens to every session and 5,655 once invoked, about $0.0010 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.

Related

dsql compared with skills from other repositories

dsql next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsqlawslabs/agent-pluginsSkill955todayApache-2.0A247Claude Code
pgvector-searchArieGoldkin/claude-forgeSkill73mo agoMITA32Claude Code
amazon aurora dsqlawslabs/mcpSkill10.0ktodayApache-2.0A46Claude Code
azure-resource-manager-postgresql-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA97Claude Code
azure-postgres-tsmicrosoft/skillsSkill3.3kyesterdayMITA94Claude Code
database-patternsyonatangross/orchestkitSkill312todayMITA32Claude Code
sql-optimizerMathews-Tom/armorySkill3466d agoMITA78Claude Code