phamtiendatbg92__ai-gent-for-java__.claude__skills__mermaid-standards
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
02 资源文件 1
- 参考文档diagram-conventions.md12.9 KB
03 SKILL.md 正文
Mermaid Standards Skill
This skill provides standardized conventions for creating Mermaid diagrams in technical design documents.
When to Use This Skill
Claude will automatically reference this skill when:
- Generating technical design documents (
/generate-design) - Creating architecture visualizations
- Documenting system flows and interactions
- Drawing class structures or entity relationships
Contents
All diagram standards are documented in diagram-conventions.md:
- Default theme configuration (Mermaid's built-in default)
- Class diagram conventions
- Sequence diagram conventions
- Flowchart conventions for activity/workflow diagrams
- Complete working examples for each diagram type
Design Principles
- Consistency: All diagrams use the same syntax patterns and Mermaid default theme
- Clarity: Stereotypes (
<<new>>,<<modified>>,<<existing>>) show change impact - Completeness: Diagrams include both happy paths and error handling
- Readability: Keep diagrams focused and not overly complex
- Native Support: Mermaid renders natively in GitHub, GitLab, and most markdown viewers
How to Apply These Standards
When generating design documents:
- Reference this skill for all Mermaid diagram generation
- Use Mermaid's default theme (no custom configuration needed)
- Use appropriate diagram types based on what you're documenting:
- Class diagrams: Show component structure and relationships
- Sequence diagrams: Show request flows and interactions
- Flowcharts: Show complex business logic and decision points
- Always include error handling paths in sequence and flowchart diagrams
- Use stereotypes to clearly indicate which components are new, modified, or existing
Advantages of Mermaid
- Native Rendering: GitHub, GitLab, and many tools render Mermaid diagrams directly
- Simple Syntax: Easier to read and write than PlantUML
- No Dependencies: No need for external rendering engines
- Live Diagrams: View diagrams directly in markdown without image generation
- Version Control: Diagrams are text-based and diff-friendly
Extensibility
This skill can be extended in the future with:
- Entity-Relationship Diagrams (ERD) for database design
- State diagrams for lifecycle management
- Gantt charts for project planning
- Pie charts for data visualization
- Git graphs for branch visualization
For detailed conventions and examples, see diagram-conventions.md
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.