cfx-briefing/SKILL.md
Use this skill when the user wants a CFX/Conflux investment briefing, market report,行情分析,投资简报, or multi-source report covering price, exchange data, on-chain data, governance, Twitter/X sentiment, whale holdings, and news. Trigger on "CFX", "cfx", "CFX --api", "CFX --md", "生成CFX简报", "Conflux简报", "今日CFX", and similar requests. This is the Codex-native version. Never call Claude Code or /Users/mac/.local/bin/claude.
npx skillsauth add run6270/skill cfx-briefingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/Users/mac/.local/bin/claude。TeamCreate、TaskCreate、TaskOutput、TaskUpdate。.env 或任何 API Key。reports/daily/CFX简报_2026-05-16.html 的完整度作为新的最低基线。优先级:
PROJECT_CONTEXT.md、TRACKING.md 或 .claude/skills/cfx-briefing,直接作为 $CFX_PROJECT_DIR。~/.codex/AGENTS.md,查找 cfx-briefing skill 的项目目录在:。本项目默认目录:
/Users/mac/Documents/GitHub/CFX-DWF行情
按需读取,避免一次性加载全部历史简报:
$CFX_PROJECT_DIR/PROJECT_CONTEXT.md$CFX_PROJECT_DIR/TRACKING.md$CFX_PROJECT_DIR/.claude/skills/cfx-briefing/modules/VOICE.md$CFX_PROJECT_DIR/.claude/skills/cfx-briefing/modules/PRICE_ANALYSIS.md$CFX_PROJECT_DIR/.claude/skills/cfx-briefing/modules/SENTIMENT.md$CFX_PROJECT_DIR/.claude/skills/cfx-briefing/modules/TECH_UPDATE.md$CFX_PROJECT_DIR/TRACKING.md 中的生态激励、AxCNH、BSIM、Hexbit/Conflux 合作跟踪。reference/ecosystem_projects.md(若在 skill 目录存在)中的生态项目清单。在项目目录运行:
git log --oneline -10
git status --short
date '+%Y-%m-%d %H:%M:%S %Z'
只汇报必要状态,不要暴露 .env。
生成前必须读取以下本地基线,不要跳过:
/Users/mac/.codex/automations/cfx/memory.md 的最近 3 条 CFX 日报记录。reports/daily/ 中日期最近、通过验证的 CFX简报_YYYY-MM-DD.html。reports/daily/CFX简报_2026-05-16.html 和 reports/benchmarks/cfx_briefing_data_2026-05-16.json,把它们作为最低质量基线。对标检查必须在心里或临时笔记中覆盖:
如果当天新稿缺少基线中已有的结构、字段或证据文件,先修复再进入最终回复。
在 Codex 中用可用工具并行采集独立数据源。能用 multi_tool_use.parallel 时优先并行读取 shell/API 输出;需要最新外部消息时必须联网检索并引用来源。
价格:
curl -s "https://api.coingecko.com/api/v3/coins/conflux-token?localization=false&tickers=false&community_data=false&developer_data=false&sparkline=false"
curl -s "https://coins.llama.fi/prices/current/coingecko:conflux-token"
提取:
current_price.usdprice_change_percentage_24hprice_change_percentage_7dprice_change_percentage_30dmarket_cap.usdtotal_volume.usdcirculating_supplymarket_cap_rank交易所盘口:
curl -s "https://api.binance.com/api/v3/ticker/24hr?symbol=CFXUSDT"
curl -s "https://www.okx.com/api/v5/market/ticker?instId=CFX-USDT"
curl -s "https://api.gateio.ws/api/v4/spot/tickers?currency_pair=CFX_USDT"
curl -s "https://api.mexc.com/api/v3/ticker/24hr?symbol=CFXUSDT"
python3 "$CFX_PROJECT_DIR/scripts/fetch_orderbook.py"
链上:
curl -s "https://api.llama.fi/v2/chains"
curl -s "https://api.llama.fi/v2/historicalChainTvl/Conflux"
curl -s "https://api.confluxscan.io/statistics/account/growth?duration=day&intervalType=day"
curl -s "https://evmapi.confluxscan.io/statistics/account/growth?duration=day&intervalType=day"
python3 "$CFX_PROJECT_DIR/scripts/fetch_axcnh_data.py"
治理:
https://confluxhub.io/vote/chain-params/。治理页面渲染失败,不要编造。巨鲸:
python3 "$CFX_PROJECT_DIR/scripts/fetch_whale_data.py"
如果 CoinCarp 解析失败但脚本返回历史缓存,必须在简报中写明 使用历史基准数据,不要把缓存当作实时异动。
推特/X 舆情:
$CFX_PROJECT_DIR/.env 只用于加载 XAI_API_KEY,不要打印内容。POST https://api.x.ai/v1/responses。grok-4-1-fast-reasoning;如官方模型列表变化,先用 /v1/models 确认,再回退到文档示例的 grok-4.20-reasoning 或列表中的具体版本名。x_search。allowed_x_handles 每批最多 10 个账号。.env 中的 XAI_API_KEY,并在请求 xAI 前清理 http_proxy、https_proxy、all_proxy、no_proxy;如果 Python/Node /v1/models 返回 200,不要因为 curl 失败把 xAI 误判为不可用。curl 不一定继承系统代理。调用 xAI 前先执行 scutil --proxy;如果 HTTPS/SOCKS 代理指向 127.0.0.1:7890,curl 必须显式增加 -x http://127.0.0.1:7890。如果直连 /v1/models 超时而代理请求成功,不要判定为额度不足。/v1/models 预检:返回 200 才继续 x_search;如果返回 401/402/429,按鉴权/余额/限流处理;如果是 HTTP_STATUS:000、Connection reset、Timeout,优先检查 DNS/代理。(from:账号1 OR from:账号2 ...) since:YYYY-MM-DD until:YYYY-MM-DD,并且只输出监控账号,避免 Grok 扩展到非监控账号。Conflux_Network, Conflux_Intern, CamillaCaban, CikeinWeb3, SwappiDEX, OfficialNucleon, dForcenet, BitUnion_Card, Joyzinweb3, forgiveneverestherinweb3, FanLong16, GuangYang_9, AnchorX_Ltd, HexbitApp, bxiaokang获取超时,不要使用旧推文填充。获取超时 汇总卡片。新闻:
输出路径:
$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.html
可用 Python/TypeScript 组装 HTML,因为这是动态报告产物。不要用 Claude skill 中的 Bash heredoc 分段写入规则;那是 Claude 工具限制,不适用于 Codex。
同时尽量保存结构化证据文件,命名按日期落到 reports/benchmarks/:
cfx_live_collect_YYYY-MM-DD.json:可获取的实时 API/网页数据汇总。cfx_briefing_data_YYYY-MM-DD.json:最终进入报告的规范化数据快照。confluxhub_snapshot_YYYY-MM-DD.txt:治理页面浏览器渲染快照。xai_twitter_refresh_YYYY-MM-DD.json:xAI/X 舆情原始响应或失败预检。orderbook_top5_YYYY-MM-DD.json、whale_YYYY-MM-DD.json、axcnh_YYYY-MM-DD.json:本地脚本结果。生成 HTML 后必须用浏览器打开本地文件并保存:
$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.png
$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.snapshot.txt
如果截图或 snapshot 工具不可用,必须在最终报告和数据来源章节说明原因;不能把“HTML 已写入”当作完整完成。
Markdown 请求 (CFX --md) 时输出:
$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.md
$0.26、浮亏、回本涨幅、24H/7D/30D 涨跌、市值、成交量。接口受限。获取超时 或降级原因。浮亏% = (price - 0.26) / 0.26 * 100
回本涨幅% = (0.26 - price) / price * 100
遵守 modules/VOICE.md:
生成后必须运行:
test -f "$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.html"
rg -n "价格概览|交易所盘口|治理投票|巨鲸|链上数据|推特|生态项目|重大新闻|综合评估|数据来源" "$CFX_PROJECT_DIR/reports/daily/CFX简报_YYYY-MM-DD.html"
必须执行质量闸门,任一失败先修 HTML 再重跑:
$0.26 重新计算:(price - 0.26) / 0.26 和 (0.26 - price) / price。稳赚不赔|百分百|保证|必然|绝对|肯定会|一定|确保|无风险。Bearer、真实 key、sk-...、.env 内容或 API key 变量值。reports/benchmarks/cfx_briefing_data_YYYY-MM-DD.json 必须存在,并能回溯关键数字。如果项目依赖可用,运行:
npm run test:evaluator
运行 evaluator 前先预检 node_modules/.bin/tsx、@anthropic-ai/sdk、test-evaluator.ts、agents/cfx-briefing-evaluator.ts 或对应 .js。如果评估器失败,先读失败原因;能修就修,不能修就在最终报告中说明。
最终回复包含:
documentation
Provide a lookup index of dbt models (BigQuery tables) to guide query writing against a data warehouse. Use when you need to query, analyze, or look up data in a dbt-powered data warehouse, or when resolving a vague data question into the right BigQuery tables to query.
development
Evidence-first academic integrity auditing and public-interest science storytelling distilled from the full Bilibili video corpus of 耿同学讲故事 plus public interviews. Use when investigating suspected paper/data/image/academic-identity problems, evaluating biomedical or health-tech claims, drafting official complaint memos, or writing rigorous Chinese public-interest scripts with explicit evidence boundaries.
tools
Create a GitHub pull request following project conventions. Use when the user asks to create a PR, submit changes for review, or open a pull request. Handles commit analysis, branch management, and PR creation using the gh CLI tool.
testing
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership.