跳转到主要内容

SKILL 部署

将 juhe-cli 能力一键部署为 AI Agent 技能

什么是 SKILL

SKILL 系统将 juhe-cli 的命令行能力打包为 AI Agent 可调用的技能文件。 部署后,你可以在 Claude Code 或 OpenClaw 中直接调用这些技能, 实现与企微/个微的交互自动化。

支持的 SKILL

当前共提供 23 个 SKILL,涵盖:

  • 设备管理:设备列表、状态查询
  • 消息发送:文本、图片、文件、卡片消息
  • 联系人管理:添加、删除、查询联系人
  • 群聊管理:创建群聊、邀请成员、群消息
  • 数据同步:联系人同步、消息查询

部署到 Claude Code

将 SKILL 部署到 Claude Code 的 commands 目录:

bash
juhe-cli skill deploy --target claude-code

SKILL 文件将输出到:~/.claude/commands/

部署到 OpenClaw

将 SKILL 部署到 OpenClaw 的 skills 目录:

bash
juhe-cli skill deploy --target openclaw

SKILL 文件将输出到:~/.openclaw/skills/

一键部署

同时部署到所有支持的平台:

bash
juhe-cli skill deploy --all

高级选项

预览模式

查看将要部署的内容,不实际写入文件:

bash
juhe-cli skill deploy --target claude-code --dry-run

强制覆盖

覆盖已存在的 SKILL 文件:

bash
juhe-cli skill deploy --target claude-code --force

使用 SKILL

Claude Code 中使用

部署后,在 Claude Code 中使用斜杠命令调用:

bash
/juhe-send-message "hello" --to user_123

OpenClaw 中使用

在 OpenClaw 中作为技能直接调用:

bash
juhe_send_message(message="hello", to="user_123")