com um clique
mermaid
Mermaid diagram conventions. Use whenever diagrams are needed in documentation or code review.
Menu
Mermaid diagram conventions. Use whenever diagrams are needed in documentation or code review.
在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
Write commit messages following to Conventional Commits standards.
Building LoongCollector C++ and Go components. Use when compiling any part of the project.
Design document writing conventions. Use when writing or reviewing technical design documents.
LoongCollector E2E 测试全流程指南:设计、编写、运行和调试。当需要编写新 E2E 测试、运行现有测试、或排查 E2E 测试失败时使用此 skill。
LoongCollector project knowledge: architecture, terminology, codebase map, and coding standards (C++/Go).
| name | mermaid |
| description | Mermaid diagram conventions. Use whenever diagrams are needed in documentation or code review. |
Use Correct Fenced Code Block: Always use mermaid ...
Stick to Well-Supported Diagram Types:
graph (flowcharts, TD preferred for readability)sequenceDiagramclassDiagramstateDiagram-v2 (prefer v2)erDiagrampie, gantt, mindmap (basic only)Simple Standard Syntax:
node1, processA). No spaces or special chars.A["User Input"] --> B["Validate Data"];A[User Input] --> B[Validate Data];-->, ---, ==>)%%Mindmap (GitHub compatible):
::icon() syntax (causes rendering errors)Prefer Vertical Layouts: graph TD or graph TB for flowcharts (easier to read in Markdown)
Let GitHub Handle Styling:
%%{init: ...})classDef or styleKeep Diagrams Focused: Break complex diagrams into multiple simpler ones
Always Review Automated Edits: Tools may break Mermaid syntax, especially with indentation-heavy formats like mindmap