← 返回列表
全部 Skill›开发 Development›project-architecture-mermaid

project-architecture-mermaid

作者 @findsun-vn · 语言 en
Generate clean, valid Mermaid diagrams for system architecture, module structure, and E-R relationships during planning.
开发 Development前端开发通用待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
0
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Skill: project-architecture-mermaid

Purpose

Help the planner generate clean, valid, and readable Mermaid diagrams for:

  • system overall architecture
  • functional module structure
  • E-R diagrams

This skill is used during the planning stage only.


Required Diagram Types

Every project/module planning output should include these three Mermaid diagrams:

  1. System overall architecture diagram
  2. Functional module structure diagram
  3. E-R diagram

1. System Overall Architecture Diagram

Goal

Show the high-level technical architecture of the system.

Should include

  • actors/users
  • frontend
  • backend
  • database
  • optional external services if clearly relevant

Preferred syntax

Use:

  • flowchart TD

or

  • flowchart LR

Example pattern

flowchart LR

User[User]

Admin[Admin]

Frontend[Vue Frontend]

Backend[Spring Boot Backend]

DB[(MySQL)]

User --> Frontend

Admin --> Frontend

Frontend --> Backend

Backend --> DB

Rules

  • keep it high-level
  • do not overload with internal class details
  • use consistent naming with project/module text

2. Functional Module Structure Diagram

Goal

Show the business module breakdown of the project.

Should include

  • the full module map of the project
  • the current module
  • important relationships between modules if relevant

Preferred syntax

Use:

  • flowchart TD

or

  • flowchart LR

Example pattern

flowchart TD

System[Project System]

Auth[Auth Module]

User[User Module]

Product[Product Module]

Order[Order Module]

System --> Auth

System --> User

System --> Product

System --> Order

Rules

  • keep it business-oriented
  • do not turn this into a technical deployment diagram
  • keep names aligned with planner modules

3. E-R Diagram

Goal

Show core entities and their relationships.

Required syntax

Use Mermaid erDiagram.

Example pattern

erDiagram

USER ||--o{ ORDER : places

ORDER ||--|{ ORDER_ITEM : contains

PRODUCT ||--o{ ORDER_ITEM : referenced_by

Rules

  • show only the main entities relevant to the project/module
  • use singular entity names consistently if possible
  • relationships must match the planner text
  • do not invent excessive low-level columns unless already implied

Diagram Consistency Rules

All diagrams must align with:

  • project name
  • project description
  • module list
  • entity list
  • business rules

Do not let diagrams contradict the written plan.


Mermaid Syntax Rules

Allowed

  • flowchart TD
  • flowchart LR
  • erDiagram

Avoid

  • overly complex nested subgraphs unless truly needed
  • unsupported syntax
  • decorative clutter
  • mixing technical and business abstractions in the same diagram without purpose

Readability Rules

  • keep diagrams concise
  • prefer clarity over completeness
  • avoid too many nodes
  • avoid crossing concerns
  • use the same naming everywhere

Final Goal

The diagrams should be:

  • valid Mermaid
  • easy to read
  • aligned with the module plan
  • reusable in documentation
评论
Ffindsun-vn
findsun-vn
findsun-vn/E-Commerce
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@findsun-vn
所属大类开发 Development / 前端开发
国内可用性通用
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。