refactor: 精简 AGENTS 重复说明 (#5)

This commit is contained in:
QiuSW
2026-08-08 10:03:38 +08:00
parent 874ca626b3
commit c9f1bc8832
2 changed files with 21 additions and 31 deletions
+5
View File
@@ -181,6 +181,11 @@ def check_agent_efficiency_rules(errors: list[str], root: Path = ROOT) -> None:
"#### 渐进执行和修复",
"#### 复用已验证事实",
"#### 明确停止条件",
"单元任务是唯一正式实施单位",
"高风险修改必须停止",
"用户没有明确验收通过前不得关闭",
"长期文档必须先修改 Wiki",
"提交只包含当前工单相关文件",
)
for section in missing_sections(content, required):
errors.append(f"AGENTS.md 缺少:{section}")