expert-arch-enforcer

Enforce architecture constraints across codebases with a six-layer dependency model.

13|3|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/wonderslife/pdd-skills-v3 --skill expert-arch-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expert-arch-enforcer
Source: https://github.com/wonderslife/pdd-skills-v3/tree/main/skills/entropy/expert-arch-enforcer
Command: npx skills add https://github.com/wonderslife/pdd-skills-v3 --skill expert-arch-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

架构约束强制技能用于监控代码是否违反预设的不变量和架构边界,确保代码结构保持一致性,并在需要时自动触发架构检查、依赖检查或模块边界检查。

Core Features & Use Cases

  • 六层依赖模型遵循:Types → Config → Repo → Service → Runtime → UI,确保只能向前依赖。
  • 边界与数据验证:强制数据边界、入口参数验证、模块边界通信,避免架构漂移。
  • 检测与报告:检测依赖方向违规、命名规范、文件大小等违规,输出修复建议与 PR 触发。

Quick Start

立即对代码库执行架构约束检查,定位并修复违规项。

Frequently Asked Questions about expert-arch-enforcer

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

FAQPage Schema
How do I enforce architecture constraints and prevent dependency violations in a multi-layer codebase?

Architecture boundary enforcement monitors predefined invariants to prevent dependency violations. It checks module dependencies, data validation, naming conventions, and file size constraints to stop architecture drift across multi-layer codebases.

What is the six-layer dependency model for architecture checks?

The six-layer dependency model structures code into Types, Config, Repo, Service, Runtime, and UI layers. It enforces forward-only dependencies between these layers to maintain strict architectural integrity and prevent circular references.

How do I check module boundaries and data validation rules automatically?

You can check module boundaries by triggering architecture or dependency checks. The system validates entry parameters, enforces module boundary communication, and detects naming convention or file size violations automatically.

Can I integrate architecture checks into pull requests for remediation?

Yes, architecture checks support PR integration for remediation. When dependency direction violations or boundary breaches are detected, the system outputs repair suggestions directly within your pull request workflow.

Does the architecture enforcement tool support Chinese triggers for static analysis?

Yes, the architecture enforcement tool supports Chinese triggers for static analysis. You can initiate module boundary checks and dependency checks using Chinese commands to fit localized development workflows.

What are the limitations of using configurable thresholds for code quality enforcement?

Configurable thresholds for code quality enforcement require predefined invariants to be established before checking. Without explicit boundary rules and size constraints configured, the static analysis cannot detect architecture drift or generate remediation reports.