SK-host-lock
执行宿主(host)「read-evidence 锁」解法(四方案实测固化)。🔴触发条件(遇到即读本 skill,禁反复试探): bash 报错 —— `bash cannot declare which files it changes while a read-evidence requirement is…
Skill by MENG-COOLMAN
Chalk Labs
Need help deploying SK-host-lock?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/meng-coolman-sk-host-lock
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/sk-host-lock
What's inside
- Skill name
SK-host-lock- Description
- 执行宿主(host)「read-evidence 锁」解法(四方案实测固化)。🔴触发条件(遇到即读本 skill,禁反复试探): bash 报错 —— `bash cannot declare which files it changes while a read-evidence requirement is outstanding (<paths>)`, 或 `edit_file/write_file cannot declare which files it changes while a read-evidence requirement is outstanding`。 内容:锁的本质(不是"读不够",是**写入证据义务未结清**)+ **四方案优先级决策树**(方案0 轮次拆分=首选 / 方案1 合并单次 edit / 方案2 文件工具替代 bash / 方案3 全程只读)+ 操作模板 + 实测证据 + 反模式。 🔴与 AGENTS「host 工具链 read-evidence 锁解法」节 / 迁移文档同源;本 skill 是**主动查询入口**(脚本 `data/tmp/lock_dirs.py --decide` 亦可直接打印决策树)。
- License
- MIT
- Instructions
- 123 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (1)
- SKILL.md
SKILL.md (first lines)
# SK-host-lock — host 执行宿主「read-evidence 锁」解法
> 🔴**被动触发型 skill**:仅在**出现锁报错**时读取执行;正常任务**不触发**。
> 🔴**铁律:遇到即按决策树处理,禁反复试探**(反复 read 清锁 / 反复无声明 bash / 反复重跑同一命令 = 浪费 token,且无效)。
## 一、触发信号(精确匹配)
| 工具 | 报错原文(关键子串) |
|:--|:--|
| `bash` | `bash cannot declare which files it changes while a read-evidence requirement is outstanding (<paths>); use the exact file tool for those paths` |
| `edit_file` / `write_file` | `edit_file/write_file cannot declare which files it changes while a read-evidence requirement is outstanding (<paths>)` |
**辅助信号**:报错后紧跟的 `<paths>` 即「未结清路径清单」(常为刚编辑过、尚未读回的文件)。
---
## 二、本质(决定性认知·勿误判)
🔴 **根因不是「读得不够」,而是「写入证据义务未结清」**:
- 任何 `write_file` / `edit_file` **成功写入某路径**后,该路径进入 **outstanding(未结清)** 状态;
- 结清前,**有副作用的工具**(`bash`,因为 host 无法静态判定它会改哪些文件)被**网关拒绝**;
- 因此 **`additional_write_dirs` 声明在有 outstanding 时无效**——声明只在"账本干净"时被采纳;
- 只读工具(`read_file`)不受影响,且是结清手段之一(但见下方反模式 ①)。
**它不是什么**:❌ OS 文件锁/flock ❌ ACL 权限 ❌ 杀软占用 ❌ git 锁(工区常非 git 仓库)❌ 磁盘占用。
**它是什么**:✅ 执行宿主在**工具调用网关层**实现的**写前证据门禁**(post-edit evidence obligation / per-path ledger)。
---
## 三、🔴 决策树(按优先级执行·首选即最优)
```
出现锁报错
│
├─【方案 0 · 首选·最稳】轮次拆分:本轮只做 write/edit → 提交 → 下一个 turn 直跑 bash
│ · 机制:跨对话轮次 outstanding 自动重置(账本清空)
│ · 何时用:绝大多数任务(脚本执行/构建/测试/同步/校验)
│ · 代价:多一轮交互
│
├─【方案 1 · 减少条目】同文件多处修改一次性合并为【单次 write/edit】
│ · 机制:只产生 1 条 outstanding,降低锁死概率
│ · ⚠️不能突破「同 turn edit+bash 混跑」限制——本轮有 outstanding 时 bash 仍被拦
│ · 何时用:改同一文件的多个位置 / 一批多文件连续编辑
│
├─【方案 2 · 同 turn 兜底】用文件工具替代 bash 做「文件变更」
│ · `edit_file` / `write_file` **不受该门禁拦截**(即使存在 outstanding 亦可调用)
│ · 适用:追加/替换/补丁类文本修改
│ · ⚠️不能替代编译、运行、测试、git 等 shell 业务命令
│
└─【方案 3 · 预防】全程只读(read_file / ls / cat)不写文件 → 账本恒净,bash 随时可跑
· 何时用:探查/静态阅读/分析阶段;**预先规划**「先读够再写」可完全避免踩锁
```
**决策速查**:
| 情境 | 采用 |
|:--|:--|
| 已编辑完,需要跑命令 | **方案 0**(下个 turn 跑) |
| 要改同一文件多处 | **方案 1**(合并成一次) |
| 本轮既要改文件又要跑命令 | 拆分:编辑走**方案 2** 的文件工具;命令留到**方案 0** 的下一轮 |
| 只想读代码/查状态 | **方案 3**(根本不写,不产生锁) |
---
## 四、操作模板(复制即用)
```bash
# ① 生成写入边界声明(宁多勿漏·只列父目录不足)
python data/tmp/lock_dirs.py # → additional_write_dirs 的 JSON 列表
python data/tmp/lock_dirs.py --template # → bash 调用模板 + 顺序纪律
python data/tmp/lock_dirs.py --decide # → 四方案决策树(本 skill 的脚本化入口)
# ② 标准顺序
# [turn N] write_file / edit_file(多文件编辑集中在轮末)
# [turn N+1] read_file(被改文件) ← 结清 outstanding
# [turn N+2] bash + additional_write_dirs(一次跑完 编译/测试/同步/校验)
```
**轮末编辑原则**:多文件 write/edit 尽量放在**同一轮末尾**,缩短"待结清窗口"。
---
## 五、实测证据(可复现)
| 方案 | 实测结论 | 证据来源 |
|:--|:--|:--|
| 方案 0(跨 turn 重置) | ✅ 成立:新 turn 内 bash 立即恢复 | 2026-09-24 实测(纪律④④)+ **2026-09-27 本会话连续两次实证** |
| 方案 1(合并单次 edit) | ✅ 成立且必要:同文件分批 edit 会累积 outstanding → 锁死后续写入通道 | 2026-09-24 实测固化(纪律④);本会话把 calc_all 5 处改动合并为 1 次 edit |
| 方案 2(文件工具不受拦) | ✅ 成立:`edit_file` 在 outstanding 存在时仍可成功调用(唯一"同 turn 可用"的写通道) |bash 被拦的同轮/次轮仍成功执行 edit_file |
| 方案 3(全程只读) | ✅ 成立:探查轮仅 read/ls → bash 全部一次通过 | 2026-09-20 固化 + 2026-09-27 本会话多次探查轮 |
| 声明有效性边界 | 🔴 **有 outstanding 时 additional_write_dirs 无效**(声明只在账本干净时被采纳) |带全量声明仍被同一路径拦 |
---
## 六、反模式(禁止·均在会话中验证为无效)
1. ❌ **反复 `read_file` 清锁** —— host 可能回 `Repeated read … already satisfied`,账本不清;read 不是解药(尤其与 bash 同批次时"同批 read 不算")。
2. ❌ **无声明或声明不全硬跑 bash** —— 直接拦;且"声明补全"在有 outstanding 时也无效。
3. ❌ **同一文件串行多次 edit** —— 累积 outstanding,可能锁死后续**全部** bash/write。
4. ❌ **把锁误判为"环境故障"去排查文件权限/占用** —— 层级判断错误,浪费时间。
5. ❌ **在有 outstanding 时反复重试同一条 bash** —— 结果必然相同;应转方案 0/2。
---
## 七、与既有规则的关系(避免重复)
- **AGENTS.md**「host 工具链 read-evidence 锁解法」节 = 规则源头(三处同步:AGENTS / 主技能 / txt / 迁移文档)
- **纪律④**= 本 skill 的**方案 1** 的具体化(合并编辑 + 轮末编辑)
- **本 skill** = **主动查询入口 + 完整决策树**(四方案 + 优先级 + 反模式 + 证据),遇到锁报错时**直接读本 skill 即可,禁再试探**
---
## 八、使用示例
```
bash 报: bash cannot declare which files it changes while a read-evidence requirement is outstanding (data/tmp/calc_all.py)
→ 读本 skill →
① 本轮编辑已结束 → 采用【方案 0】:结束本轮,下个 turn 直跑 bash(含 additional_write_dirs)
② 若本轮还需改文件 → 采用【方案 2】:用 edit_file 继续(不受拦)From MENG-COOLMAN/PitchQuant, MIT.
More from MENG-COOLMAN/PitchQuant
- 0.600score
SK-audit
MENG-COOLMAN
模型审计(V3.0 工程审计 + V4.0 结果审计 融合··**被动·用户提出审计要求时触发**·按「审计程序 A/B 更新方案」加固)——**A 模式「审计模型」**:**15 探查**(新增⑬口径一致性/⑭提取函数 fixture 回归/⑮规则-代码双向核对)+ 8 维 +…
SkillAFreshness: A★ 3Claude Code +9 - 0.597score
SK-league-nations
MENG-COOLMAN
欧国联/国家队子模型(接入)——基于 658 场四届欧国联真实数据(n=658·2018/19~2024/25)+ 时间分割验证的公平赔率模型。Step4.5 识别 league_id=5 (UEFA Nations League) 且非女足/青训时调用·输出 R1-R10 校正后回归主模型 Step5-8…
SkillAFreshness: A★ 3Claude Code +9 - 0.597score
SK-prestep-filter
MENG-COOLMAN
先验筛选模块(·含O10浅让降权/N4防平注)——用户下达「先验」指令时·基于 Odds-API 欧亚盘赔率+水位·10 信号打分筛选当晚五大联赛信号强比赛(🔴2026-09-20 V3消融重标·方向 ≥3.0 推荐 71.22%/≥2.5 观察 70.33%·比分 ≥2.0 强推荐/≥1.0…
SkillAFreshness: A★ 3Claude Code +9 - 0.557score
SK-league-bundesliga
MENG-COOLMAN
德甲子模型模块(V3.5.59分层架构)——回测7447场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别德甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/D1_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-epl
MENG-COOLMAN
英超子模型模块(V3.5.59分层架构)——回测9327场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别英超联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/E0_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-ligue1
MENG-COOLMAN
法甲子模型模块(V3.5.59分层架构)——回测8669场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别法甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/F1_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-model-maintenance
MENG-COOLMAN
模型维护最小化纪律(用户提议·借鉴 Ponytail 的 YAGNI 内核)——**仅用于「更新模型」场景**(改脚本/加功能/写文档/重构/加数据源),**不用于比赛分析**。核心:最小实现·能不加就不加·能复用就复用·用完即清;红线:三处文档同步/check_sync/备份…
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-online-learning
MENG-COOLMAN
在线学习模块(data/online_learning/·轻封装)——赛后自学习 5 层 + 8 源数据自动接入 + 学习成果提示。🔴赛果后统一入口 learn.py(一条命令·复盘+接入+学习+报告);L1/L2 已实测无增益→默认不接入预测(仅记录/提示级);L2…
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-laliga
MENG-COOLMAN
西甲子模型模块(V3.5.59分层架构)——回测8918场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别西甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/SP1_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-self-iterate
MENG-COOLMAN
赛后自我迭代学习——每次得到赛果后把复盘升级为可累积/可验证/可固化的学习(偏差定量→归因→观察池→复发自动提示→门槛回测→固化)。🔴学习≠批量更新模型:学习层仅累积与提示(不改任何计算/判定),批量更新层才动规则。由主技能复盘时必调(Step10 复盘后)+ 每批 status 汇总。
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-seriea
MENG-COOLMAN
意甲子模型模块(V3.5.59分层架构)——回测8893场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别意甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/I1_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.554score
SK-score-depth
MENG-COOLMAN
比分深度判定——庄家盈亏矩阵反推(CS赔率去抽水+资金流+跨机构分歧精确定位庄家盈利点)+精算仓位控制反推+高比分出口+历史交锋传导。修正47/48/50/50+。由主技能Step7自动调用
SkillBFreshness: B★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Sep 29, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MENG-COOLMAN/PitchQuant
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MENG-COOLMAN
- 0.600score
SK-audit
MENG-COOLMAN
模型审计(V3.0 工程审计 + V4.0 结果审计 融合··**被动·用户提出审计要求时触发**·按「审计程序 A/B 更新方案」加固)——**A 模式「审计模型」**:**15 探查**(新增⑬口径一致性/⑭提取函数 fixture 回归/⑮规则-代码双向核对)+ 8 维 +…
SkillAFreshness: A★ 3Claude Code +9 - 0.597score
SK-prestep-filter
MENG-COOLMAN
先验筛选模块(·含O10浅让降权/N4防平注)——用户下达「先验」指令时·基于 Odds-API 欧亚盘赔率+水位·10 信号打分筛选当晚五大联赛信号强比赛(🔴2026-09-20 V3消融重标·方向 ≥3.0 推荐 71.22%/≥2.5 观察 70.33%·比分 ≥2.0 强推荐/≥1.0…
SkillAFreshness: A★ 3Claude Code +9 - 0.597score
SK-league-nations
MENG-COOLMAN
欧国联/国家队子模型(接入)——基于 658 场四届欧国联真实数据(n=658·2018/19~2024/25)+ 时间分割验证的公平赔率模型。Step4.5 识别 league_id=5 (UEFA Nations League) 且非女足/青训时调用·输出 R1-R10 校正后回归主模型 Step5-8…
SkillAFreshness: A★ 3Claude Code +9 - 0.557score
SK-league-epl
MENG-COOLMAN
英超子模型模块(V3.5.59分层架构)——回测9327场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别英超联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/E0_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-bundesliga
MENG-COOLMAN
德甲子模型模块(V3.5.59分层架构)——回测7447场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别德甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/D1_deep.json
SkillBFreshness: B★ 3Claude Code +9 - 0.557score
SK-league-laliga
MENG-COOLMAN
西甲子模型模块(V3.5.59分层架构)——回测8918场蒸馏的判定规则集·专注赔率/进球数/比分。Step4.5识别西甲联赛时调用·输出方向/大小球/比分/净胜校正后回归主模型。数据源 data/league-modules/deep/SP1_deep.json
SkillBFreshness: B★ 3Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get SK-host-lock running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
SK-host-lock skill. Agent Mart. https://agentmart.dev/skills/meng-coolman-sk-host-lock (last updated 2026-10-24)