General Patterns

Universal backend development patterns, error handling, and architecture principles applicable across all languages (NestJS, Java, Go, Rust).

takayatomose Updated

File contents

Skill: General Backend Patterns

Overview

Language-agnostic patterns for backend development applicable across NestJS, Java, Go, and Rust.

Rule Categories

Priority Category Impact
1 Universal Patterns HIGH
2 Error Handling HIGH

Core Expertise

  • Architecture Layers: Presentation, Application, Domain, and Infrastructure isolation.
  • Multi-Tenant Isolation: Context extraction and mandatory tenant validation.
  • Event-Driven Architecture: Cross-module communication via domain events.
  • Persistence Strategy: Relational (PostgreSQL), Append-Only (MongoDB), and Ephemeral (Redis).

Instructions for the Agent

  • Consult Internal Rules: Always refer to the rules/ directory within this skill for universal business logic and error handling standards.
  • Layer Integrity: Never skip layers; Presentation must go through Application which uses Domain.
  • Cross-Module Calls: Never call repositories directly across module boundaries; use events.

takayatomose/tas-agent-skills/tree/main/.agents/skills/general-patterns commit 7f0d24b026

Frequently asked questions

npx skillmds@latest add takayatomose/general-patterns