docs: 补充 Windows PowerShell 命令约束 (#28)

This commit is contained in:
ila
2026-09-02 15:21:04 +08:00
parent 90938be380
commit 40b99387ad
5 changed files with 67 additions and 5 deletions
+6
View File
@@ -111,6 +111,7 @@ CORE_DOCUMENT_REQUIREMENTS = {
"docs/04-local-development-and-verification.md": (
"## 环境要求",
"## Windows PowerShell 与 UTF-8",
"### PowerShell 语法与外部命令",
"## 第一次运行",
"## 常用调试方式",
"## 完成修改前",
@@ -349,6 +350,11 @@ def check_agent_efficiency_rules(errors: list[str], root: Path = ROOT) -> None:
"不得把模板自带的本地 `docs/` 当作新项目 Wiki 已初始化的证据",
"提交只包含当前任务相关文件",
"不得仅为设置编码重复启动一层 PowerShell",
"不得默认套用 Bash",
"复杂正则优先使用变量或 `rg -e`",
"单引号 PowerShell here-string",
"`foreach`、`if` 等语句块",
"使用真实目录配合 `-g/--glob`",
"文件解码和控制台输出分别处理",
"不得默认使用 `-ExecutionPolicy Bypass`",
"### 按治理模式选择最小设计证据",