encore-go-infrastructure

Declare Go infrastructure resources for automated provisioning with Encore.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Declares Go infrastructure resources declaratively and automates their provisioning with Encore.

Core Features & Use Cases

  • Package-level declarations for databases, Pub/Sub topics and subscriptions, migrations, cron jobs, and object storage.
  • Supports local development with encore run and production deployments via Encore Cloud or self-hosted configurations.
  • Provides conventions and samples to ensure resources are defined at package scope and migrations follow a predictable naming scheme.

Quick Start

Create a Go package that declares resources at the package level and run encore run to provision infrastructure.

Frequently Asked Questions about encore-go-infrastructure

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

FAQPage Schema
How do I declare Go infrastructure declaratively for automated provisioning?

You can declare Go infrastructure declaratively by creating package-level declarations for databases, Pub/Sub, and storage, then running `encore run` to automate their provisioning locally or in production.

What Go infrastructure resources can I define at the package level?

Package-level declarations support defining databases, Pub/Sub topics and subscriptions, database migrations, cron jobs, and object storage resources across your local development and production deployment environments.

Does Encore work with local development and production deployments for Go infrastructure?

Yes, Encore supports local development using `encore run` and production deployments via Encore Cloud or self-hosted configurations, automatically provisioning the declared Go infrastructure resources for both environments.

What is the best way to structure database migrations with Encore in Go?

The best way to structure database migrations is to follow a predictable naming scheme within your Go packages, ensuring Encore can automatically apply the migrations during the infrastructure provisioning process.

How do I handle secrets and configuration values securely for Go infrastructure?

Encore requires secure access patterns for secrets and configuration values when declaring Go infrastructure, ensuring sensitive data is properly managed across local development and production deployment environments.

Can I use Encore for Pub/Sub topics and subscriptions in my Go application?

Yes, Encore allows you to declare Pub/Sub topics and subscriptions at the package level in your Go application, automating their provisioning alongside databases, cron jobs, and object storage resources.