360 Secure SkillHub
360 安全技能中心

market-report-using-cmc-cli

面向 OpenClaw 的加密市场报告技能:调用已安装的 cmc 命令行工具(需 CMC_API_KEY)获取市场指标、BTC/ETH 价格、热门币、24 小时涨跌与新闻,按市场快照、BTC 与 ETH、动能、新闻流、风险提示五节固定顺序输出精简报告;命令失败时保留该节并附简短说明。

coinmarketcap-official
coinmarketcap-official
热度 24.54
最近更新 2026-03-27 21:11:58
分类:数据依赖:代码执行 / 第三方 API应用场景:报告撰写 / 市场分析 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add market-report-cmc-cli
Metadata
name
openclaw-cmc-market-report
description
Use for OpenClaw-only crypto market report requests such as market report, market snapshot, crypto morning brief, how's crypto today, or today's crypto market summary; produce the fixed report format using shipped cmc commands only.
version
0.1.0
metadata
{"openclaw":{"requires":{"bins":["cmc"],"env":["CMC_API_KEY"]},"primaryEnv":"CMC_API_KEY","homepage":"https://github.com/coinmarketcap-official/CoinMarketCap-CLI"}}

OpenClaw CMC Market Report

Use this skill only for OpenClaw-driven market report workflows. Keep it aligned with cmc-cli and openclaw-cmc-cli; do not restate the command encyclopedia here.

Prerequisites

This skill requires:

  • cmc CLI installed and available on PATH — see CoinMarketCap CLI for installation options
  • CMC_API_KEY available to OpenClaw via skill config or session environment

If either dependency is missing, the skill will not function.

Trigger

Apply when the request matches or clearly implies:

  • market report
  • market snapshot
  • crypto morning brief
  • how's crypto today
  • today's crypto market summary

Scope

  • Use only shipped cmc commands for this report.
  • Default commands:
    • metrics
    • price --id 1,1027
    • trending
    • top-gainers-losers --time-period 24h
    • news --limit 5
  • Use pairs <id> --category derivatives only when the user explicitly asks for derivatives or an asset-specific derivatives extension.
  • Do not switch to MCP or raw Pro API inside this skill.
  • Treat resolve and history as higher-caution, non-default dependencies for this report. Use them only if the request truly needs identity disambiguation or historical context.

Report Format

Always output these sections in this order:

  1. Market Snapshot
  2. BTC & ETH
  3. Momentum
  4. News Flow
  5. Risks / Caveats

Section Rules

  • Market Snapshot: summarize the broad tape from metrics, trending, and top-gainers-losers.
  • BTC & ETH: anchor on price --id 1,1027; keep it tight and comparative.
  • Momentum: focus on the strongest movers and what the 24h setup suggests.
  • News Flow: use only the top 5 news items and keep it signal-first.
  • Risks / Caveats: call out data gaps, stale prints, noisy headlines, and any derivatives caveat if pairs was used.

Failure Handling

  • If a command fails, return the affected section with a short partial note instead of dropping the whole report.
  • If a command returns incomplete data, say what is missing, use the available subset, and continue to the next section.
  • If BTC/ETH data is unavailable, state that explicitly and still complete the remaining sections.

Style

  • Be concise and instruction-focused.
  • Prefer report-ready output over explanation.
  • Keep the tone suitable for OpenClaw task execution, not general assistant chatter.