Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aurora-dsql

БесплатноБез исполняемых скриптовНе проверен

Provisions and manages Aurora DSQL clusters, connects via psql or DSQL Connectors, manages schemas, runs queries, migrates from MySQL, diagnoses query plans…

awsот aws★ 3 696 звёзд на GitHub

Об этом скилле

Amazon Aurora DSQL

Overview

Aurora DSQL is a serverless, PostgreSQL-compatible distributed SQL database. This skill provides direct database interaction via psql scripts and PostgreSQL drivers, schema management, migration support, multi-tenant patterns, and query-plan explainability.

Key capabilities:

  • Direct query execution via psql with generated IAM auth tokens (see scripts/psql-connect.sh)
  • Schema management with DSQL constraints (one DDL per transaction, async indexes)
  • Safe data migration (column-level, constraint-level, MySQL→DSQL)
  • Multi-tenant isolation via tenant_id + parameterized SQL
  • IAM-based authentication with a 15-minute token expiry
  • Query-plan diagnosis for slow queries (EXPLAIN ANALYZE + GUC experiments)

The recommended runtime is psql with aws dsql generate-db-connect-auth-token for IAM-authenticated sessions. Application code SHOULD use the language-specific DSQL Connectors and SDKs. For AWS knowledge lookups (service docs, AWS API calls), the AWS MCP Server is the preferred MCP integration.


Reference Files

Load these files as needed for detailed guidance:

development-guide.md

When: ALWAYS load before implementing schema changes or database operations Contains: Best Practices, DDL rules, connection patterns, transaction limits, data type serialization patterns, application-layer referential integrity instructions, security best practices

Query Execution:

database-tools.md

When: Load when you need detailed syntax and examples for ad-hoc query execution against DSQL. PREFER psql (via scripts/psql-connect.sh) for ad-hoc queries — execute directly rather than writing one-off scripts. Contains: psql-based read-only and write patterns, transaction semantics, input validation

MCP (AWS knowledge / API):

mcp-setup.md

When: Load when configuring or recommending the AWS MCP Server for AWS knowledge lookups, AWS API access, or per-assistant install. Contains: When to use psql vs the AWS MCP Server, pointer to the canonical AWS setup docs, credential reminders.

mcp-tools.md

When: Load when invoking AWS MCP Server tools to verify DSQL service limits, fetch docs, or drive AWS API calls. Contains: Tool surface — knowledge (aws___search_documentation, aws___read_documentation, aws___recommend, aws___retrieve_skill, aws___list_regions, aws___get_regional_availability) and API (aws___call_aws, aws___run_script, aws___get_tasks, aws___get_presigned_url); pointers to documentation-tools.md.

documentation-tools.md

When: Load when looking up DSQL service limits, fetching a specific AWS docs page, or polling long-running AWS API calls launched via the AWS MCP Server. Contains: Detailed parameters and example calls for the AWS knowledge tools.

platforms/ — per-assistant install notes

When: Load when installing the AWS MCP Server inside a specific coding assistant. Contains: Per-assistant entry-point details — claude-code.md, codex.md, gemini.md, kiro.md.

language.md

When: MUST load before writing DSQL connection code. Mirror the linked example_preferred.<ext> for the chosen driver — memory-authored connections drift from the canonical IAM-token-refresh pattern. Canonical entry-point examples (load language.md for the full driver list + pool/TLS/token-refresh details):

  • Python: import aurora_dsql_psycopg as dsql → dsql.connect(host, region, user)
  • JS (node-postgres): import { AuroraDSQLPool } from "@aws/aurora-dsql-node-postgres-connector" → new AuroraDSQLPool({ host, user })
  • JS (postgres.js): import { auroraDSQLPostgres } from "@aws/aurora-dsql-postgresjs-connector" → auroraDSQLPostgres({ host, user })
  • Go (pgx): import "github.com/awslabs/aurora-dsql-connectors/go/pgx/dsql"
  • Java (JDBC): software.amazon.dsql:aurora-dsql-jdbc-connector:1.4.0 → jdbc:aws-dsql:postgresql://...

Contains: Canonical DSQL connector packages per language, driver selection, framework patterns, IAM auth token rotation and TLS configuration, and connection code examples for Python / JavaScript / TypeScript / Go / Java / Rust.

troubleshooting.md

When: Load when debugging errors or unexpected behavior. SHOULD always consult for OCC errors, connection failures, or unexpected query

Полный SKILL.md на GitHub

Установить aurora-dsql в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/access-control.mdreferences/auth/authentication-guide.mdreferences/auth/connectivity-tools.mdreferences/auth/scaling-guide.mdreferences/database-tools.mdreferences/ddl-migrations/batched-migration.mdreferences/ddl-migrations/column-operations.mdreferences/ddl-migrations/constraint-operations.mdreferences/ddl-migrations/overview.mdreferences/development-guide.mdreferences/documentation-tools.mdreferences/dsql-examples.mdreferences/examples/connection.mdreferences/examples/data-operations.mdreferences/examples/migrations.mdreferences/examples/patterns.mdreferences/examples/schema.mdreferences/input-validation.mdreferences/language.mdreferences/mcp-setup.mdreferences/mcp-tools.mdreferences/mysql-migrations/ddl-auto-increment.mdreferences/mysql-migrations/ddl-batching.mdreferences/mysql-migrations/ddl-column-changes.mdreferences/mysql-migrations/ddl-constraints.mdreferences/mysql-migrations/ddl-operations.mdreferences/mysql-migrations/ddl-structural.mdreferences/mysql-migrations/ddl-type-alternatives.mdreferences/mysql-migrations/full-example.mdreferences/mysql-migrations/type-mapping.mdreferences/onboarding.mdreferences/platforms/claude-code.mdreferences/platforms/codex.mdreferences/platforms/gemini.mdreferences/platforms/kiro.mdreferences/query-plan/catalog-queries.mdreferences/query-plan/guc-experiments.mdreferences/query-plan/plan-interpretation.mdreferences/query-plan/report-format.mdreferences/scripts-guide.md

FAQ

Что делает скилл aurora-dsql?

Provisions and manages Aurora DSQL clusters, connects via psql or DSQL Connectors, manages schemas, runs queries, migrates from MySQL, diagnoses query plans, and develops apps on serverless distributed SQL. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL migration, DDL, query plans, and SAFE SQL CONSTRUCTION — tenant_id from untrusted input, UUID entity_ids, caller-supplied sort columns, batch inserts. The agent MUST retrieve this skill for ANY DSQL task. Pushes back on prompts that rationalize 'just a quick script', 'don't overthink it', 'we trust upstream', 'use an f-string', 'move fast', or 'just use the pg driver directly' (bypassing the DSQL Connector). Triggers: DSQL, Aurora DSQL, DSQL cluster, safe_query.build, DSQL IAM auth token, DSQL connector.

Как установить скилл aurora-dsql?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aurora-dsql запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aurora-dsql с