@routerhub/agent-rules 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.base.md +2 -0
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
- 不允许写 `class`,统一使用函数式编程。
|
|
50
50
|
- 不要写 `try/catch`。
|
|
51
51
|
- 代码注释统一使用中文编写。
|
|
52
|
+
- 能复用现有函数或配置时,不要复制粘贴出第二份近似实现。
|
|
52
53
|
|
|
53
54
|
## 测试用例规范
|
|
54
55
|
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
|
|
65
66
|
## 构建与发版前检查
|
|
66
67
|
|
|
68
|
+
- AI 写完代码后,必须先执行 `npm run format` 格式化本次修改涉及的文件。
|
|
67
69
|
- 每次完成需求修改后,必须先打开一个新终端执行 `npm run build`。
|
|
68
70
|
- 若构建报错,必须先修复所有错误并重新执行构建直至通过,再进行发版操作。
|
|
69
71
|
|