brokle-backend-dev

Guide Go backend development for the Brokle platform with DDD and layered patterns.

3|2|Updated Sep 4, 2025
One-click install
npx skills add https://github.com/brokle-ai/brokle --skill brokle-backend-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brokle-backend-dev
Source: https://github.com/brokle-ai/brokle/tree/main/.claude/skills/brokle-backend-dev
Command: npx skills add https://github.com/brokle-ai/brokle --skill brokle-backend-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers through Brokle's Go backend architecture, ensuring consistency and adherence to best practices. It reduces complexity and errors in backend development by providing clear, actionable patterns.

Core Features & Use Cases

  • Architecture Guidance: Provides a clear overview of Brokle's scalable monolith, Domain-Driven Design (DDD), and multi-database strategy.
  • Mandatory Patterns: Enforces critical development patterns like professional domain aliases, industrial error handling across layers, and authentication mechanisms.
  • Development Workflow: Offers quick commands for development, testing, and database operations, accelerating the development cycle.
  • Use Case: A new developer needs to add a new API endpoint and service. This skill provides the exact structure, error handling, and testing patterns to follow, preventing common mistakes and speeding up onboarding.

Quick Start

I need to implement a new Go backend service for the billing domain. Provide the repository, service, and handler templates, and explain the mandatory domain alias and error handling patterns.

Frequently Asked Questions about brokle-backend-dev

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

FAQPage Schema
How do I structure a new Go backend service following Domain-Driven Design for the Brokle platform?

Structure your service with domain-driven design by organizing repository, service, and handler layers within a domain package. Use mandatory domain aliases, implement standardized error handling across all layers, and wire components through the DI container to ensure consistency with Brokle's scalable monolith architecture.

What error handling pattern should I use across Go backend layers?

Implement industrial-grade error handling consistently across repository, service, and handler layers. Capture domain errors at the repository level, propagate them through the service layer with context, and translate them to HTTP responses in handlers. This standardized approach prevents inconsistent error reporting across your API.

How do I implement authentication for Go backend endpoints on Brokle?

Use dual authentication patterns: API keys for SDK routes and JWT tokens for dashboard routes. Implement these as middleware components wired through the DI container, ensuring your handlers validate credentials before processing requests according to the route's intended consumer.

Can I build both server and worker binaries from the same Go codebase?

Yes. Brokle's architecture supports both server and worker binaries from a single monolith. Share domain logic, repositories, and services between them through the DI container while maintaining separate entry points and message-handling patterns for asynchronous worker tasks.

What databases does the Brokle backend support, and how do I interact with them?

The Brokle backend uses PostgreSQL for transactional data, ClickHouse for analytics, and Redis for caching. Implement repositories as abstraction layers for each database, wire them through dependency injection, and use standardized error handling to manage database-specific failures consistently.

What's the fastest way to onboard as a new developer adding an API endpoint?

Follow the provided templates for repository, service, and handler layers within your domain package. Apply mandatory domain aliases and error handling patterns, wire components through the DI container, and reference quick development commands for testing and database operations to accelerate your workflow.