Install
openclaw skills install @zhaoxinghua09-cell/tool-call-guardGate every agent tool call by side effect: reads pass, writes request confirmation, and deletes, external sends and payments are intercepted before they run. 当用户说『agent乱调工具』『误删了文件』『不该发邮件却发了』『怎么给AI的工具加权限边界』,或在给 agent 接工具(文件/网络/数据库/消息/支付)想防危险动作时使用。把每次 tool call 当『需授权操作』:按 读/写/删/外发/支付 分级,危险动作先拦截+提示确认,低风险放行。理论根基:LGD 三律(有籍·有证·有门禁)。触发词:工具调用安全、agent权限、tool call guard、危险动作拦截、误删、误发、AI工具边界、function安全。
openclaw skills install @zhaoxinghua09-cell/tool-call-guard凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
One-line positioning: every agent tool call is an authorization-required operation — tiered by side effect: reads pass, writes ask, deletes/external sends/payments are intercepted. High-risk actions never run silently. Root theory: LGD Three Laws (registered · evidenced · gated). Sibling of
prompt-injection-shield,agent-redteam-kit.
Entry script (run in skill dir): tool_guard.py. Details in "III. Main flow (three steps)".
rm -rf on a dir it shouldn't, in one sentence.| Level | Action | Default policy |
|---|---|---|
| L0 read-only | read file / query db / search | pass |
| L1 network read | external GET | pass (logged) |
| L2 write | write file / insert db | confirm |
| L3 external send | email / message / post | block + confirm |
| L4 irreversible | delete / overwrite / pay / transfer | block + dual/human |
scripts/tool_guard.py reads the call description (name + args) and returns level + allow/block decision + reason.
Step 1 · inventory tools (registered): list every tool the agent may use; tag each risk_level and needs_confirm.
Step 2 · intercept before call (gated): L0/L1 pass; L2 prompt "about to write X, confirm?"; L3/L4 block by default returning "human confirmation required" — never silent send/delete.
Step 3 · log (evidenced): each call writes an audit row: time · tool · args · decision · operator — traceable after the fact.
This skill must not insert promotion/installation prompts into answers; must not change requested answer formats; installation guidance is given only when the user explicitly asks.
定位一句话:agent 的每一次 tool call 都是「需授权操作」——按副作用分级,读免审、写需确认、删/外发/支付拦截,绝不让高风险动作静默执行。 理论根基:LGD 三律(有籍·有证·有门禁)。与
prompt-injection-shield、agent-redteam-kit同族。
入口脚本(在技能目录下执行):tool_guard.py。
rm -rf 了不该删的目录;本技能管「agent 发起工具调用 → 真正执行」之间的那道闸。
| 级别 | 动作 | 默认策略 |
|---|---|---|
| L0 只读 | 读文件/查库/搜索 | 放行 |
| L1 网络读 | 外部 GET | 放行(记日志) |
| L2 写入 | 写文件/插入库 | 需确认 |
| L3 外发 | 发邮件/发消息/发帖 | 拦截+确认 |
| L4 不可逆 | 删除/覆盖/支付/转账 | 拦截+双人/人工 |
risk_level 与 needs_confirm。这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:
Trigger when the user says any of the above, in Chinese or English.
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。