cdk-rest-api-postgres
Installation
SKILL.md
Purpose
Use this skill to design and implement Postgres-backed REST APIs on AWS in a way that fits the target repository.
Treat Postgres plus Drizzle as the default persistence model. When the repository already has compatible constructs and runtime patterns, extend them. When those pieces do not exist, use the references in this skill as portable patterns to generate an equivalent structure.
Portable references live in references/. Load only the patterns needed for the task:
references/rest-api-pattern.mdfor centralized REST route composition patternsreferences/node-lambda-pattern.mdfor Lambda defaults and environment wiringreferences/importer-pattern.mdfor importing existing AWS resources into the stackreferences/response-pattern.mdfor controller and middleware response conventionsreferences/sql-drizzle-pattern.mdfor Drizzle schema, repository, andDatabaseContextguidancereferences/auth-pattern.mdfor Cognito authorizer, scopes, and handler-level group authorizationreferences/runtime-composition-pattern.mdforsrc/app.tssingleton wiring and dependency aggregationreferences/middleware-pattern.mdfor reusable Middy middleware such as auth, validation, HTTP error handling, and Powertools logger injectionreferences/services-pattern.mdfor logger, storage, notification, and mapper service designreferences/utilities-pattern.mdforRestResult, error types, status codes, cursor helpers, and related utilitiesreferences/schedule-pattern.mdfor EventBridge-triggered scheduled Lambda jobs