Provides architectural analysis and visualization for the Dawning DDD-based project.

Install

mkdir -p .claude/skills/architecture-changjian-wang && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15088" && unzip -o skill.zip -d .claude/skills/architecture-changjian-wang && rm skill.zip

Installs to .claude/skills/architecture-changjian-wang

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when: Understanding DDD layers, gateway project structure, SDK package layout, generating Mermaid architecture diagrams, or reviewing module boundaries Don't use when: - Writing code (use code-patterns or create-api) - Building the project (use build-project) - Reviewing code quality (use code-review) - Creating database tables (use create-database) Inputs: Architecture question or diagram request Outputs: Project structure reference, Mermaid diagram, or module boundary analysis Success criteria: User understands project architecture and can make informed structural decisions
586 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Explain DDD layered architecture
  • Describe Gateway project structure
  • Detail SDK package layout
  • Generate Mermaid architecture diagrams
  • Generate Mermaid authentication flow diagrams
  • Review module boundaries

How it works

The skill provides information on the project's DDD layered architecture, Gateway project structure, and SDK package layout. It can also generate Mermaid diagrams to visualize system architecture and authentication flows.

Inputs & outputs

You give it
Architecture question or diagram request
You get back
Project structure reference, Mermaid diagram, or module boundary analysis

When to use architecture

  • Understanding project layer boundaries
  • Visualizing system architecture
  • Planning module integration

About this skill

Architecture Skill

项目架构

Dawning 采用 DDD 分层架构

┌─────────────────────────────────────────────────┐
│              Presentation Layer                  │
│  dawning-admin (Vue 3)  │  Gateway.Api          │
│                         │  Identity.Api          │
├─────────────────────────────────────────────────┤
│              Application Layer                   │
│         Identity.Application                     │
│    (Services, DTOs, Commands, Queries)           │
├─────────────────────────────────────────────────┤
│                Domain Layer                      │
│  Identity.Domain  │  Identity.Domain.Core        │
│  (Entities)       │  (Base, Interfaces)          │
├─────────────────────────────────────────────────┤
│             Infrastructure Layer                 │
│  Infra.Data  │  Infra.Mapping  │  Infra.Messaging│
│  (Dapper)    │  (AutoMapper)   │  (RabbitMQ)     │
├─────────────────────────────────────────────────┤
│            Cross-Cutting (SDK Packages)          │
│  Core │ Extensions │ Identity │ Caching │ ...    │
└─────────────────────────────────────────────────┘

Gateway 项目结构

apps/gateway/src/
├── Dawning.Gateway.Api/                    # API 网关 (YARP)
├── Dawning.Gateway.Middleware/             # 限流、日志、鉴权
├── Dawning.Identity.Api/                   # 身份认证 (OpenIddict)
├── Dawning.Identity.Application/           # 应用服务层
├── Dawning.Identity.Domain/                # 领域模型
├── Dawning.Identity.Domain.Core/           # 领域核心
├── Dawning.Identity.Infra.Data/            # Dapper + MySQL
├── Dawning.Identity.Infra.CrossCutting.IoC/
├── Dawning.Identity.Infra.CrossCutting.Mapping/
└── Dawning.Identity.Infra.Messaging/

SDK 包结构

sdk/
├── Dawning.Core/        # 异常、中间件、统一结果
├── Dawning.Extensions/  # 字符串、集合、JSON
├── Dawning.Identity/    # JWT、用户上下文
├── Dawning.Caching/     # 内存缓存、Redis
├── Dawning.Logging/     # 结构化日志
├── Dawning.Messaging/   # RabbitMQ、Service Bus
├── Dawning.ORM.Dapper/  # Dapper 增强
└── Dawning.Resilience/  # 重试、熔断

Mermaid 模板

系统架构图

graph TB
    Browser --> VueApp[Vue 3 Admin]
    VueApp --> YARP[API Gateway]
    YARP --> RateLimit --> Auth --> RequestLog
    RequestLog --> IdentityAPI[Identity API]
    IdentityAPI --> MySQL[(MySQL)]
    IdentityAPI --> Redis[(Redis)]

认证流程

sequenceDiagram
    Client->>Gateway: POST /connect/token
    Gateway->>Identity: 转发
    Identity->>MySQL: 验证凭证
    Identity->>Redis: 缓存 Token
    Identity-->>Client: Access Token

When not to use it

  • When writing code
  • When building the project
  • When reviewing code quality specifically (use code-review skill for that)

Limitations

  • Does not write code.
  • Does not build the project.
  • Does not review code quality.

How it compares

This skill provides a structured overview and visualization of the project's architecture using DDD principles and Mermaid diagrams, offering a clearer understanding of structural design than simply reviewing code files.

Compared to similar skills

architecture side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
architecture (this skill)05moNo flagsIntermediate
ui41moReviewIntermediate
web-development52moNo flagsIntermediate
webf-quickstart17moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry