encore-infrastructure
Installation
SKILL.md
Encore Infrastructure Declaration
Instructions
Encore.ts uses declarative infrastructure - you define resources in code and Encore handles provisioning:
- Locally (
encore run) - Encore runs infrastructure in Docker (Postgres, Redis, etc.) - Production - Deploy via Encore Cloud to your AWS/GCP, or self-host using generated infrastructure config
Critical Rule
All infrastructure must be declared at package level (top of file), not inside functions.
Databases (PostgreSQL)
import { SQLDatabase } from "encore.dev/storage/sqldb";
// CORRECT: Package level
Related skills
More from encoredev/skills
encore-service
Structure and organize Encore.ts services.
354encore-api
Create type-safe API endpoints with Encore.ts.
350encore-code-review
Review Encore.ts code for best practices and anti-patterns.
346encore-auth
Implement authentication with auth handlers and gateways in Encore.ts.
345encore-database
Database queries, migrations, and ORM integration with Encore.ts.
337encore-testing
Test APIs and services with Vitest in Encore.ts.
333