Skip to content
Skill Authoring
Skill

/codegen-diagram

基于当前项目/代码生成 Draw.io 图表,支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件(mxGraph XML),可直接导入 Draw.io 编辑。当用户提到技术栈、系统架构、数据结构、E-R 图时使用。

BOOST
From plugin
best-skills
3k16 skills
Install
$ npx -y skills add xstongxue/best-skills --skill codegen-diagram --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/codegen-diagram

Context preview

The summary Claude sees to decide when to auto-load this skill.

基于当前项目/代码生成 Draw.io 图表,支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件(mxGraph XML),可直接导入 Draw.io 编辑。当用户提到技术栈、系统架构、数据结构、E-R 图时使用。

SKILL.md

codegen-diagram.SKILL.md
name: codegen-diagram
description: 基于当前项目/代码生成 Draw.io 图表,支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件(mxGraph XML),可直接导入 Draw.io 编辑。当用户提到技术栈、系统架构、数据结构、E-R 图时使用。

代码生成·项目图表

本 Skill 指导 Agent 基于**当前项目/代码仓库**生成 Draw.io 格式图表,支持四种类型:技术栈图、系统架构图、数据结构图、E-R 图。

Step 0:任务识别

| 用户表述 / 关键词 | 执行 | | ------------------ | ----------------------------- | | 技术栈、整体技术栈、组件选型 | `reference/tech-stack.md` | | 系统架构、分层结构、调用流程 | `reference/system-arch.md` | | 数据结构图、表结构图、实体字段关系图 | `reference/data-structure.md` | | E-R 图、实体关系图、数据库关系图 | `reference/er-diagram.md` |

使用时机

  • 用户需要根据当前项目画技术栈图、系统架构图、数据结构图或 E-R 图
  • 用户提到「根据当前项目」「根据代码」「画我们系统的……」

通用规范(四种图表共用)

Draw.io 基础

  • 使用 **mxGraphModel**,画布背景 `#FFFFFF`
  • 仅使用 Draw.io 内置形状,确保可立即打开与编辑
  • 节点标签简洁,符合技术文档表达习惯

色彩与字体

| 用途 | 颜色值 | | ------ | ------- | | 主色调 | #3366CC | | 副色调 | #7FBFFF | | 强调色 | #FF9966 | | 深色背景字体 | #FFFFFF | | 浅色背景字体 | #333333 | | 画布背景 | #FFFFFF |

  • 字体:Helvetica,字号 11–13
  • 连接线:`endArrow=classicBlockThin` 或 `blockThin`

输出要求

1. 图表总览(1–2 段文字) 2. 完整 mxGraph XML(可保存为 .drawio) 3. 导入与使用说明 4. 图题与论文引用建议

Ships withbest-skills

通用高质量 Skill 合集,可安装到 Cursor、Claude Code、Codex、OpenClaw 等 Agent 工具的 skills 目录使用。 与 best-prompts 的区别:best-prompts 是面向聊天框的 Prompt,需手动复制粘贴;best-skills 是面向 Agent 的 SKILL.md,Agent 会根据 description 中的关键词与触发场景自动判断是否调用,无需每次手动选择。

Get the whole plugin
Stats
2,994
Stars
214
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
7mo ago
Created
4h ago
Added

Repo: xstongxue/best-skills

Other skills on best-skills.

codegen-doc
Skill

codegen-doc

基于当前项目/代码生成各类文档,支持论文章节、项目梳理、重点问题、简历项目描述四种类型。当用户提到生成论文章节、项目梳理、技术难点、简历项目描述时使用。要给新同事看的上手文档(新人文档、架…