What problem does it solve?
LLMs frequently generate PostgreSQL syntax that fails or silently misbehaves on Amazon Redshift — such as CREATE INDEX, string_agg, SERIAL, pg_catalog queries, or stl_* system views — because Redshift only shares PostgreSQL's wire protocol, not its behavior. This Skill corrects those assumptions and provides verified Redshift-specific SQL, DDL, and operational guidance.
Core Features & Use Cases
- PostgreSQL-to-Redshift correction: Maps wrong patterns to correct ones (LISTAGG instead of string_agg, IDENTITY instead of SERIAL, MERGE instead of ON CONFLICT, SYS_* views instead of STL_*).
- DDL and data movement: Covers CREATE TABLE with DISTKEY/SORTKEY/ENCODE, COPY from S3 with IAM_ROLE and error handling, UNLOAD with KMS encryption, and Iceberg tables via USING ICEBERG.
- Metadata and troubleshooting: SHOW-command-first discovery, SYS_/SVV_ system view selection by deployment type, permission-denied diagnostics, and "relation does not exist" resolution flows.
- Use Case: A user asks why their COPY job failed on a Redshift Serverless workgroup. The Skill routes to the Data API recipe, runs a bounded long-polling loop, and queries sys_load_error_detail for row-level diagnostics.
Quick Start
Ask the agent to write a Redshift CREATE TABLE statement with proper distribution and sort keys, or to debug a failing COPY command on your Serverless workgroup.