Execute qualquer Skill no Manus
com um clique
com um clique
Execute qualquer Skill no Manus com um clique
Começar$pwd:
$ git log --oneline --stat
stars:2
forks:0
updated:26 de fevereiro de 2026 às 14:51
SKILL.md
| name | doc-core-api |
| description | WPS Writer 核心 API 参考与代码规范 |
| tags | ["api","writer","core"] |
| context | {"always":true} |
| modes | ["agent","plan"] |
new Function(code)() 在 WPS Plugin Host 中同步执行Application, wpsvar 声明变量(不支持 let/const/箭头函数)Application.ActiveDocument // 当前文档 (Document)
Application.Selection // 当前选区 (Selection)
Document.Content // 全文 Range
Document.Paragraphs // 段落集合 Paragraphs
Document.Tables // 表格集合 Tables
Document.Sections // 节集合 Sections
Document.Bookmarks // 书签集合
Selection.Text // 读取/设置选区文本
Selection.TypeText(text) // 在光标处输入(替换选区)
Selection.InsertAfter(text) // 在选区后插入
Selection.InsertBefore(text) // 在选区前插入
Selection.MoveDown(unit, count) // 下移光标
Selection.MoveRight(unit, count) // 右移光标
Selection.Collapse(direction) // 收缩选区 (0=wdCollapseEnd, 1=wdCollapseStart)
Selection.WholeStory() // 选中全文
Selection.HomeKey(unit) // 移动到文档/行首
Selection.EndKey(unit) // 移动到文档/行尾
Range.Text // 读取/设置文本
Range.InsertAfter(text) // 在范围后插入
Range.InsertBefore(text) // 在范围前插入
Range.Start / Range.End // 起止字符位置
Range.Select() // 将此范围设为选区
Range.Delete() // 删除范围内容
Range.Font.Name = "微软雅黑"
Range.Font.Size = 14
Range.Font.Bold = true / false
Range.Font.Italic = true / false
Range.Font.Color = 0xFF0000 // BGR 颜色
Range.Font.Underline = 1 // wdUnderlineSingle
Range.ParagraphFormat.Alignment = 1 // 0=左, 1=居中, 2=右, 3=两端
Range.ParagraphFormat.LineSpacing = 24 // 行距 (磅)
Range.ParagraphFormat.SpaceBefore = 6
Range.ParagraphFormat.SpaceAfter = 6
Range.ParagraphFormat.FirstLineIndent = 24 // 首行缩进
Range.Style = "标题 1" // 设置样式
Document.Tables.Add(range, rows, cols)
Table.Cell(row, col).Range.Text = "文本"
Table.Rows.Add()
Table.Columns.Add()
Table.Cell(row, col).Merge(Table.Cell(row, col2))
if (!doc) return "无活动文档";代码生成规范与安全约束
根据用户指令生成文档内容(报告、邮件、大纲、文章段落)
语法检查、拼写纠错、标点规范
对选中文本进行改写、润色、扩写、缩写、语气调整
文档格式化、样式设置、排版优化
多语言翻译(中英互译为主)