@routerhub/agent-rules 1.5.99 → 1.5.100
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 +1 -0
- package/package.json +1 -1
- package/rules/global.md +1 -0
package/AGENTS.base.md
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
- ⚠️ PR Title / Description / Test Plan 全部中文。一个 PR 只做一件事。
|
|
48
48
|
- ⚠️ 必须附截图作为可视化证据(前后对比、标注改动区域)。
|
|
49
49
|
- ⚠️ 创建 PR 使用 `/create-pr` skill(自动生成中文内容 + 效果截图 + CDN 上传)。
|
|
50
|
+
- ⚠️ **私有仓库的 PR/Issue 正文中插入截图,禁止使用 `raw.githubusercontent.com` 链接,必须使用 `github.com/OWNER/REPO/blob/BRANCH/path?raw=true` 格式。** 原因:`raw.githubusercontent.com` 不识别 GitHub 网页端的登录态(session cookie),GitHub 渲染 PR/Issue 正文图片时走的是 camo 图片代理服务器端匿名拉取——对私有仓库该链接返回 404,导致图片框显示为普通文字链接而非图片;`github.com/.../blob/...?raw=true` 走的是 github.com 主域名,能通过登录态正确鉴权,图片才能正常渲染。凡是「先 `git add -f` 把截图提交进 `screenshots/` 目录、再在 PR 描述里用 Markdown 引用」的流程,图片链接一律拼接为后一种格式。
|
|
50
51
|
|
|
51
52
|
## 安全
|
|
52
53
|
|
package/package.json
CHANGED
package/rules/global.md
CHANGED
|
@@ -47,6 +47,7 @@ name: "通用规则"
|
|
|
47
47
|
- ⚠️ PR Title / Description / Test Plan 全部中文。一个 PR 只做一件事。
|
|
48
48
|
- ⚠️ 必须附截图作为可视化证据(前后对比、标注改动区域)。
|
|
49
49
|
- ⚠️ 创建 PR 使用 `/create-pr` skill(自动生成中文内容 + 效果截图 + CDN 上传)。
|
|
50
|
+
- ⚠️ **私有仓库的 PR/Issue 正文中插入截图,禁止使用 `raw.githubusercontent.com` 链接,必须使用 `github.com/OWNER/REPO/blob/BRANCH/path?raw=true` 格式。** 原因:`raw.githubusercontent.com` 不识别 GitHub 网页端的登录态(session cookie),GitHub 渲染 PR/Issue 正文图片时走的是 camo 图片代理服务器端匿名拉取——对私有仓库该链接返回 404,导致图片框显示为普通文字链接而非图片;`github.com/.../blob/...?raw=true` 走的是 github.com 主域名,能通过登录态正确鉴权,图片才能正常渲染。凡是「先 `git add -f` 把截图提交进 `screenshots/` 目录、再在 PR 描述里用 Markdown 引用」的流程,图片链接一律拼接为后一种格式。
|
|
50
51
|
|
|
51
52
|
## 安全
|
|
52
53
|
|