Agent skill

backend-dev-guidelines

Shared backend guide for Langfuse's Next.js 14, tRPC, BullMQ, and TypeScript monorepo. Use when creating or reviewing tRPC routers, public REST endpoints, BullMQ queue processors, backend services, middleware, Prisma or ClickHouse data access, OpenTelemetry instrumentation, Zod validation, env configuration, or backend tests across web, worker, or packages/shared.

Stars 24,320
Forks 2,456

Install this agent skill to your Project

npx add-skill https://github.com/langfuse/langfuse/tree/main/.agents/skills/backend-dev-guidelines

SKILL.md

Backend Development Guidelines

Use this skill for backend and API work across web/, worker/, and packages/shared/.

When to Apply

  • Creating or modifying tRPC routers and procedures
  • Creating or modifying public API endpoints
  • Creating or modifying queue processors, producers, or queue-backed workflows
  • Building or refactoring backend services and repositories
  • Working on backend auth, middleware, validation, or observability
  • Updating Prisma or ClickHouse access patterns
  • Adding or fixing backend tests

How to Read This Skill

  • Start with AGENTS.md when the task spans multiple backend areas or you need the end-to-end checklists.
  • Read only the specific reference file that matches the work when the scope is narrower.

Reference Map

Topic Read this when File
Architecture and package boundaries You need the web/worker/shared split, request flow, or queue lifecycle references/architecture-overview.md
Routing and controllers You are writing tRPC procedures, public API routes, or queue entrypoints references/routing-and-controllers.md
Middleware and auth You are changing request auth, permissions, or middleware composition references/middleware-guide.md
Services and repositories You are placing business logic, repository code, or DI patterns references/services-and-repositories.md
Database access You are touching Prisma, ClickHouse, tenant filters, or query patterns references/database-patterns.md
Configuration You are adding env vars, startup config, or runtime toggles references/configuration.md
Testing You are adding or updating backend tests references/testing-guide.md

Full Compiled Guide

Read AGENTS.md for the complete backend guide with checklists, directory conventions, imports, architecture, and cross-cutting practices.

Expand your agent's capabilities with these related and highly-rated skills.

langfuse/langfuse

frontend-browser-review

Shared workflow for browser-based review of user-visible frontend changes in Langfuse. Use when a change affects UI behavior, layout, styling, navigation, or browser-visible regressions and should be checked with the Playwright MCP server before signoff.

24,320 2,456
Explore
langfuse/langfuse

changelog-writing

Shared workflow for writing Langfuse changelog entries after a feature is complete. Use when a branch is ready for merge and a changelog entry or changelog draft is needed.

24,320 2,456
Explore
langfuse/langfuse

add-model-price

Use when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI, Anthropic, Bedrock, Vertex, Azure, or Gemini model pricing.

24,320 2,456
Explore
langfuse/langfuse

code-review

Shared code review workflow for Langfuse. Use when reviewing a PR, branch, diff, or local changes for correctness, regressions, risk, and missing tests. Start with references/review-checklist.md for repo-specific review rules and use package AGENTS.md files plus any matching shared skills when the change touches those areas.

24,320 2,456
Explore
langfuse/langfuse

turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

24,320 2,456
Explore
langfuse/langfuse

agent-setup-maintenance

Shared workflow for editing Langfuse's repo-owned agent setup under `.agents/`. Use when changing AGENTS files, shared skills, `.agents/config.json`, generated shim behavior, provider discovery paths, or install-time agent sync.

24,320 2,456
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results