backend-dev-guidelines

Provide backend development guidelines for a Next.js 14/tRPC/Express/TypeScript monorepo.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/yashvinthan/DuskSpendr --skill backend-dev-guidelines-yashvinthan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/yashvinthan/DuskSpendr/tree/main/.agents/skills/backend-dev-guidelines
Command: npx skills add https://github.com/yashvinthan/DuskSpendr --skill backend-dev-guidelines-yashvinthan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to ensure consistency and best practices in Langfuse's backend development, streamlining the creation of robust and maintainable code.

Core Features & Use Cases

  • Standardized Architecture: Enforces a layered architecture for web and worker packages.
  • Technology Stack Guidance: Covers tRPC, Next.js 14, BullMQ, Prisma, ClickHouse, OpenTelemetry, and Zod v4.
  • Use Case: When building a new tRPC router for user authentication, consult this Skill for the correct procedure definition, input validation with Zod, and service layer integration.

Quick Start

Follow the checklist for creating a new tRPC feature in the web package.

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 a tRPC router in a Next.js and TypeScript monorepo?

To structure a tRPC router in a Next.js and TypeScript monorepo, follow a layered architecture that separates tRPC routers, public API endpoints, and service layer integration for maintainable code.

What is the best way to validate API inputs in a tRPC backend?

The best way to validate API inputs in a tRPC backend is using Zod v4 to enforce schema validation, ensuring data integrity before processing procedures within your service layer.

How do I implement tenant isolation in a TypeScript backend service?

To implement tenant isolation in a TypeScript backend service, apply tenant isolation patterns within your database access layer using Prisma and ClickHouse to enforce strict data boundaries.

How does observability work with OpenTelemetry in an Express backend?

Observability with OpenTelemetry in an Express backend works by tracing requests across tRPC routers, BullMQ queue processors, and services to provide comprehensive application monitoring.

Can I use BullMQ queue processors in a Next.js 14 web package?

Yes, you can use BullMQ queue processors in a Next.js 14 monorepo by enforcing a layered architecture that separates web packages from worker packages for background job processing.

What testing strategies should I use for Prisma and ClickHouse database access?

Testing strategies for Prisma and ClickHouse database access should enforce specific validation and layered architecture patterns to ensure data integrity across tenant isolation boundaries.