openspec-playwright 0.3.11 → 0.3.13
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/bin/openspec-pw +3 -2
- package/employee-standards.md +7 -2
- package/package.json +1 -1
package/bin/openspec-pw
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
#
|
|
3
|
-
|
|
2
|
+
# Resolve symlinks to find real script location, then go up to package root
|
|
3
|
+
REAL="$(readlink -f "$0" 2>/dev/null || echo "$0")"
|
|
4
|
+
DIR="$(cd "$(dirname "$REAL")/.." && pwd)"
|
|
4
5
|
node "$DIR/dist/index.js" "$@"
|
package/employee-standards.md
CHANGED
|
@@ -23,9 +23,14 @@ E2E 工作流前提(由用户确保,非 AI 操作):
|
|
|
23
23
|
**冲突解决**:gstack 任何想直接修改代码的行为,都必须先确认当前 OpenSpec proposal 是否已存在并通过(检查 `changes/<name>/proposal.md` 是否处于 `approved` 状态)。
|
|
24
24
|
|
|
25
25
|
## 2. 代码质量(强制执行)
|
|
26
|
-
**lint + typecheck 后才能算成功**。动手前,先探索项目用什么工具:查看 `package.json` scripts、`Makefile`、`pyproject.toml`、`justfile` 等,找到该语言的 lint + typecheck 命令并执行。工具不存在时,明确告知用户,不得假装成功。
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
**动手前先思考**(适用于复杂任务):**不要妄下断言**。如有多种解释则都列出来,如有更简单的方案则提出来,必要时坚持己见。如有不清楚的地方则停下来,说出困惑,再提问。简单任务自行判断。
|
|
28
|
+
|
|
29
|
+
**目标-验证闭环**:多步骤任务先列计划(如 `1. [Step] → verify: [check]`),动手后循环验证直到成功。lint + typecheck 通过是最低验证标准。
|
|
30
|
+
|
|
31
|
+
**拒绝"够用就行"**:架构缺陷、状态重复、模式不一致——必须说出来并修复。代码可疑时(200行可50行完成)应重写。
|
|
32
|
+
|
|
33
|
+
**lint + typecheck 后才能算成功**。动手前,先探索项目用什么工具:查看 `package.json` scripts、`Makefile`、`pyproject.toml`、`justfile` 等,找到该语言的 lint + typecheck 命令并执行。工具不存在时,明确告知用户,不得假装成功。
|
|
29
34
|
|
|
30
35
|
## 3. 上下文管理
|
|
31
36
|
**文件读取完整**:超过 500 行的文件,不要假设单次读取覆盖完整内容——根据需要分次读取或编辑前重新读取完整文件。超过 10 条消息后,编辑任何文件前强制重新读取。
|