architecture
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.zipInstalls 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 decisionsKey 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| architecture (this skill) | 0 | 5mo | No flags | Intermediate |
| ui | 4 | 1mo | Review | Intermediate |
| web-development | 5 | 2mo | No flags | Intermediate |
| webf-quickstart | 1 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
ui
nuxt
Build UIs with @nuxt/ui v4 — 125+ accessible Vue components with Tailwind CSS theming. Use when creating interfaces, customizing themes to match a brand, building forms, or composing layouts like dashboards, docs sites, and chat interfaces.
web-development
TencentCloudBase
Web frontend project development rules. Use this skill when developing web frontend pages, deploying static hosting, and integrating CloudBase Web SDK.
webf-quickstart
openwebf
Get started with WebF development - setup WebF Go, create a React/Vue/Svelte project with Vite, and load your first app. Use when starting a new WebF project, onboarding new developers, or setting up development environment.
comprehensive-testing-verification
ananddtyagi
MASTER Vue.js application testing with strict enforcement of verification protocols. Systematically test functionality with Playwright, validate bug fixes, verify features work, and enforce zero-tolerance policies for false success claims. MANDATORY testing with visual evidence before any deployment or functionality claims.
inertia-vue-development
eurofurence
>-
vueuse-motion-skilld
AdrianArenal
Vue Composables putting your components in motion. ALWAYS use when writing code importing \"@vueuse/motion\". Consult for debugging, best practices, or modifying @vueuse/motion, vueuse/motion, vueuse motion, motion.