code-mate-openclaw
它能做什么
这个智能体会使用 OpenClaw 在你的电脑上执行特定任务。它接收你的指令,并将其发送给 OpenClaw,由 OpenClaw 无需你再次互动即可执行。
适用场景
- ✓当你希望 OpenClaw 分析某个特定文件时。
- ✓当你想获取某段代码的解释时。
- ✓用于自动化 OpenClaw 能够完成的简单任务。
技能链接
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-openclaw/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“解释一下项目中的 'user_auth' 模块。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在你的电脑上找到 OpenClaw 程序,并用你的指令运行它。然后获取结果,展示给你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
OpenClaw
Run
- Set the Bash working directory to the exact directory the user authorized and set a finite outer timeout, normally 11 minutes.
- Check availability with
command -v openclaw. If it is missing, stop and ask the user to install OpenClaw in Code Mate. - Run the local main agent once:
openclaw agent --local --agent main --message "<prompt>" --json --timeout 600
Pass the prompt as one quoted argument. Parse the JSON payload even when the process exits zero: OpenClaw can encode failure in a successful process exit. Report payload errors and timeouts as failures. Never start onboarding, the interactive TUI, or a login flow.
Authentication And Permissions
If OpenClaw reports missing onboarding, provider, model, or credentials, stop and ask the user to configure OpenClaw in Code Mate. Never request, read, print, or copy credentials.
The local agent can invoke configured tools. Keep the prompt read-only by default and do not ask it to mutate files or external systems unless the user explicitly requested workspace changes or that external effect. Limit it to the selected working directory.
Example: ask the main agent to explain a module without changing it, then accept the response only when the JSON payload reports success.
常见问题
什么是 OpenClaw?
OpenClaw 是一个能够在你的电脑上执行任务、理解指令的程序。
我需要安装什么吗?
需要。你的电脑上必须已经安装 OpenClaw,这个智能体才能工作。
如果没有安装 OpenClaw 会怎样?
智能体会通知你未找到 OpenClaw,并请你先安装。
详情
作者的原始描述
Runs a local OpenClaw agent non-interactively and returns its structured response. Use when the user asks to delegate a bounded task to the OpenClaw main agent.
repo: CherryHQ/cherry-studio
热度
- GitHub 星标
- 53k
- 排名
- #3382
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/15
评论
- …