Backend Architecture Patterns
Paste the following prompt into your AI chat to install this skill:
Please follow the guide at https://skillhub.cn/install/skillhub.md to install @org-02qudk26/architecture-patterns-zh.
About this skill
Problem
Backend code often becomes hard to test and hard to split when boundaries are unclear, dependency direction is weak, and business rules leak into controllers, repositories, and SQL. This skill is for architecture trade-off decisions, not for replacing a specific framework implementation.
How It Works
It starts from three established backend patterns: Clean Architecture, Hexagonal Architecture, and Domain-Driven Design, and helps engineers make domain boundaries, interfaces, dependencies, and migration paths explicit. The core steps include:
- Clarify domain boundaries, constraints, and scalability goals
- Choose a pattern that matches the domain complexity
- Define module boundaries, interfaces, and dependency rules
- Provide migration steps and validation checks
The material emphasizes mockable, testable, and splittable code structure, which is useful as a decision checklist when evolving a monolith or planning microservice boundaries.
Scope
Skip it if the task is a local function-level refactor, the system is primarily frontend, or the goal is implementation detail rather than architecture. It provides an architecture judgment and review framework; concrete technology choices still depend on language, framework, and team constraints.
Use Cases
- Design a payment backend and decide domain boundaries, interfaces, and dependency direction before coding.
- Extract order logic from a legacy monolith and define clean-architecture migration steps with checks.
- Build an architecture review checklist for pre-microservice splits, enforcing interfaces and testability.
- Decouple tightly coupled controllers and repositories using hexagonal use cases and ports.
Best For
- Backend engineers designing new services and module boundaries
- Architects refactoring monoliths into testable modules
- Engineering leads defining architecture standards for teams
- Platform engineers planning microservice split boundaries
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.