Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(gateguard): finish tool-agnostic checklist across edit gate and SKILL.md copies (#2274)

Junec4925135c19
diff --git a/docs/ja-JP/skills/gateguard/SKILL.md b/docs/ja-JP/skills/gateguard/SKILL.md
index 7048d868b..bdf78b276 100644
--- a/docs/ja-JP/skills/gateguard/SKILL.md
+++ b/docs/ja-JP/skills/gateguard/SKILL.md
@@ -52,7 +52,7 @@ MultiEdit is handled identically — each file in the batch is gated individuall
```
Before editing {file_path}, present these facts:
-1. List ALL files that import/require this file (use Grep)
+1. List ALL files that import/require this file (search the tree — Glob/Grep, or find/grep via Bash)
2. List the public functions/classes affected by this change
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
@@ -65,7 +65,7 @@ Before editing {file_path}, present these facts:
Before creating {file_path}, present these facts:
1. Name the file(s) and line(s) that will call this new file
-2. Confirm no existing file serves the same purpose (use Glob)
+2. Confirm no existing file serves the same purpose (search the tree — Glob/Grep, or find/grep via Bash)
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
4. Quote the user's current instruction verbatim
diff --git a/docs/zh-CN/skills/gateguard/SKILL.md b/docs/zh-CN/skills/gateguard/SKILL.md
index 7da52bf68..05b651d3d 100644
--- a/docs/zh-CN/skills/gateguard/SKILL.md
+++ b/docs/zh-CN/skills/gateguard/SKILL.md
@@ -52,7 +52,7 @@ LLM 的自我评估不起作用。问"你是否违反了任何策略?"答案
```
在编辑 {file_path} 之前,请先呈现以下事实:
-1. 列出所有导入/引用此文件的文件(使用 Grep)
+1. 列出所有导入/引用此文件的文件(在代码树中搜索——Glob/Grep,或通过 Bash 用 find/grep)
2. 列出受此更改影响的公共函数/类
3. 如果此文件读取/写入数据文件,请显示字段名称、结构以及日期格式(使用脱敏或合成值,而非原始生产数据)
4. 逐字引用用户当前的指令
@@ -64,7 +64,7 @@ LLM 的自我评估不起作用。问"你是否违反了任何策略?"答案
在创建 {file_path} 之前,请先说明以下事实:
1. 命名将调用此新文件的文件及行号
-2. 确认没有现有文件具有相同功能(使用 Glob)
+2. 确认没有现有文件具有相同功能(在代码树中搜索——Glob/Grep,或通过 Bash 用 find/grep)
3. 如果此文件读取/写入数据文件,请展示字段名称、结构及日期格式(使用脱敏或合成值,而非原始生产数据)
4. 逐字引用用户当前的指令
```
diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js
index 99e72cc1b..4bc7b0361 100644
--- a/scripts/hooks/gateguard-fact-force.js
+++ b/scripts/hooks/gateguard-fact-force.js
@@ -1020,7 +1020,7 @@ function editGateMsg(filePath) {
'',
`Before editing ${safe}, present these facts:`,
'',
- '1. List ALL files that import/require this file (use Grep)',
+ '1. List ALL files that import/require this file (search the tree — Glob/Grep, or find/grep via Bash)',
'2. List the public functions/classes affected by this change',
'3. If this file reads/writes data files, show field names, structure, and date format (use redacted or synthetic values, not raw production data)',
"4. Quote the user's current instruction verbatim",
diff --git a/skills/gateguard/SKILL.md b/skills/gateguard/SKILL.md
index 59cb39ec1..9a4bb0314 100644
--- a/skills/gateguard/SKILL.md
+++ b/skills/gateguard/SKILL.md
@@ -53,7 +53,7 @@ MultiEdit is handled identically — each file in the batch is gated individuall
```
Before editing {file_path}, present these facts:
-1. List ALL files that import/require this file (use Grep)
+1. List ALL files that import/require this file (search the tree — Glob/Grep, or find/grep via Bash)
2. List the public functions/classes affected by this change
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
@@ -66,7 +66,7 @@ Before editing {file_path}, present these facts:
Before creating {file_path}, present these facts:
1. Name the file(s) and line(s) that will call this new file
-2. Confirm no existing file serves the same purpose (use Glob)
+2. Confirm no existing file serves the same purpose (search the tree — Glob/Grep, or find/grep via Bash)
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
4. Quote the user's current instruction verbatim