lybtzyzs-arch-compliance

Community

Ensure code adheres to architectural standards, automatically.

Authorshouqitao
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automatically verifies that the project's codebase strictly adheres to its defined three-tier aligned architecture, DDD aggregate root principles, and Repository patterns. It proactively identifies and reports architectural violations, preventing technical debt and ensuring system maintainability and scalability.

Core Features & Use Cases

  • Three-Tier Architecture Validation: Uses serena to analyze project dependencies, ensuring correct flow (e.g., Presentation → Application → Infrastructure) and flagging any reverse or cross-layer dependencies.
  • DDD Aggregate Root Boundary Check: Scans code for direct modifications of aggregate root internal collections (e.g., medicalCase.Prescription.Items.Add(item)), recommending encapsulation through aggregate root public methods to maintain consistency.
  • Repository Pattern Enforcement: Verifies that repositories adhere to best practices, such as being interface-driven, having a single responsibility per aggregate root, and containing only data access logic (no business calculations).
  • Use Case: During a code review or CI/CD pipeline, this Skill scans the codebase. If it finds a Service layer directly modifying a Prescription entity's internal collection without going through the MedicalCase aggregate root, it flags this as a DDD boundary violation and suggests the correct encapsulated approach.

Quick Start

Check the current codebase for architectural compliance.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: lybtzyzs-arch-compliance
Download link: https://github.com/shouqitao/LYBTZYZS/archive/main.zip#lybtzyzs-arch-compliance

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.