Install (runtime)
This registry entry is instruction-only. The letsping_ask runtime is provided by the npm package @letsping/openclaw-skill. Use one of:
- - npm:
npm install @letsping/openclaw-skill (then register the skill in your OpenClaw workspace so it loads letsping_ask). - Clone:
git clone https://github.com/CordiaLabs/openclaw-skill ~/.openclaw/workspace/skills/letsping && cd ~/.openclaw/workspace/skills/letsping && npm install.
Set LETSPING_API_KEY (your LetsPing agent key, e.g. lp_live_...) in the skill's env. Obtain it at https://letsping.co/openclaw/pair or via LetsPing's Agent Credentials API. Treat this key as highly sensitive; use a dedicated agent key and revoke if compromised.
Usage
This skill provides the letsping_ask tool, a secure escalation point for high risk actions. The agent calls it, blocks until your approval/patch/reject via the LetsPing PWA, then resumes with the authorized payload only.
Critical: Use frontier models (e.g., Claude Opus, GPT-4o or better) to minimize prompt bypass risk. Smaller models are vulnerable to drift/injection.
Copy-paste this into your workspace TOOLS.md or AGENTS.md (or append to system prompt):
CODEBLOCK0
Test thoroughly in a sandbox session first: simulate high risk plans and verify escalation rate (~90-95% reliable on strong models/prompts). If the agent skips calls, add more examples or tighten language.
Troubleshooting:
- * Agent ignores rule? Strengthen with more few-shots or "ALWAYS escalate if any risk category matches."
- Timeout/reject? Agent prompt should handle gracefully (e.g., "If rejected, propose alternative").
安装(运行时)
此注册条目仅限指令。letsping_ask 运行时由 npm 包 @letsping/openclaw-skill 提供。请使用以下方式之一:
- - npm: npm install @letsping/openclaw-skill(然后在你的 OpenClaw 工作区注册该技能,以便加载 letsping_ask)。
- 克隆: git clone https://github.com/CordiaLabs/openclaw-skill ~/.openclaw/workspace/skills/letsping && cd ~/.openclaw/workspace/skills/letsping && npm install。
在技能的环境变量中设置 LETSPINGAPIKEY(你的 LetsPing 代理密钥,例如 lplive...)。可通过 https://letsping.co/openclaw/pair 或 LetsPing 的代理凭证 API 获取。请将此密钥视为高度敏感;使用专用代理密钥,若泄露则立即撤销。
使用方法
此技能提供 letsping_ask 工具,作为高风险操作的安全升级点。代理调用该工具后,会阻塞等待,直到你通过 LetsPing PWA 批准/修改/拒绝,然后仅使用授权的载荷继续执行。
关键提示:使用前沿模型(例如 Claude Opus、GPT-4o 或更优版本)以最大程度降低提示绕过风险。较小模型容易受到漂移/注入攻击。
将此内容复制粘贴到你的工作区 TOOLS.md 或 AGENTS.md 文件中(或附加到系统提示中):
text
你拥有完全的自主权限,但仅限安全操作:读取文件/日志、网络搜索、查看/分析数据且不产生副作用。
在任何高风险操作之前,你必须调用 letsping_ask,并且绝不能直接执行该操作。高风险操作包括:
- - 财务:任何超过 10 美元的支出、交易、预订
- 破坏性:删除/覆盖文件、数据库行、配置
- 社交:公开发布帖子、向新联系人发送私信/邮件或群聊
- 基础设施:修改 DNS、环境变量、部署、基础设施 API 或权限
升级时:
- - 提供 toolname(精确工具名称,例如 systemrun)
- argsjson:原始参数的字符串化 JSON
- riskreason:清晰简洁的理由(例如 可能删除文件)
调用返回后:
- - 如果已批准:仅使用 executed_payload / 授权载荷(若已编辑则使用修改后的版本)
- 如果被拒绝或超时:中止操作,尝试更安全的计划,或向用户寻求指导
少量示例:
- 1. 安全(无需调用):browsersearch(query: 纽约市当前天气)
- 风险部署:letspingask(toolname: verceldeploy, argsjson: {\project\:\my-app\,\env\:\production\,\force\:true}, riskreason: 使用强制标志的生产环境部署)
- 风险删除:letspingask(toolname: systemrun, argsjson: {\cmd\:\rm -rf /important/folder\}, riskreason: 破坏性文件删除)
- 风险发布:letspingask(toolname: discordsend, argsjson: {\channel\:\general\,\message\:\意外转储:ls ~\}, riskreason: 公共频道中潜在的数据泄露)
首先在沙盒会话中彻底测试:模拟高风险计划并验证升级率(在强模型/提示下约 90-95% 可靠)。如果代理跳过调用,请添加更多示例或收紧措辞。
故障排除:
- * 代理忽略规则? 通过更多少量示例或如果匹配任何风险类别,始终升级来加强。
- 超时/拒绝? 代理提示应优雅处理(例如,如果被拒绝,请提出替代方案)。