Summary
将文本内容进行逻辑拆解,生成精准的逻辑关系 SVG 图。支持递进、流程、循环、层次、对比、矩阵六种关系类型。当用户提供文本段落、文章、论述内容并要求生成逻辑图、思维导图、关系图、流程图时触发。支持中文,一次可拆解多张图。
spacezephyr/cowrite · Archived
将文本?
npx skills add spacezephyr/cowrite --skill text-logic-diagram
将文本内容进行逻辑拆解,生成精准的逻辑关系 SVG 图。支持递进、流程、循环、层次、对比、矩阵六种关系类型。当用户提供文本段落、文章、论述内容并要求生成逻辑图、思维导图、关系图、流程图时触发。支持中文,一次可拆解多张图。
This repository is archived — consider an actively maintained alternative.
>- AI-powered writing assistant for social media content creation. Provides six structured meth…
2 installs微信?
1 installs品牌设计风格驱动的幻灯片生成器。将用户?
1 installsGenerate Cowrite article illustrations, Xiaohongshu images, presentation visuals, covers, and s…
1 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a di…
29.1K installsUse when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.…
2.7K installsMANDATORY prerequisite — load this skill BEFORE every `generate_diagram` tool call. NEVER call …
1.5K installsCreate professional, dark-themed SVG diagrams of any type — architecture diagrams, flowcharts, …
13.9K installsCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to vis…
7.8K installsUse when a business process, workflow, lifecycle, or interaction between systems needs a diagra…
5.1K installsOther skills from spacezephyr/cowrite.
npx skills add spacezephyr/cowrite
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
7,391 B
SUMMARY.md
346 B
将文本转换为精准的逻辑关系 SVG 图,输出为独立 HTML 文件。
当用户提到以下场景时,主动使用此技能:
| 关系类型 | 适用场景 | 视觉特征 |
|---|---|---|
| 递进关系 | 概念渐进发展、层层深入 | 阶梯式排列,箭头从左到右或从上到下 |
| 流程关系 | 步骤顺序、阶段推进 | 线性/蛇形排列,带编号的节点 |
| 循环关系 | 概念循环往复、闭环反馈 | 环形排列,首尾相连 |
| 层次结构 | 包含、从属、分类关系 | 树形/金字塔/嵌套结构 |
| 对比关系 | 对照、比较、优劣分析 | 左右/上下对称排列 |
| 矩阵关系 | 多维度交叉、复杂关联 | 网格/象限布局 |
根据分析结果,使用本技能的设计规范生成 HTML 文件。
多段拆解规则:
<div class="diagram-card"> 容器支持深色和浅色主题切换,默认深色。
| 元素 | 颜色 |
|---|---|
| 页面背景 | #0a0a0a |
| 卡片背景 | #141414 |
| 节点填充主色 | #1a2332 → #243447 |
| 节点描边 | #3f72af |
| 主文字 | #ffffff |
| 副文字 | #8899aa |
| 连接线 | #556677 |
| 箭头 | #8899aa |
| 强调色 | #3f72af (蓝), #5dade2 (亮蓝) |
| 元素 | 颜色 |
|---|---|
| 页面背景 | #f5f7fa |
| 卡片背景 | #ffffff |
| 节点填充主色 | #e8edf2 → #dbe2ef |
| 节点描边 | #3f72af |
| 主文字 | #112d4e |
| 副文字 | #4a6785 |
| 连接线 | #aabbcc |
| 箭头 | #8899aa |
| 强调色 | #3f72af (蓝), #112d4e (深蓝) |
0 0 800 500,按需调整dx=1.5, dy=1.5, stdDeviation=2<!-- 带阴影的圆角矩形节点 -->
<rect x="X" y="Y" width="W" height="H" rx="8"
fill="url(#nodeGrad)" stroke="#3f72af" stroke-width="1.5"
filter="url(#shadow)"/>
<text x="CX" y="CY" class="text-primary" font-size="14" font-weight="600"
text-anchor="middle">概念名称</text>
<!-- 标准连接线 -->
<line x1="X1" y1="Y1" x2="X2" y2="Y2"
stroke="#556677" stroke-width="1" marker-end="url(#arrow)"/>
<!-- 虚线连接(表示弱关系/隐含关系) -->
<line x1="X1" y1="Y1" x2="X2" y2="Y2"
stroke="#556677" stroke-width="1" stroke-dasharray="4,3"
marker-end="url(#arrow)"/>
<!-- 曲线连接(避开障碍物) -->
<path d="M X1 Y1 Q CX CY X2 Y2"
stroke="#556677" stroke-width="1" fill="none"
marker-end="url(#arrow)"/>
<div class="diagram-card">
<div class="diagram-label">
<span class="label-tag">递进关系</span>
<span class="label-title">第一段:XXX 的渐进发展</span>
</div>
<div class="diagram-body">
<svg class="diagram-svg" viewBox="0 0 800 500">
<!-- SVG 内容 -->
</svg>
</div>
</div>
始终生成一个独立的 .html 文件,包含:
当 Cowrite 口令要求“HTML/PPT 解释图”时,使用以下覆盖规则:
.html 文件,随后交给 cowriteuploadasset 与 cowriteinsertafter