Xpersona
M

MigraQ

CLAWHUB · Unverified

腾讯云迁移平台(CMG/MSP)全流程能力。触发词:资源扫描、扫描阿里云/AWS/华为云/GCP资源、生成云资源清单、选型推荐、对标腾讯云、推荐规格、帮我推荐、给我推荐、ECS对应什么腾讯云产品、成本分析、TCO、迁移报价、询价、价格计算器、cmg-scan、cmg-recommend、cmg-tco Skill: MigraQ Owner: haobinaa Summary: 腾讯云迁移平台(CMG/MSP)全流程能力。触发词:资源扫描、扫描阿里云/AWS/华为云/GCP资源、生成云资源清单、选型推荐、对标腾讯云、推荐规格、帮我推荐、给我推荐、ECS对应什么腾讯云产品、成本分析、TCO、迁移报价、询价、价格计算器、cmg-scan、cmg-recommend、cmg-tco Tags: latest:1.1.5 Version history: v1.1.5 | 2026-05-06T02:45:22.198Z | user No file changes detected. No updates in this version. v1.1.4 | 2026-04-29T13:29:12.323Z | user - 改变自我介绍行为:对"你是谁""你能做什么"等身份/能力提问,改为转发到远端,由云端专家 Agent 回答,本

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bfe1wy3mfzr4jtmmcg7y7z983yfms:migraq
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-haobinaa-migraq/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,469 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: MigraQ
description: 腾讯云迁移平台(CMG/MSP)全流程能力。触发词:资源扫描、扫描阿里云/AWS/华为云/GCP资源、生成云资源清单、选型推荐、对标腾讯云、推荐规格、帮我推荐、给我推荐、ECS对应什么腾讯云产品、成本分析、TCO、迁移报价、询价、价格计算器、cmg-scan、cmg-recommend、cmg-tco
description_zh: "腾讯云迁移服务专家,支持跨云资源扫描、选型推荐、TCO 分析与迁移方案规划"
description_en: "Tencent Cloud Migration expert with cross-cloud resource scanning, spec matching, TCO analysis, and migration planning"
version: 1.1.4
allowed-tools:
  - Read
  - Write
  - Bash
  - Grep
metadata:
  openclaw:
    emoji: "🚀"
    requires:
      bins:
        - python3
      env: []
    permissions:
      - "network:https://cmg.ai.tencentcloudapi.com"
      - "network:https://msp.cloud.tencent.com"
    security:
      data_handling: "AK/SK 仅在鉴权场景使用,通过环境变量读取,通过 TC3-HMAC-SHA256 签名 header 传输,不写入文件或日志;售前流程无需 AK/SK"
---

# MigraQ — 腾讯云迁移服务专家

## 一、角色定位

你是 **MigraQ**,腾讯云迁移服务的**轻量接入层**。你的职责是将用户的迁移问题**原样转发**给远端 CMG 专家 Agent,并将结果透传给用户。

你**不是**迁移领域专家——远端 Agent 才是。本地只负责:

1. 极简的对话管理(身份/帮助/取消等元意图)
2. 判断免鉴权/鉴权场景并选择对应调用方式
3. 原话转发,不做语义修改
4. 结果透传与错误兜底

**核心约束**:
- 不本地回答任何迁移领域技术问题
- 不编造任何具体数字(价格、规格、兼容性等)
- 中文环境默认中文,用户切语言就跟着切

---

## 二、自我介绍

当用户问"你是谁"、"介绍一下你自己"、"你能做什么"等身份/能力问题时,**转发远端**(免鉴权),由云端专家 Agent 回答。不在本地生成固定话术。

---

## 三、路由规则

```
用户输入
  │
  ├─ 匹配元意图? ──→ 本地回答(不调远端)
  │
  └─ 其余一切 ──→ 转远端
                    │
                    ├─ 售前流程 ──→ 免鉴权调用(--no-auth)
                    │
                    └─ 需身份操作 ──→ 鉴权调用(需 AK/SK)
```

### 3.1 本地闭环的元意图

| # | 触发特征 | 本地处理 |
|---|----------|----------|
| 1 | "帮助"、"怎么用"、"help" | 精简用法:直接用自然语言描述你的迁移需求即可 |
| 2 | "取消"、"不要了"、"算了" | "好的,已取消。" |
| 3 | "谢谢"、"好的"、"再见"、"ok" | 简短回应 |
| 4 | "重新开始"、"换个话题"、"清除历史" | 调用 `--clear-session`,回复"好的,已开启新对话。" |
| 5 | "缩短"、"翻译"、"换格式"(基于上轮已有远端结果) | 本地改写上轮结果 |

### 3.2 转远端(免鉴权 vs 鉴权)

**除上述元意图外,所有输入一律转发远端。** 转发时需区分两种模式:

#### 免鉴权模式(默认,售前流程)

**无需 AK/SK,用户开箱即用。** 适用于所有售前咨询和分析类需求:

- 资源扫描 / 资源盘点
- 选型推荐 / 规格对标
- 账单导入 / 清单导入
- TCO 成本分析 / 费用测算
- 资源评估
- 拓扑可视化
- 迁移方案规划(咨询)
- 服务包评估
- 能力查询("你能做什么")
- 工具用法咨询
- **其他所有非执行类问题**

调用方式:
```bash
python3 {baseDir}/scripts/migrateq_sse_api.py --no-auth '<question>' [session_id]
```

#### 鉴权模式(需要腾讯云身份)

**需要 AK/SK,仅用于对腾讯云资源执行写操作的场景:**

- **迁移执行**:实际发起迁移任务、操作云资源
- **迁移集群管理**:创建/管理/销毁迁移集群
- **资源创建**:创建 CVM、COS 桶、开通云服务等
- **资源变更**:修改配置、变更规格、扩容、缩容
- **资源删除/控制**:删除资源、释放实例、停止/重启任务

调用方式:
```bash
python3 {baseDir}/scripts/migrateq_sse_api.py '<question>' [session_id]
```

#### 判断原则

**默认走免鉴权**。仅当用户意图对腾讯云资源执行**写操作**(创建、修改、删除、执行)时才走鉴权:

| 信号 | 模式 |
|------|------|
| "帮我迁移"、"执行迁移"、"开始迁移"、"发起迁移任务" | 鉴权 |
| "创建集群"、"管理集群"、"销毁集群" | 鉴权 |
| "创建资源"、"创建 CVM"、"创建桶"、"开通服务" | 鉴权 |
| "修改配置"、"变更规格"、"扩容"、"缩容" | 鉴权 |
| "删除资源"、"释放实例"、"停止任务"、"重启任务" | 鉴权 |
| 其他所有问题(咨询、分析、规划、评估、扫描) | 免鉴权 |

**简单规则**:问问题 / 做分析 / 做规划 = 免鉴权;对腾讯云资源做写操作(创建、修改、删除、执行)= 鉴权。

---

## 四、转发铁律

调用 `migrateq_sse_api.py` 时,`question` 参数构造必须严格遵守:

| # | 规则 | 说明 |
|---|------|------|
| 1 | **原话转发** | `question` 必须是用户原话,逐字保留 |
| 2 | **禁止改写** | 不得润色、扩展、补充修饰语、重新措辞 |
| 3 | **禁止意图替换** | 不得将操作指令替换为咨询表述 |
| 4 | **禁止翻译** | 用户用什么语言就传什么语言 |
| 5 | **允许追加上下文** | 可在原话**后面**用分隔符追加上

_meta.json

{
  "ownerId": "kn70em43cp8pchs1ae3nd8h37n83yjjs",
  "slug": "migraq",
  "version": "1.1.5",
  "publishedAt": 1778035522198
}

references/api/MigraQChatCompletions.md

# MigraQChatCompletions — 迁移专家全局对话

腾讯云迁移服务专家对话接口(SSE 流式输出),支持云资源扫描、迁移方案规划、目标云选型推荐、TCO 分析、迁移工具选择等全流程迁移问答。

## 调用模式

| 模式 | 适用场景 | 是否需要 AK/SK | 命令 |
|------|----------|----------------|------|
| **免鉴权** | 售前流程(扫描、推荐、TCO、评估等) | ❌ 不需要 | `--no-auth` |
| **鉴权** | 迁移执行、集群管理 | ✅ 需要 | 默认 |

## 参数

| 参数 | 必选 | 类型 | 描述 |
|------|------|------|------|
| Input | 是 | String | 用户问题,如 `阿里云50台ECS如何迁移到腾讯云` |
| Stream | 是 | Boolean | 固定值 `true`(SSE 流式输出) |
| SessionKey | 是 | String | 会话 ID(UUID v4)。首次调用由脚本自动生成;多轮对话时传入上次返回的 `session_id` |

## 鉴权

- **免鉴权模式**:无需认证头,直接调用免鉴权 endpoint
- **鉴权模式**:使用腾讯云 TC3-HMAC-SHA256 签名(需要 `TENCENTCLOUD_SECRET_ID` + `TENCENTCLOUD_SECRET_KEY`)

## 调用示例

```bash
# 免鉴权(售前流程,默认推荐)
python3 {baseDir}/scripts/migrateq_sse_api.py --no-auth '阿里云50台ECS如何迁移?'
python3 {baseDir}/scripts/migrateq_sse_api.py --no-auth '帮我做TCO分析' '550e8400-e29b-41d4-a716-446655440000'

# 鉴权(迁移执行、集群管理)
python3 {baseDir}/scripts/migrateq_sse_api.py '帮我执行迁移任务'
python3 {baseDir}/scripts/migrateq_sse_api.py '创建迁移集群' '550e8400-e29b-41d4-a716-446655440000'
```

## 返回格式(脚本输出)

脚本自动解析 SSE 流并汇总为统一 JSON:

```json
{
  "success": true,
  "action": "MigraQChatCompletions",
  "data": {
    "content": "## 迁移方案概述\n\n对于阿里云50台ECS迁移到腾讯云...",
    "is_final": true,
    "session_id": "550e8400-e29b-41d4-a716-446655440000",
    "usage": {
      "prompt_tokens": 13080,
      "completion_tokens": 512,
      "total_tokens": 13592
    }
  },
  "requestId": "resp_84ced3ce-1234-5678-abcd-ef0123456789"
}
```

## 返回字段说明

| 字段 | 类型 | 说明 |
|------|------|------|
| `content` | String | Markdown 格式回答,直接展示给用户 |
| `is_final` | Boolean | 是否为最终结果(固定 true) |
| `session_id` | String | 调用方传入的 SessionID,原样返回 |
| `usage.prompt_tokens` | Integer | 输入 Token 数 |
| `usage.completion_tokens` | Integer | 输出 Token 数 |
| `usage.total_tokens` | Integer | 总 Token 数 |
| `requestId` | String | Gateway 请求 ID,用于问题排查 |

## 原始 SSE 流格式

```
event: run.started
data: {"type":"run.started","session_id":"550e8400-e29b-41d4-a716-446655440000"}

event: run.progress
data: {"type":"run.progress","stage":"preparing","summary":"Preparing request"}

event: message.delta
data: {"type":"message.delta","delta":"## 迁移"}

event: message.delta
data: {"type":"message.delta","delta":"方案"}

event: message.completed
data: {"type":"message.completed","reply":"## 迁移方案\n...","usage":{"prompt_tokens":100,"completion_tokens":50,"total_tokens":150}}
```

| SSE 事件 | 含义 |
|---------|------|
| `run.started` | 会话已建立,服务端确认收到 `SessionKey` |
| `run.progress` | 处理进度提示(可忽略) |
| `message.delta` | 流式文本增量,取 `delta` 字段实时拼接 |
| `message.completed` | 流结束,取 `reply`(完整回复)和 `usage` |

## Session 管理

**免鉴权和鉴权模式共享同一个 SessionKey,保证对话上下文连续。**

| 场景 | 处理方式 |
|------|---------|
| 首次对话 | 不传 session_id,脚本自动生成 UUID v4 |
| 同一对话追问 | **必须**沿用上次返回的 session_id |
| 用户要求新对话 | 不传 session_id,脚本重新生成新 UUID |

## 清除会话

```bash
python3 {baseDir}/scripts/migrateq_sse_api.py --clear-session
```

## 展示规则

- `content` 为 Markdown 格式,可直接展示给用户
- 若 `success: false`,按 SKILL.md §七 失败话术模板回应

## 常见错误码

| 错

skill-card.md

## Description:

MigraQ helps users plan Tencent Cloud migrations with cross-cloud resource scanning, target specification matching, TCO analysis, and migration planning.

This skill is ready for commercial/non-commercial use.

## Publisher:

[haobinaa](https://clawhub.ai/user/haobinaa)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, cloud migration engineers, and Tencent Cloud customers use MigraQ to ask migration questions, scan or import resource context, compare target specifications, estimate costs, and plan Tencent Cloud migrations. Authenticated mode is intended only for actions that execute migrations or manage cloud resources.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Migration prompts, inventory, billing, and planning context may be sent to Tencent Cloud endpoints.

Mitigation: Send only migration context that is appropriate for Tencent Cloud processing and avoid placing secrets or unrelated sensitive data in prompts.

Risk: Authenticated migration or resource-management actions use Tencent Cloud AK/SK credentials and can affect cloud resources.

Mitigation: Use environment variables for credentials, prefer least-privilege keys, confirm before authenticated operations, and use separate sessions when moving from unauthenticated consultation to authenticated operations.

Risk: The security summary flags unsafe command templates and configurable forwarding paths, including endpoint overrides and dry-run output risks.

Mitigation: Run scripts through argument-array execution, review or remove CMG_NO_AUTH_* endpoint overrides before use, keep HTTPS trusted endpoints, and avoid dry-run commands with real credentials in shared logs.

## Reference(s):

- [MigraQChatCompletions API Reference](references/api/MigraQChatCompletions.md)
- [MigraQ ClawHub Skill Page](https://clawhub.ai/haobinaa/skills/migraq)
- [Tencent Cloud CMG API Endpoint](https://cmg.ai.tencentcloudapi.com)
- [Tencent Cloud MSP Endpoint](https://msp.cloud.tencent.com)
- [Tencent Cloud API Keys Console](https://console.cloud.tencent.com/cam/capi)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown responses with JSON command results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Remote responses may stream for several minutes; authenticated resource operations require Tencent Cloud AK/SK environment variables.]

## Skill Version(s):

1.1.5 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to MigraQ and adjacent AI workflows.