encore-infrastructure

Declare and provision databases, messaging topics, cron schedules, and secrets for Encore.ts applications.

26|5|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/encoredev/skills --skill encore-infrastructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: encore-infrastructure
Source: https://github.com/encoredev/skills/tree/main/encore/infrastructure
Command: npx skills add https://github.com/encoredev/skills --skill encore-infrastructure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Declarative infrastructure for Encore.ts lets you define databases, Pub/Sub, cron jobs, and secrets in one place, simplifying local development and production deployments.

Core Features & Use Cases

  • Declarative, package-level resource declarations for databases, messaging, cron jobs, and secrets.
  • Supports migrations, versioned storage, and secure secret usage across environments.
  • Use Case: Define all infrastructure for a service in a single package and reproduce the same setup in local and cloud environments.

Quick Start

Declare all infrastructure resources at the package root in Encore.ts and deploy to your chosen environment with the standard Encore workflows.

Frequently Asked Questions about encore-infrastructure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is declarative infrastructure and how does it work for backend services?

Declarative infrastructure provisions resources like databases and Pub/Sub topics directly in code. You define resources at the package root to ensure repeatable, environment-agnostic setups across local development and cloud deployments.

How do I declare databases and messaging topics in Encore.ts?

To declare databases and messaging topics in Encore.ts, define all infrastructure resources at the package root. This enforces package-level declarations, enabling you to reproduce identical setups across local and production environments.

Can I manage cron schedules and secrets across local and production environments?

Yes, declarative infrastructure manages cron schedules and secrets across local and production environments. It provides secure secret access, versioned storage, and resource lifecycle guidance as first-class citizens for your backend services.

Does Encore.ts support database migrations for declarative infrastructure?

Yes, Encore.ts supports database migrations within its declarative infrastructure framework. This ensures versioned storage and secure resource lifecycle management are maintained consistently across all deployment environments.

What is the best way to achieve environment-agnostic infrastructure for cloud applications?

The best way to achieve environment-agnostic infrastructure is by declaring resources like databases and cron jobs in a single package. This approach enforces package-level declarations, ensuring identical setups from local development to production.

Why define infrastructure resources at the package root in Encore.ts?

Defining infrastructure resources at the package root enforces repeatable, environment-agnostic infrastructure. This simplifies local development and production deployments by treating resource lifecycle guidance and migrations as first-class citizens.