SuperAPI AI Directory

content-generation

General & other

View repository

Updated 10-15 19:17

About this skill

Content Generation Guidelines

Insertion Position Strategy

  1. When there is a selection → Insert at the end of the selection (do not replace the original text), unless the user explicitly says "replace"
  2. No selection (at cursor) → Insert at the current cursor position
  3. When generating a new paragraph → First insert a line break \r\n

Code Mode

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

// 收缩选区到末尾再插入
sel.Collapse(0); // wdCollapseEnd
sel.TypeText("\r\n");
sel.TypeText("生成的段落内容...");
return "已插入内容";

Outline/Multi-paragraph Generation

  • Heading paragraphs use Range.Style = "标题 1" / "标题 2" , etc.
  • Body paragraphs use Range.Style = "正文" or default
  • Lists use Range.ListFormat.ApplyBulletDefault() or ApplyNumberDefault()

Content Style

  • Use formal, professional written Chinese by default
  • If the user requests a specific tone (casual, humorous, academic), adjust accordingly
  • Divide long content into paragraphs, preferably 2-4 sentences per paragraph
  • Report-type content needs a heading hierarchy structure