/cowrite:text-logic-diagramfrom cowrite
Converts text into logic relationship SVG diagrams supporting progression, flow, cycle, hierarchy, comparison, and matrix types. Handles Chinese text and can generate multiple diagrams from one input.
Ships in cowrite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
将文本转换为精准的逻辑关系 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 文件,随后交给 cowrite_upload_asset 与 cowrite_insert_afterWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub spacezephyr/cowrite --plugin cowrite8 skills in this plugin
/ai-writing-assistantAI-powered writing assistant for social media content creation. Provides six structured methods for writing, outlining, completion, inspiration, revision optimization, and material integration./article-batch-illustrationAnalyze a complete Markdown article, plan a restrained set of illustration positions, and generate consistent article images through Cowrite's bundled image-studio. Use for 整篇配图, 批量配图, 给文章配图, or pasted Cowrite full-page illustration commands./baoyu-xhs-imagesGenerates Xiaohongshu (Little Red Book) infographic series with 10 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms./cowriteWrite or edit Markdown pages in the user's local Cowrite canvas. Use when the user asks to create an article/document "in cowrite", modify existing cowrite content, or fulfill a cowrite page's creation prompt. Also triggers on pasted commands that mention cowrite page IDs./image-studioGenerate Cowrite article illustrations, Xiaohongshu images, presentation visuals, covers, and structured diagrams with Codex's built-in image_gen tool. Use for 配图, 整篇配图, 小红书图片, PPT 图片, 封面, 逻辑图, 流程图, 架构图, or any Cowrite task that needs raster image generation./space-multi-design-ppt品牌设计风格驱动的幻灯片生成器。将用户内容智能匹配到 62 个顶级品牌设计系统(Apple、Notion、Claude、Stripe、Linear、Tesla 等),拉取真实品牌设计规范(DESIGN.md)后生成像素级还原品牌风格的 HTML 幻灯片,或用 python-pptx 原生构建可编辑 PPTX(制作前会询问用户要哪种输出)。用户要求"做 PPT"、"做个 slide"、"生成演示文稿"、"design slide"、"用 XX 风格做幻灯片"、"把这篇文章做成 deck"、"输出 pptx"、提到 presentation/keynote/路演/汇报材料,或发来一段内容希望变成幻灯片时,都应使用本 skill——即使用户没有提到"品牌"或"设计风格"。Other plugins' skills for the same job