architecture-patterns

Enforce the 7 Core Pillars of AI-Commerce v2.0 backend architecture.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/jlpbiuma/agent-skills --skill architecture-patterns-jlpbiuma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/jlpbiuma/agent-skills/tree/main/architecture-patterns
Command: npx skills add https://github.com/jlpbiuma/agent-skills --skill architecture-patterns-jlpbiuma

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that all backend code and refactors strictly adhere to the 7 Core Pillars of the AI-Commerce Platform v2.0 architecture, preventing architectural drift and maintaining code quality.

Core Features & Use Cases

  • Architectural Enforcement: Guides the creation of new features and refactoring to align with decoupled layers, repository patterns, and pure entities.
  • Dependency Boundary Management: Prevents common anti-patterns like controllers directly accessing the database.
  • Use Case: When developing a new API endpoint, use this Skill to ensure the controller calls a repository method, which in turn interacts with the database, maintaining the strict separation of concerns.

Quick Start

Use the architecture-patterns skill to refactor the product controller to use the product repository.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I enforce the repository pattern in FastAPI backend development?

Architecture patterns enforce decoupled layers by ensuring controllers call repository methods instead of directly accessing the database. This maintains strict separation of concerns and preserves domain entity purity in FastAPI backend development.

What is the repository pattern and how does it decouple database access in backend architecture?

The repository pattern decouples database access by acting as an intermediary layer between controllers and the database. It ensures thin controllers interact only with repository methods, preserving pure entities and maintaining architectural integrity during backend refactoring.

How do I refactor a FastAPI controller to use pure entities and repository methods?

Refactor a FastAPI controller by replacing direct database calls with repository method invocations. This creates thin controllers that handle request routing while keeping pure entities separated from data access logic.

Can I use this architecture enforcement for backend code reviews and refactoring?

Yes, this architecture enforcement applies to backend code reviews and refactoring. It evaluates code against the 7 Core Pillars to prevent architectural drift and ensure adherence to specific directory structures and interaction patterns.

Why does my FastAPI controller directly accessing the database violate clean code architecture?

A FastAPI controller directly accessing the database violates clean code architecture by bypassing the repository pattern. This breaks decoupled layers, causes architectural drift, and destroys the strict separation of concerns required for pure entities.

When do I need explicit agent I/O contracts in backend architecture?

You need explicit agent I/O contracts in backend architecture when defining interaction patterns between controllers, repositories, entities, and domain services. This enforces strict dependency boundaries and maintains architectural integrity across decoupled layers.