关于 messari-deep-research
messari-deep-research 是用于研究加密主题、资产、行业和问题的工作流技能,可生成长篇报告。它调用 Messari 的异步研究引擎,并支持查询、获取和取消任务。
主要功能
- 01异步加密研究任务
- 02生成含来源的长篇报告
- 03查询任务状态并获取结果
- 04取消任务并查看历史记录
适用场景
- 01分析加密资产或协议
- 02研究 DeFi、L2 等行业
- 03探讨加密叙事或宏观问题
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ moonpay/ skills --skill messari-deep-research安装后在 Claude Code 中输入/messari-deep-research确认已加载。
详细介绍
Messari 深度研究工作流
目标
针对任意加密主题、资产、领域或问题,生成全面、详尽的研究报告。使用 Messari 的异步 AI 深度研究引擎,该引擎会抓取其知识图谱、链上数据和新闻,生成机构级报告。
每次运行费用:约 $0.50–$2.00 USDC(Base),异步运行,耗时 5–15 分钟
触发语句
- “撰写一份关于 [主题] 的深度研究报告”
- “为我全面分析 [资产/协议]”
- “研究 [DeFi/L2/RWA 等] 领域”
- “深入研究 [主题]”
- “生成一份研究报告”
步骤 0 — 运行前检查:检查余额
mp token balance list --wallet main --chain base --json
确保 Base 上至少有 $3.00 USDC。
步骤 1 — 启动深度研究任务
mp x402 request \
--method POST \
--url "https://api.messari.io/ai/v1/deep-research" \
--body '{
"query": "<your research question or topic>"
}' \
--wallet main \
--chain base
查询示例:
"What is the investment thesis for Ethereum restaking protocols in 2025?""Analyze the competitive landscape of L2 rollups""What are the key risks in the RWA tokenization sector?""Deep dive on Solana's DeFi ecosystem"
**响应:**返回任务 id(例如 dr_abc123)和状态 pending。
{
"id": "dr_abc123",
"status": "pending",
"created_at": "2025-..."
}
步骤 2 — 轮询任务是否完成(免费,重复直到完成)
mp x402 request \
--method GET \
--url "https://api.messari.io/ai/v1/deep-research/<JOB_ID>" \
--wallet main \
--chain base
状态值:
pending— 任务已排队,60 秒后重试processing— 正在生成,60 秒后重试completed— 报告已就绪,提取resultfailed— 任务失败,检查error字段
轮询免费(无需付款)。每隔 30–60 秒轮询一次。
步骤 3 — 获取已完成的报告
状态为 completed 后,响应中会包含完整报告:
{
"id": "dr_abc123",
"status": "completed",
"result": {
"title": "...",
"summary": "...",
"sections": [...],
"sources": [...]
}
}
完整工作流脚本(含自动轮询)
#!/bin/bash
# messari-deep-research.sh "<research query>"
# Usage: ./messari-deep-research.sh "Analyze the Solana DeFi ecosystem"
QUERY="${1:-What are the top crypto narratives for 2025?}"
WALLET="main"
CHAIN="base"
BASE="https://api.messari.io"
OUT="$HOME/.config/moonpay/research/deep-$(date -u +%Y%m%d-%H%M%S)"
mkdir -p "$(dirname "$OUT")"
echo "Starting deep research: \"$QUERY\""
echo ""
# Step 1: Start job
RESPONSE=$(mp x402 request --method POST \
--url "${BASE}/ai/v1/deep-research" \
--body "{\"query\": \"${QUERY}\"}" \
--wallet "$WALLET" --chain "$CHAIN")
echo "$RESPONSE" > "${OUT}-job.json"
JOB_ID=$(echo "$RESPONSE" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])" 2>/dev/null)
if [ -z "$JOB_ID" ]; then
echo "ERROR: Could not extract job ID. Response:"
echo "$RESPONSE"
exit 1
fi
echo "Job started: $JOB_ID"
echo "Polling for completion (this takes 5–15 minutes)..."
# Step 2: Poll loop
while true; do
sleep 30
STATUS_RESPONSE=$(mp x402 request --method GET \
--url "${BASE}/ai/v1/deep-research/${JOB_ID}" \
--wallet "$WALLET" --chain "$CHAIN")
STATUS=$(echo "$STATUS_RESPONSE" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status','unknown'))" 2>/dev/null)
echo " Status: $STATUS ($(date +%H:%M:%S))"
if [ "$STATUS" = "completed" ]; then
echo "$STATUS_RESPONSE" > "${OUT}-report.json"
echo ""
echo "Report complete! Saved to ${OUT}-report.json"
break
elif [ "$STATUS" = "failed" ]; then
echo "ERROR: Research job failed."
echo "$STATUS_RESPONSE"
exit 1
fi
done
取消正在运行的任务
mp x402 request \
--method POST \
--url "https://api.messari.io/ai/v1/deep-research/<JOB_ID>/cancel" \
--wallet main \
--chain base
列出过往研究任务
mp x402 request \
--method GET \
--url "https://api.messari.io/ai/v1/deep-research" \
--wallet main \
--chain base
输出格式
按以下格式呈现已完成的报告:
## Deep Research: [Report Title]
**Job ID:** dr_abc123
**Generated:** [timestamp]
**Cost:** ~$X.XX USDC
### Executive Summary
[2-3 paragraph summary]
### [Section 1 Title]
[content]
### [Section 2 Title]
[content]
...
### Sources
- [source 1]
- [source 2]
优质研究查询
资产深度分析:
"Investment thesis for [TOKEN]: fundamentals, competition, risks, and outlook""On-chain health of [TOKEN]: activity, retention, revenue"
领域分析:
"Competitive landscape of Ethereum L2 rollups in 2025""State of RWA tokenization: market size, key players, regulatory risks""DeFi lending protocols: risk comparison across Aave, Compound, and Morpho"
叙事研究:
"What is the AI x crypto narrative and which projects are best positioned?""Is the memecoin supercycle over? Evidence and counterarguments"
宏观:
"How does the current macro environment affect crypto market structure?"
注意事项
- 深度研究以异步方式运行——启动任务后即可离开,稍后再回来;不要一直等待
- 报告质量明显高于一次性 AI 聊天
- 如果状态为
processing且轮询超过 20 分钟,任务可能已卡住——请取消后重试 - 使用 Base 上的 USDC 付款(
--chain base) - 免费轮询:步骤 2 的 GET 请求不会触发付款
相关技能
- messari-x402 — 核心端点参考和快速 AI 聊天(
/ai/v2/chat/completions) - messari-token-research — 使用多个数据端点,更快速、低成本地研究代币
- messari-alpha-scout — 发掘值得深入研究的主题
- messari-funding-intel — 补充融资数据
评论
支持 Markdown