encore-infrastructure

Declare databases, pub/sub topics, cron jobs, and secrets for Encore.ts deployments.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Ottric/LINE-DEV-LAB-V2 --skill encore-infrastructure-ottric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: encore-infrastructure
Source: https://github.com/Ottric/LINE-DEV-LAB-V2/tree/main/apps/services/.agents/skills/encore-infrastructure
Command: npx skills add https://github.com/Ottric/LINE-DEV-LAB-V2 --skill encore-infrastructure-ottric

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Encore Infrastructure Declaration skill enables teams to declaratively specify infrastructure resources (databases, pub/sub, cron jobs, object storage, and secrets) at the package level, and lets Encore provision and manage them consistently across environments.

Core Features & Use Cases

  • Declarative resource definitions for databases, Pub/Sub topics, cron jobs, and storage buckets.
  • Package-level scope ensures consistent deployments and reproducible environments across services and stages.
  • Applicable to local development with docker-based provisioning and production deployments via Encore Cloud.

Quick Start

Declare all resources at package level in your Encore.ts project and run encore run to provision locally.

Frequently Asked Questions about encore-infrastructure

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

FAQPage Schema
How do I declare infrastructure resources in Encore.ts?

Encore.ts infrastructure declarations are made at the package level. Defining databases, pub/sub topics, cron jobs, and object storage within packages ensures Encore provisions and manages them consistently across local and production environments.

What is package-level infrastructure declaration in Encore.ts?

Package-level infrastructure declaration in Encore.ts specifies resources like databases and secrets within specific packages. This scoping ensures consistent deployments and reproducible environments across all services and deployment stages.

Can I provision Encore.ts infrastructure locally for development?

You can provision Encore.ts infrastructure locally for development. Running `encore run` after declaring package-level resources triggers docker-based provisioning to replicate production infrastructure on your local machine.

Where should database migrations be placed in an Encore.ts project?

Database migrations in an Encore.ts project should be placed at the package root. This enforces package-level declarations and ensures consistent schema management across multi-service projects.

Does Encore.ts support declarative secret management for multi-service projects?

Encore.ts supports declarative secret management for multi-service projects. Secrets are declared at the package level, enforcing compliant handling of sensitive data and resource references across all environments.

What's the best way to manage pub/sub topics and cron jobs in Encore.ts?

The best way to manage pub/sub topics and cron jobs in Encore.ts is through declarative package-level definitions. This approach lets Encore provision and manage these resources consistently across local development and Encore Cloud production deployments.