@routerhub/agent-rules 1.5.93 → 1.5.95
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 +3 -0
- package/package.json +1 -1
- package/rules/frontend.md +2 -0
- package/rules/global.md +1 -0
package/AGENTS.base.md
CHANGED
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
## Figma 还原
|
|
107
107
|
|
|
108
108
|
- Figma 设计还原使用 `/figma-to-code` skill,按 MCP 三步验证法执行。
|
|
109
|
+
- ⚠️ **禁止用截图还原页面,必须走 Figma MCP。** 截图只能得到像素观感,拿不到真实的尺寸、间距、颜色 token、字体、层级结构等设计数据,还原结果必然失真。所有 Figma 还原必须通过 MCP 读取节点的结构化设计信息。
|
|
109
110
|
|
|
110
111
|
## TDD 开发
|
|
111
112
|
|
|
@@ -121,6 +122,8 @@
|
|
|
121
122
|
|
|
122
123
|
## 前端规则
|
|
123
124
|
|
|
125
|
+
- ⚠️ **默认隐藏滚动条**:页面/容器出现滚动需求时,滚动条默认隐藏(内容仍可正常滚动),不得让滚动条可见。仅当用户明确说「需要滚动条」「可以有滚动条」「显示滚动条」等表述时,才允许显示。
|
|
126
|
+
|
|
124
127
|
<!-- 前端特有规则在此添加 -->
|
|
125
128
|
|
|
126
129
|
<!-- @domain: go-backend -->
|
package/package.json
CHANGED
package/rules/frontend.md
CHANGED
package/rules/global.md
CHANGED