Skills Plugins MCP Prompt Model 博客 我的中心

sql2er

Use when the user wants a Chen-model ER diagram from SQL CREATE TABLE statements or DBML, wants to rearrange or clean up an existing sql2er state, wants a skeleton-only overview with attributes hidden at generate time, or needs drawio/svg/png/json/html exports with final visual review.

DeepseekModel 官方收录技能 质量 优秀 · 78 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=ystemsrx-sql-to-er-skills-sql2er-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name sql2er description Use when the user wants a Chen-model ER diagram from SQL CREATE TABLE statements or DBML, wants to rearrange or clean up an existing sql2er state, wants a skeleton-only overview with attributes hidden at generate time, or needs drawio/svg/png/json/html exports with final visual review. sql2er Use the bundled CLI from the repo root: AGENT=skills/sql2er/scripts/sql2er-agent.mjs State lives in one JSON file passed with --state <path> ; reuse the same state path for every command in a diagram session. Core workflow Generate the diagram: node $AGENT generate --input schema.sql --state er.json Use --hide-attrs only when the user wants an overview/skeleton, the schema is dense, or attributes are not important. Attribute visibility is fixed at generate ; export never adds or removes attributes. If fields, PKs, or column-level semantics matter, generate with attributes. Use --comment when table/column/ref comments carry readable business labels. Set labels before tuning layout because regenerating resets positions. If generated names are not semantic enough, relabel nodes before layout tuning: node $AGENT labels mode comment --state er.json node $AGENT labels set rel-orders-users-user_id-7 "placed by" --state er.json node $AGENT labels batch --file labels.json --state er.json Inspect diagnostics: node $AGENT describe --state er.json Use DIAGNOSTICS for structural decisions: crossings, overlaps, disconnected components, attribute overlaps, and attribute-line crossings. Use the ASCII map only as a rough orientation aid. If PARSER WARNINGS is present, fix every reported issue. If an issue cannot be fixed, report it to the user. Copy exact entity ids from the ENTITIES block for manual position edits. Improve layout as needed: node $AGENT layout optimal --state er.json node $AGENT attrs compact --state er.json node $AGENT swap entity-users-0 entity-orders-1 --state er.json node $AGENT move entity-users-0 600 400 --state er.json node $AGENT nudge entity-users-0 20 -10 --state er.json Automatic overlap avoidance is on by default and moves attributes first, then relationship diamonds, never entity rectangles. Use avoid off only when the user explicitly wants to preserve exact positions. Prefer layout optimal after major edits. Use attrs compact for the smallest attribute footprint and attrs moderate for a more even ring. Use swap , move , and nudge only when diagnostics or visual review show a local issue. Export and review: node $AGENT export svg --out er.svg --state er.json node $AGENT export png --out er.png --state er.json node $AGENT export drawio --out er.drawio --state er.json node $AGENT export html --out er.html --state er.json --lang zh Export HTML only when the user wants a portable manual fine-tuning editor; choose --lang zh|en for the page language. Always export SVG or PNG and inspect the image before finishing. Ensure labels are legible, the layout is balanced, and nodes/attribute ellipses do not overlap or sit on top of lines. If overlap or crossings are provably unavoidable, minimize them and make each remaining crossing/overlap clear. When HTML is exported, tell the user the best manual fine-tuning path: open the HTML, enable continuous force layout briefly, turn it off, enable automatic avoidance once, turn it off, double-click nodes to edit the label text inside them, then hand-tune the remaining local details. Cleanup rules crossings / overlaps : run layout optimal ; for a small local crossing, try swap . attrOverlaps / attrCrossings : compare attrs compact and attrs moderate , then keep the clearer result. Persistent attribute issues: run describe --details to identify the exact attribute/node/line pairs before local edits. Unwanted automatic movement: run avoid off ; turn it back on with avoid on before final review when possible. COMPONENTS > 1 : keep related clusters in one diagram, or use export <fmt> --split for separate files. Awkward aspect ratio: try rotate 90 . Busy attribute-heavy diagram: regenerate with --hide-attrs only if a skeleton-only answer satisfies the user. References Read references/commands.md for full command syntax, flags, describe output schema, export behavior, and recipes. Read references/data-model.md when node ids, edge types, cardinality, placeholder entities, self-references, or semantic labels matter.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。