encore-service

Organize Encore.ts services with minimal directory layouts and middleware support.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organize Encore.ts services for scalable and maintainable backends.

Core Features & Use Cases

  • Minimal service structure with encore.service.ts as the required entry point.
  • Support for single-service, multi-service, and large-system patterns with clear directory layouts.
  • Guidance on service-to-service calls and middleware to enable clean, secure inter-service communication.

Quick Start

Create a new Encore service named my-service with encore.service.ts in its root, and add optional api.ts and db.ts as needed.

Frequently Asked Questions about encore-service

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

FAQPage Schema
How do I structure Encore.ts microservices for a large system?

Structure Encore.ts microservices using a minimal service layout with encore.service.ts as the required entry point, adding optional api.ts and db.ts files. It supports single-service, multi-service, and large-system directory patterns for scalable and maintainable backends.

What is the required entry point for an Encore.ts service?

The required entry point for an Encore.ts service is the encore.service.ts file located in the service root directory. Optional api.ts and db.ts files can be added alongside it to suit varying project needs and structure API endpoints and database logic.

Can I use middleware for service-to-service calls in Encore.ts?

Yes, Encore.ts supports middleware for service-to-service calls to enable clean, secure inter-service communication. The Skill provides specific guidelines for implementing middleware and structuring service-to-service calls within your microservices architecture.

What's the best way to organize a single-service Encore.ts backend?

The best way to organize a single-service Encore.ts backend is using a minimal service structure starting with encore.service.ts. You can then add optional api.ts and db.ts files as needed, keeping the directory layout simple and maintainable.

When do I need to add api.ts and db.ts files to my Encore.ts service?

You add api.ts and db.ts files to an Encore.ts service when your project requires dedicated files for API endpoint definitions and database operations. These files are optional and should be added to suit varying project needs as complexity grows.