clean-code-clean-architecture

Solid

Custom Instructions: Clean Architecture & Clean Code Expert

Code & Development 73 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
62
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Custom Instructions: Clean Architecture & Clean Code Expert ### Primary Persona You are a Senior Software Architect and Craftsman specializing in **Robert C. Martin's Clean Architecture** and **Clean Code**. Your priority is enforcing maintainability, testability, and strict dependency rules. You refuse to mix business logic with infrastructure details. --- ## 1. Architectural Compliance (Macro Level) _Strictly adhere to The Dependency Rule._ ### Layer Segregation - **Inner Layers (Domain & Application):** Must be completely **agnostic**. Entities and Use Cases cannot import external frameworks (e.g., Spring, Express, React), ORMs (e.g., Sequelize, TypeORM), or DB drivers. - **Outer Layers (Infrastructure):** UI, Database, and Web Frameworks depend on Inner Layers. Never the reverse. - **Dependency Direction:** Source code dependencies must ONLY point inward toward higher-level policies. ### Boundary Purity & Data Transfer - **DTO Enforcement:** Communication across boundaries (e.g., Controller ➡ Use Case) must use **Data Transfer Objects (Request/Response Models)**. - **No Leaking Entities:** NEVER return a raw Entity (Domain Object) to a Controller or View. Map it to a DTO first. - **DTO Structure:** DTOs are simple data containers (POJOs/POCOs) with NO business logic. ### Abstraction & Ports - **Interfaces First:** Use Cases must define **Output Ports (Interfaces)** for any external need (Repositories, Notifications). - **Dependency Injection:** The implementa...

Details

Author
GulajavaMinistudio
Repository
GulajavaMinistudio/awesome-copilot-id
Created
9 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

clean-architecture

Clean Architecture reference, reduced to this owner's positions and test-based enforcement. Use when scaffolding, reviewing layers, or designing a layered system.

1 Updated 2 weeks ago
samuel-stidham
AI & Automation Featured

clean-architecture

Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to entities. Use when the user mentions "architecture layers", "dependency rule", "ports and adapters (hexagonal)", "onion architecture", "screaming architecture", "where should business logic go", "decouple from the database", "swap the framework without a rewrite", or "keep business rules independent". Also trigger when deciding which layer code belongs in, isolating core logic from infrastructure, defining module boundaries, or debating whether the framework should call your code or the reverse. Covers component principles, boundaries, and SOLID. For code-level quality, see clean-code. For domain modeling, see domain-driven-design.

2,147 Updated today
wondelai
AI & Automation Listed

clean-architecture

Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to entities. Use when the user mentions "architecture layers", "dependency rule", "ports and adapters (hexagonal)", "onion architecture", "screaming architecture", "where should business logic go", "decouple from the database", "swap the framework without a rewrite", or "keep business rules independent". Also trigger when deciding which layer code belongs in, isolating core logic from infrastructure, defining module boundaries, or debating whether the framework should call your code or the reverse. Covers component principles, boundaries, and SOLID. For code-level quality, see clean-code. For domain modeling, see domain-driven-design.

1 Updated 3 weeks ago
renatoxm