backend-patterns

Standardize backend architecture patterns for Klabis Spring Modulith modules.

2|2|Updated Sep 20, 2023
One-click install
npx skills add https://github.com/zabiny/klabis --skill backend-patterns-zabiny
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-patterns
Source: https://github.com/zabiny/klabis/tree/main/.claude/skills/backend-patterns
Command: npx skills add https://github.com/zabiny/klabis --skill backend-patterns-zabiny

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Klabis teams face inconsistent backend implementations across modules. This Skill defines project-wide backend architecture patterns to ensure uniform structure and behavior for domain, application, infrastructure, and persistence layers.

Core Features & Use Cases

  • Standardized module layout and naming conventions for Klabis Spring Modulith projects.
  • Guidance on ports, adapters, domain events, and persistence strategies to reduce duplication and mistakes.
  • Use Case: when adding a new module, follow the canonical structure to align with canonical examples in the repository references.

Quick Start

Use the outlined structure to scaffold a new Klabis backend-patterns compliant module.

Frequently Asked Questions about backend-patterns

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

FAQPage Schema
How do I structure a new Spring Modulith backend module to prevent inconsistent implementations?

To structure a Spring Modulith backend module consistently, apply standardized architectural patterns for domain, application, infrastructure, and persistence layers. This enforces uniform naming conventions, ports, and events across projects to prevent ad-hoc implementations.

What are backend architecture patterns for domain, application, and persistence layers?

Backend architecture patterns define how to organize domain logic, application services, infrastructure adapters, and persistence mechanisms. They specify structure, naming, ports, and events to ensure uniform behavior and reduce duplication across modules.

How do I scaffold a Java Spring backend module with proper ports and adapters?

Scaffold a Java Spring backend module by applying canonical architecture patterns that specify ports, adapters, and domain events. This standardizes module layout and persistence strategies, guiding developers to align with repository references.

Does this backend architecture guidance apply to adding new aggregates and services?

Yes, this backend architecture guidance applies directly when adding new aggregates and services. It specifies structure, naming conventions, ports, events, and persistence strategies to ensure consistency and quality across Klabis modules.

What is the best way to enforce consistent naming and persistence conventions across backend modules?

The best way to enforce consistent naming and persistence conventions is to adopt standardized backend architecture patterns. Applying these patterns across domain, application, and infrastructure layers prevents duplication and ensures uniform module behavior.

How do I map queries and apply HATEOAS practices in a Spring backend module?

Map queries and apply HATEOAS practices by following standardized backend architecture patterns. These patterns specify query mapping and HATEOAS conventions to maintain consistency and quality across your Java Spring persistence and application layers.