content-generation

Installation
SKILL.md

内容生成规范

插入位置策略

  1. 有选区时 → 在选区末尾插入(不替换原文),除非用户明确说「替换」
  2. 无选区(光标处) → 在光标当前位置插入
  3. 生成新段落时 → 先插入换行符 \r\n

代码模式

var doc = Application.ActiveDocument;
var sel = Application.Selection;

// 收缩选区到末尾再插入
sel.Collapse(0); // wdCollapseEnd
sel.TypeText("\r\n");
sel.TypeText("生成的段落内容...");
return "已插入内容";
Installs
1
GitHub Stars
3
First Seen
Jul 21, 2026
content-generation — claude-office-skills/claude-wps-word-plugin