SKILL

gateguard

PreToolUse 事实强制门禁,会拒绝首次 Edit/Write/Bash(包括 MultiEdit 和 NotebookEdit)尝试,直到智能体给出具体事实(导入方、数据模式、用户原话指令),然后允许重试;经 A/B 测试质量提升 2.25 分。适用于启用或配置 GateGuard 钩子、通过环境变量豁免路径,或处理首次触发的拒绝。

机器翻译
查看英文原文

PreToolUse fact-forcing gate that denies the first Edit/Write/Bash (including MultiEdit and NotebookEdit) attempt until the agent presents concrete facts (importers, data schemas, verbatim user instruction), then allows retry; A/B-tested at +2.25 quality points. Use when enabling or configuring the GateGuard hook, exempting paths via env vars, or handling first-touch denials.

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • GateGuard — Fact-Forcing Pre-Action Gate
  • When to Activate
  • Core Concept
  • Evidence
  • Gate Types
  • Edit / MultiEdit Gate (first edit per file)
  • Write Gate (first new file creation)
  • Questions fit the change

A PreToolUse hook that forces Claude to investigate before editing. Instead of self-evaluation ("are you sure?"), it demands concrete facts. The act of investigation creates awareness that self-evaluation never did. Working on any codebase where file edits affect multiple modules Projects with data files that have specific schemas or date formats Teams where AI-generated code must match existing patterns Any workflow where Claude tends to guess instead of investigating LLM self-evaluation doesn't work. Ask "did you violate any policies?" and the answer is always "no." This is verified experimentally. But asking "list every file that imports this module" forces the LLM to run Grep and Read. The investigation itself creates context that changes the output. Three-stage gate: No competitor does all three. Most stop at deny. Two independent A/B tests, identical agents, same task: | Task | Gated | Ungated | Gap | | --- | --- | --- | --- | | Analytics module | 8.0/10 | 6.5/10 | +1.5 | | Webhook validator | 10.0/10 | 7.0/10 | +3.0 | | Average | 9.0 | 6.75 | +2.25 | Both agents produce code that runs and passes tests. The difference is design depth. MultiEdit is handled identically — each f

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
affaan-m/ECC
源文件
skills/gateguard/SKILL.md
固定版本
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T15:01:43.797Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。