code-rules

Installation
SKILL.md

代码生成规范

必须遵守

  1. 只使用 var 声明变量
  2. 不使用箭头函数 =>
  3. 不使用 letconstclass、模板字符串
  4. 代码最后一行必须返回字符串结果
  5. 代码总长度不超过 3000 字符

安全规范

  1. 所有文档操作用 try/catch 包裹
  2. 操作前检查对象存在性
  3. 不要删除非选区内容(除非明确要求)
  4. 大批量修改前先确认段落数量
  5. 不要修改文档属性(作者、日期等),除非明确要求
Installs
1
GitHub Stars
3
First Seen
Jul 21, 2026
code-rules — claude-office-skills/claude-wps-word-plugin