backend-endpoint

Scaffold Encore.ts backend API endpoints with Drizzle ORM database interactions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/andrewn6/traceway --skill backend-endpoint-andrewn6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-endpoint
Source: https://github.com/andrewn6/traceway/tree/main/.claude/skills/backend-endpoint
Command: npx skills add https://github.com/andrewn6/traceway --skill backend-endpoint-andrewn6

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new API endpoints, backend services, and CRUD operations to an Encore.ts application, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Service Scaffolding: Generates the necessary files (api.ts, service.ts, types.ts) for a new backend service.
  • Database Integration: Provides guidance on defining new database tables and writing Drizzle ORM queries.
  • Type Safety: Emphasizes defining explicit request and response types for robust API contracts.
  • Use Case: When a new feature requires storing and retrieving user preferences, this Skill can be used to create the backend API endpoints and associated database logic.

Quick Start

Use the backend-endpoint skill to create a new API endpoint for managing user profiles.

Frequently Asked Questions about backend-endpoint

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

FAQPage Schema
How do I scaffold a new Encore.ts API endpoint with CRUD operations?

To scaffold Encore.ts API endpoints, generate the required service files including api.ts, service.ts, and types.ts. This provides a structured layout defining business logic, database interactions, and explicit request/response types for CRUD operations.

What is the best way to define database tables for an Encore.ts backend service?

Defining database tables for an Encore.ts backend service involves using Drizzle ORM schema management. The skill provides code examples and conventions to structure Drizzle ORM queries and schema definitions alongside your service implementations.

Can I use Drizzle ORM with Encore.ts to manage backend service data?

Yes, Drizzle ORM is used with Encore.ts to manage backend service data. The skill facilitates database integration by providing guidance on writing Drizzle ORM queries and defining schemas within your Encore.ts application structure.

Does Encore.ts enforce type safety for API request and response contracts?

Encore.ts enforces type safety for API contracts by emphasizing explicit request and response type definitions. Defining these robust types within types.ts ensures structured and predictable data flow for your backend API endpoints.

How do I structure authentication and error handling in Encore.ts applications?

Authentication and error handling in Encore.ts applications adhere to specific framework conventions. The skill ensures consistency by providing structured code examples that follow Encore.ts best practices for scoping, pathing, and managing API errors.

Why do I need to separate API definitions from business logic in Encore.ts?

Separating API definitions from business logic in Encore.ts maintains code consistency and scalability. This structure isolates endpoint routing in api.ts from core implementations in service.ts, streamlining backend feature development and maintenance.