ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

rhmcp-skill

RunningHub AI 智能调用。Use when user wants to generate images, videos, or audio content.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/airix315/runninghub-skill
Or

RHMCP Skill - OpenClaw 专用

概述

RHMCP 的 OpenClaw Skill 包装层,提供智能决策和 Agent 指引。

前置条件

  1. 安装 RHMCP:git clone https://github.com/AIRix315/RHMCP.git && cd RHMCP && npm install && npm run build
  2. 配置 OpenClaw MCP(见 README.md)
  3. 创建 RHMCP 配置:service.json.env

Agent 决策树

场景 → APP 映射

用户请求
    │
    ├─ "生成图片" / "文生图" / "画画"
    │       └─► rh_execute_app({ alias: "qwen-text-to-image", params: { text: "描述" } })
    │
    ├─ "修改图片" / "改图" / "图生图"
    │       └─► rh_execute_app({ alias: "qwen-image-to-image", params: { image: "URL", prompt: "描述" } })
    │
    └─ "更多APP"
            └─► rh_list_apps() 查看所有可用APP

参数映射

文生图 (qwen-text-to-image)

参数必填默认值说明
text-提示词
width1024图片宽度
height1024图片高度

图生图 (qwen-image-to-image)

参数必填默认值说明
image-输入图片URL
prompt-修改提示词

轮询策略

长时间任务使用异步模式:

APP 类型首次等待轮询间隔最大等待
图生视频3 分钟1 分钟15 分钟
数字人2 分钟30 秒10 分钟
文生图10 秒5 秒5 分钟
// 提交异步任务
const { taskId } = await rh_execute_app({
  alias: "image-to-video",
  params: { image: "https://..." },
  mode: "async",
});

// 轮询查询
await sleep(180000); // 3分钟
while (true) {
  const status = await rh_query_task({ taskId });
  if (status.status === "SUCCESS") return status.data;
  if (status.status === "FAILED") throw new Error(status.msg);
  await sleep(60000); // 1分钟
}

存储策略

步骤位置存储模式原因
中间步骤noneURL 直接传递
最终输出none返回 URL,用户保存
用户要求network用户明确要求保存
// 中间步骤:URL 直接传递
const img = await rh_execute_app({
  alias: "qwen-text-to-image",
  params: { text: "一只猫" },
});

// 后续步骤:使用 URL
const video = await rh_execute_app({
  alias: "image-to-video",
  params: { image: img.outputs[0].originalUrl, motion: "转身" },
});

链式工作流

// 步骤1:文生图
const img = await rh_execute_app({
  alias: "qwen-text-to-image",
  params: { text: "一个女孩在樱花树下" },
});

// 步骤2:图生视频
const video = await rh_execute_app({
  alias: "image-to-video",
  params: {
    image: img.outputs[0].originalUrl,
    motion: "樱花飘落,女孩转身微笑",
  },
});

return { videoUrl: video.outputs[0].originalUrl };

失败重试

const fallbacks = ["sdxl-text-to-image", "flux-text-to-image"];
for (const alias of fallbacks) {
  try {
    return await rh_execute_app({ alias, params });
  } catch (e) {
    continue; // 尝试下一个
  }
}
throw new Error("所有备选 APP 均失败");

错误码速查

Metadata

Author@airix315
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-airix315-runninghub-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.