backend-dev-guidelines

Guide backend feature implementation with layered entry points, services, and data access.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/postfiatorg/langfuse --skill backend-dev-guidelines-postfiatorg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/postfiatorg/langfuse/tree/main/.claude/skills/backend-dev-guidelines
Command: npx skills add https://github.com/postfiatorg/langfuse --skill backend-dev-guidelines-postfiatorg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured guide to implement backend features with consistent layering (entry points, services, and data access) across Langfuse's Next.js + tRPC monorepo.

Core Features & Use Cases

  • Establish consistent backend patterns across web and worker packages
  • Provide checklists for Router, Services, Repositories, Testing, Observability
  • Show architecture and data flow details

Quick Start

Implement a new backend feature by wiring a thin tRPC procedure to a service that orchestrates repositories or Prisma, with input validation via Zod and proper error handling.

Frequently Asked Questions about backend-dev-guidelines

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

FAQPage Schema
How do I structure backend features in a Next.js and tRPC monorepo?

Structure backend features in a Next.js and tRPC monorepo by enforcing a layered architecture with thin entry points, service orchestration, and data access repositories to ensure separation of concerns and maintainability.

What is the best way to implement tenant isolation for multi-tenant backend APIs?

The best way to implement tenant isolation for multi-tenant backend APIs is to enforce projectId tenant isolation throughout your service and repository layers, ensuring data access is strictly scoped per project.

How do I validate inputs and manage configuration in a tRPC router?

Validate inputs and manage configuration in a tRPC router by using Zod v4 for schema validation and loading environment variables through env.mjs and env.ts files for centralized config management.

How do I add observability to BullMQ queue processors and tRPC procedures?

Add observability to BullMQ queue processors and tRPC procedures by integrating OpenTelemetry, which provides structured tracing and monitoring across your web and worker packages.

Does this backend layering guide support both Prisma and ClickHouse data access?

Yes, this backend layering guide supports both Prisma and ClickHouse data access by providing structured checklists for repositories, ensuring consistent data flow patterns across relational and analytical databases.

When should I separate service logic from data access repositories in backend development?

You should separate service logic from data access repositories in backend development when building scalable features, allowing services to orchestrate repository calls while keeping database queries isolated and maintainable.