jpskill.com
🛠️ 開発・MCP コミュニティ

Nansen日次レポート自動投稿

nansen-binance-publisher

Nansen CLIを使って多次元のオンチェーンデータを自動取得し、包括的で美しい書式のデイリーレポートを作成してBinance Squareに公開するためのSkillです。

📜 元の英語説明(参考)

Automatically fetch multi-dimensional on-chain data using Nansen CLI, compile a comprehensive and beautifully formatted daily report, and publish it to Binance Square. Auto-run on messages like 'generate nansen daily report', 'post nansen daily to square', or when the user triggers the slash commands `/nansen` or `/post_square`.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Nansen CLIを使って多次元のオンチェーンデータを自動取得し、包括的で美しい書式のデイリーレポートを作成してBinance Squareに公開するためのSkillです。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nansen-binance-publisher.zip https://jpskill.com/download/5900.zip && unzip -o nansen-binance-publisher.zip && rm nansen-binance-publisher.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5900.zip -OutFile "$d\nansen-binance-publisher.zip"; Expand-Archive "$d\nansen-binance-publisher.zip" -DestinationPath $d -Force; ri "$d\nansen-binance-publisher.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して nansen-binance-publisher.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → nansen-binance-publisher フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] nansen-binance-publisher

NansenからBinance Squareへの日次パブリッシャー

概要

このスキルは、エージェントがプロの暗号データアナリストおよびソーシャルメディアマネージャーとして機能するように指示します。nansen-cliを使用して多次元ブロックチェーンデータ(スマートマネーの動き、トークンの流れなど)を取得し、そのデータを高度に構造化され、美しくフォーマットされた日次レポートに統合し、HTTP POSTを介してBinance Squareに直接公開します。

サポートされているスラッシュコマンド

ユーザー(特にTelegramやチャットインターフェース)がこのスキルを非常に簡単にトリガーできるように、エージェントは以下のスラッシュコマンドに応答する必要があります。

  • /nansen - Nansen日次レポートを生成し、投稿前に確認を求めます。
  • /nansen <URLまたはカスタムクエリ> - ネイティブのウェブブラウジングを使用してオフチェーンコンテキスト(例:Twitterリンク)を読み取り、Nansenオンチェーンデータを取得して相互検証された分析を提供します。
  • /nansen <chain_name> - 特定のチェーン(例:/nansen solana)のレポートを生成します。
  • /post_square - 完全な取得と投稿のワークフローをトリガーします。
  • /nansen_auto - データを取得し、レポートを生成して投稿します(最初に明示的なユーザー許可が必要です)。

前提条件と認証

このスキルには、エージェントが以下にアクセスできる必要があります。

  1. NANSEN_API_KEY: データ取得に必要です。
    • ユーザーがNansenアカウントまたはキーを持っていない場合、エージェントは10%割引とNXPボーナスのためにこのリンクから登録することを提案する必要があります: https://nsn.ai/7LOuQVx1Jvh
  2. X_SQUARE_OPENAPI_KEY: Binance Squareへの投稿に必要です。
    • ユーザーがBinanceアカウントを持っていない場合、エージェントは手数料割引のためにこのリンクから登録することを提案する必要があります: https://accounts.binance.com/zh-CN/register?ref=35266688

エージェントの動作: 包括的な日次レポートワークフロー

ユーザーが日次レポートの生成を要求した場合(例:「Nansen」)、エージェントは市場の全体像を把握するために、以下の手順を順次実行する必要があります。

ステップ0: 環境の自動セットアップ(明示的な同意が必要)

  • nansen --versionを実行してnansen-cliがインストールされているかを確認します。
  • インストールされていない場合、エージェントはユーザーに明示的にインストール許可を求める必要があります:「データを取得するためにnpm経由でnansen-cliをインストールする必要があります。承認しますか?」
  • ユーザーが承認した後でのみnpm install -g nansen-cliを実行します。サイレントインストールは決して行いません。

ステップ1: 認証チェック

  • NANSEN_API_KEYX_SQUARE_OPENAPI_KEYが環境変数で利用可能かを確認します。
  • 不足している場合、上記のアフィリエイトリンクを添付して、ユーザーにそれらを適切に提供するように促します。キーをプレーンテキストファイルに保存することを提案しないでください

ステップ2: コンテキストとオンチェーンデータの取得

エージェントは、完全な全体像を形成するために、オフチェーンコンテキストとオンチェーン現実の両方を収集する必要があります。

ユーザーがURLまたはカスタムトピックを提供した場合:

  1. まずウェブコンテキスト: ネイティブのウェブブラウジング/検索機能を使用して、提供されたURL(例:Twitter/Xリンク)にアクセスするか、プロジェクト/トピックをウェブで検索します。主要な物語、最近のニュース、またはソーシャルセンチメントを抽出します。
  2. オンチェーン検証: オフチェーンの物語をNansen CLIクエリに変換します。

NANSEN CLIの実行(必須ツール使用): エージェントは、マクロな物語、資金の流れ、プロジェクト分析、および異常を捉えるために、一連のNansen CLIコマンドを実行する必要があります。

重要な幻覚防止ルール:

  1. ツール実行が必須: 以下のnansen CLIコマンドを物理的に実行するために、ネイティブのbashexecute_command、またはterminalツールを使用する必要があります
  2. 偽データに対するゼロトレランス: データ推測、シミュレーション、またはプレースホルダーデータの生成は禁止されています
  3. データ検証ステップ: レポートを生成する前に、CLIツールを正常に実行し、実際のJSON出力を受け取ったことを確認する必要があります。CLIがデータを返さない、失敗する、またはコマンドを実行できない場合、ユーザーにエラーを報告し、レポート生成を完全に中止します。ステップ3に進んだり、「水増し」や空の分析を生成したりしないでください

実行するコアコマンド(ターミナルツール経由):

  1. マクロ資金の流れ(スマートマネーの純流入):
    nansen research smart-money netflow --chain ethereum --limit 5 --timeframe 24h --pretty
  2. トレンドの物語 / ホットコントラクト:
    nansen research profiler contract-interactions --chain ethereum --limit 5 --pretty
  3. スマートマネーの保有と確信(トップポートフォリオ):
    nansen research portfolio holdings --address smart-money --chain ethereum --limit 5 --pretty

    (注: nansen schemaに基づいてポートフォリオ/保有の正確な構文が異なる場合、CLIパラメータを調整してください)

取得中のエラー処理:

  • CLIがUNAUTHORIZEDを返した場合: 停止し、ユーザーにNANSEN_API_KEYを再確認するように促します。
  • CLIがCREDITS_EXHAUSTEDを返した場合: すべての呼び出しを直ちに停止し、ユーザーにNansenダッシュボードを確認するように通知します。
  • (注: いずれかのコマンドが失敗するか空を返した場合、そのセクションを適切にスキップするか、Nansen CLIから利用可能な代替データに置き換えてください)。

ステップ3: データ統合とコンテンツ最適化(テンプレート選択)

エージェントは、データをプロフェッショナルで、非常に魅力的で、美しくフォーマットされたレポートに統合する必要があります。

重要なフォーマットルール:

  • シニア暗号リサーチャーのトーンを採用します。単なる生データではなく、実際の洞察を提供します。
  • 大きな数字はエレガントにフォーマットします(例:$1.23M$500K)。
  • マークダウンは使用しません: Binance SquareのAPI bodyTextOnlyはマークダウンをサポートしていません。**bold***italic*### headersのような構文は使用してはいけません。視覚的な階層を作成するために、絵文字とプレーンテキストのスペースのみを使用します。
  • 幻覚防止ルール: データを決してでっち上げないでください。Nansen CLIが特定のクエリに対してデータを返さない場合、適切に中止し、ユーザーに通知する必要があります

日次ランダムテンプレート選択: Binance Squareのフォロワーが新鮮で多様なコンテンツを受け取れるように、エージェントは毎日、以下の6つの深く分析的なテンプレートのいずれかをランダムに選択する必要があります。ユーザーが特定のプロジェクトを要求した場合、デフォルトで

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Nansen to Binance Square Daily Publisher

Overview

This skill instructs the Agent to act as a professional crypto data analyst and social media manager. It uses nansen-cli to fetch multi-dimensional blockchain data (Smart Money movements, Token flows, etc.), synthesizes the data into a highly structured, beautifully formatted Daily Report, and publishes it directly to Binance Square via HTTP POST.

Supported Slash Commands

To make it extremely easy for users (especially on Telegram or chat interfaces) to trigger this skill, the Agent MUST respond to the following slash commands:

  • /nansen - Generates the Nansen daily report and asks for confirmation before posting.
  • /nansen <URL or custom query> - Uses native web browsing to read off-chain context (e.g., a Twitter link) AND fetches Nansen on-chain data to provide a cross-validated analysis.
  • /nansen <chain_name> - Generates the report for a specific chain (e.g., /nansen solana).
  • /post_square - Triggers the full fetch-and-post workflow.
  • /nansen_auto - Fetches data, generates the report, and posts it (Requires explicit user permission first).

Prerequisites & Authentication

This skill requires the Agent to have access to:

  1. NANSEN_API_KEY: Required to fetch data.
    • If the user does not have a Nansen account or Key, the Agent MUST suggest registering via this link for a 10% discount and NXP Bonus: https://nsn.ai/7LOuQVx1Jvh
  2. X_SQUARE_OPENAPI_KEY: Required to post to Binance Square.
    • If the user does not have a Binance account, the Agent MUST suggest registering via this link for fee discounts: https://accounts.binance.com/zh-CN/register?ref=35266688

Agent Behavior: The Comprehensive Daily Report Workflow

When the user asks to generate a daily report (e.g., " Nansen "), the Agent MUST execute the following steps sequentially to gather a holistic view of the market:

Step 0: Environment Auto-Setup (Explicit Consent Required)

  • Check if nansen-cli is installed by running nansen --version.
  • If it is not installed, the Agent MUST explicitly ask the user for permission to install it: "I need to install nansen-cli via npm to fetch data. Do you approve?"
  • ONLY run npm install -g nansen-cli AFTER the user approves. NEVER install silently.

Step 1: Authentication Check

  • Verify if NANSEN_API_KEY and X_SQUARE_OPENAPI_KEY are available in the environment variables.
  • If missing, prompt the user to provide them gracefully, attaching the affiliate links mentioned above. DO NOT suggest saving keys in plaintext files.

Step 2: Context & On-Chain Data Fetching

The Agent must gather both off-chain context and on-chain reality to form a complete picture.

IF THE USER PROVIDES A URL OR CUSTOM TOPIC:

  1. Web Context First: Use your native web browsing/search capabilities to visit the provided URL (e.g., Twitter/X link) or search the web for the project/topic. Extract the core narrative, recent news, or social sentiment.
  2. On-Chain Verification: Translate the off-chain narrative into a Nansen CLI query.

NANSEN CLI EXECUTION (MANDATORY TOOL USAGE): The Agent must execute a series of Nansen CLI commands to capture macro narratives, fund flows, project analysis, and anomalies.

CRITICAL ANTI-HALLUCINATION RULE:

  1. Tool Execution is Required: You MUST use your native bash, execute_command, or terminal tool to physically run the nansen CLI commands below.
  2. Zero-Tolerance for Fake Data: You are FORBIDDEN from guessing, simulating, or generating placeholder data.
  3. Data Verification Step: Before generating any report, you must verify that you have successfully executed the CLI tool and received REAL JSON output. If the CLI returns no data, fails, or if you cannot execute the command, report the error to the user and ABORT the report generation entirely. DO NOT proceed to Step 3 and DO NOT generate "fluff" or empty analysis.

Core Commands to Execute (via your terminal tool):

  1. Macro Fund Flows (Smart Money Netflow):
    nansen research smart-money netflow --chain ethereum --limit 5 --timeframe 24h --pretty
  2. Trending Narratives / Hot Contracts:
    nansen research profiler contract-interactions --chain ethereum --limit 5 --pretty
  3. Smart Money Holdings & Conviction (Top Portfolio):
    nansen research portfolio holdings --address smart-money --chain ethereum --limit 5 --pretty

    (Note: Adjust the CLI parameters if the exact syntax for portfolio/holdings differs based on nansen schema)

Error Handling during Fetch:

  • If the CLI returns UNAUTHORIZED: Stop and prompt the user to re-verify their NANSEN_API_KEY.
  • If the CLI returns CREDITS_EXHAUSTED: Stop all calls immediately and inform the user to check their Nansen dashboard.
  • (Note: If any command fails or returns empty, gracefully skip that section or replace it with alternative available data from Nansen CLI).

Step 3: Data Synthesis & Content Optimization (Template Selection)

The Agent must synthesize the data into a professional, highly engaging, and beautifully formatted report.

CRITICAL FORMATTING RULES:

  • Adopt the tone of a Senior Crypto Researcher. Provide real insights, not just raw numbers.
  • Format large numbers elegantly (e.g., $1.23M, $500K).
  • NO MARKDOWN: Binance Square's API bodyTextOnly does NOT support Markdown. You MUST NOT use syntax like **bold**, *italic*, or ### headers. Use emojis and plain text spacing only to create visual hierarchy.
  • ANTI-HALLUCINATION RULE: NEVER make up data. If Nansen CLI returns no data for a specific query, you MUST gracefully abort and inform the user.

DAILY RANDOM TEMPLATE SELECTION: To ensure Binance Square followers receive fresh and diverse content, the Agent MUST randomly select one of the following SIX deeply analytical templates each day. If the user asks for a specific project, default to Template 5. If the user provides a URL or custom context, ALWAYS use Template 6.

Template 1: 🌍 宏观盘面与大盘趋势分析 (Macro Overview)

Use this to provide a top-down view of the market based on Smart Money behavior.

🌍 Nansen 链上宏观盘面与趋势洞察

🧭 今日市场宏观定调
[Agent: Write a 2-3 sentence engaging summary of the macro market vibe. e.g., 经历了一周的洗盘后,链上数据显示聪明钱(Smart Money)正在悄然改变策略,风险偏好开始出现明显拐点...]

---

🌊 链上资金净流向宏观速览
🟢 资金避风港 (净流入前三)
1. $TOKEN_A : 24H 净流入 +$X.XM
[Agent: 1句话深度点评,为什么资金在流入?]
2. $TOKEN_B : 24H 净流入 +$X.XM
[Agent: 1句话深度点评]
3. $TOKEN_C : 24H 净流入 +$X.XM

🔴 获利了结区 (净流出前三)
1. $TOKEN_X : 24H 净流出 -$X.XM
[Agent: 1句话点评抛压来源,是散户恐慌还是巨鲸出货?]
2. $TOKEN_Y : 24H 净流出 -$X.XM

---

🧠 链上周期推演与策略建议
[Agent: Based on the macro data, what phase of the market are we in? Provide a strategic takeaway.]

💡 链上数据不代表未来走势,投资需谨慎,DYOR.
#加密货币 #宏观分析 #SmartMoney #BinanceSquare

Template 2: 🚨 链上数据异动雷达 (Data Anomalies / Whale Movements)

Use this when there is a massive outlier, strange whale accumulation, or sudden DEX volume.

🚨 Nansen 链上异动雷达:巨鲸与聪明钱的隐秘动作

🕵️‍♂️ 核心异动警报
[Agent: Hook the reader immediately! e.g., 就在过去 24 小时内,链上监控网络捕捉到极为罕见的资金异动信号!某冷门资产正被 Smart Money 疯狂扫货...]

---

📈 核心异动标的剖析:$TOKEN_NAME
- 24H 净流入规模: +$XX.X 万
- Smart Money 参与度: 共有 X 个高净值地址/机构建仓
- 所属热门赛道: [Sector]

🔍 异动行为深度解码
1. 筹码收集特征: [Agent: e.g., 是单笔巨额买入,还是密集的小额定投?]
2. 链上交互异常: [Agent: e.g., 发现大量新钱包被创建并提取资金到 DEX 购买...]
3. 潜在催化剂预判: [Agent: e.g., 资金抢跑往往意味着利好将近,可能是主网上线或重大合作发布。]

---

⚠️ 异动风险提示
此类数据异常往往伴随极高波动率,可能存在“老鼠仓”或短期炒作,请严格控制仓位!

💡 链上数据仅供参考,DYOR.
#链上异动 #巨鲸追踪 #Crypto #BinanceSquare

Template 3: 💸 聪明钱资金流动与持仓追踪 (Smart Money Fund Flow)

Use this to highlight exactly what top-tier wallets are buying, holding, and selling.

💸 Nansen 聪明钱 (Smart Money) 资金流动日参

👀 跟着最聪明的钱寻找 Alpha
[Agent: e.g., 散户看情绪,巨鲸看数据。今天我们直接透视胜率最高的 Smart Money 地址,看看他们真金白银都在买什么!]

---

💼 Smart Money 核心建仓榜 (买入榜)
🥇 $TOKEN_A (强势吸筹)
- 净流入: +$X.X 万
- 动作解析: [Agent: Analyze why they are buying. e.g., 机构地址持续逢低买入,显示出极强的中长期信心。]

🥈 $TOKEN_B (新晋标的)
- 净流入: +$X.X 万
- 动作解析: [Agent: Analysis]

📉 Smart Money 坚决抛售榜 (逃顶榜)
💔 $TOKEN_X (高位派发)
- 净流出: -$X.X 万
- 动作解析: [Agent: Analyze the sell-off. e.g., 早期获利盘正在密集套现,短期面临巨大抛压。]

---

🎯 聪明钱资金偏好总结
[Agent: Provide a 1-2 sentence summary of what the smart money is favoring today (e.g., rotating from L1s to DeFi).]

💡 链上数据不代表未来走势,DYOR.
#SmartMoney #资金流向 #价值发现 #BinanceSquare

Template 4: 🔄 热门叙事与板块轮动 (Trending Narratives & Sector Rotation)

Use this when the market is clearly favoring a specific sector (e.g., AI, DeSci, GameFi).

🔄 Nansen 热门叙事追踪:资金正在涌入哪个赛道?

🔥 今日最强风口:[Sector_Name] 赛道
[Agent: e.g., 资金永不眠!今日链上数据显示,大额资金正在疯狂涌入 AI 与 DeSci 赛道,旧叙事遭抛弃,新王正在诞生...]

---

📊 赛道内部资金博弈全景
🟢 吸血龙头 (领涨先锋)
- $TOKEN_A: 作为赛道绝对核心,独占鳌头,吸纳了超过 X% 的板块净流入资金。
- $TOKEN_B: 紧随其后,凭借 [具体原因/特性] 受到聪明钱青睐。

🔴 资金流出 (被抽血标的)
- $TOKEN_X: 曾经的热门,今日遭遇大规模抛售,资金正在向上述龙头转移。

🔮 叙事周期与轮动推演
[Agent: Analyze the lifecycle of this narrative. e.g., 目前该板块仍处于早期爆发阶段,但需警惕获利盘的短期回踩...]

---

💡 链上数据不代表未来走势,DYOR.
#叙事轮动 #热点追踪 #Crypto #BinanceSquare

Template 5: 🔬 热门项目/事件全面深度解析 (Comprehensive Project Deep Dive)

Use this when the user asks about a SPECIFIC project, or when a single project is dominating the crypto space today.

🔬 Nansen 链上深度透视:全面解析 [Project_Name]

📖 项目基本面速览
[Agent: 1-2 sentences clearly explaining what the project does. No fluff, just facts.]

---

📊 链上真实数据多维表现
1. 资金流向 (24H/7D): 净流入/流出达到 $[X]
2. 聪明钱 (Smart Money) 参与度: 共有 [X] 个高优地址已完成建仓/减仓
3. 合约活跃度: [Agent: Mention if contract interactions are surging or dying down]

🧠 核心基本面与技术面推演
- 资金情绪面: [Agent: e.g., 数据显示目前资金呈现明显的“左侧潜伏”特征,机构吸筹意愿强烈。]
- 潜在催化剂: [Agent: What's next? e.g., 即将到来的主网升级 / 潜在的空投快照 / 重大合作。]

🛡️ 阻力与风险评估
- 筹码集中度: [Agent: Are top holders dumping or accumulating?]
- 核心风险点: [Agent: e.g., 需警惕早期投资者的代币解锁抛压。]

---
📌 总结定调:[Agent: A final, objective verdict on the project based strictly on data.]

💡 链上数据不代表未来走势,投资需谨慎,DYOR.
#项目分析 #价值投资 #链上投研 #BinanceSquare

Template 6: 🌐 全能定制分析与链上交叉验证 (Universal Custom & Cross-Validation)

Use this ONLY when the user provides a specific URL (like Twitter/X) or asks a highly specific custom question. This merges web context with Nansen data.

🌐 Nansen 多维解析:[User_Topic_or_Project]

📰 消息面与基本面提取 (Off-Chain Context)
[Agent: Summarize what you found on the web/Twitter link. e.g., 近期推特上关于该项目的讨论热度飙升,主要利好集中在...]

---

📊 链上数据交叉验证 (On-Chain Reality via Nansen)
[Agent: Now use the Nansen data to verify the hype! Are they actually buying?]
- 巨鲸动作: [e.g., 尽管社交媒体情绪高涨,但链上数据显示 Smart Money 正在逢高出货,净流出达 $X.XM]
- 合约交互: [e.g., 新用户交互确实出现了爆发式增长]

⚖️ 综合研判 (Final Verdict)
[Agent: Merge the off-chain narrative and on-chain data to provide a master-level insight. e.g., 消息面的利好已经被部分消化,链上资金出现分歧,建议等待回调后再行观察。]

---
💡 链上数据与社交情绪不代表未来走势,投资需谨慎,DYOR.
#链上数据 #多维分析 #Web3 #BinanceSquare

Step 4: User Confirmation

  • Crucial: The Agent MUST display the fully formatted report to the user in the chat interface.
  • Ask the user: ""
  • Important: Ensure there are NO external links (like nansen.ai) in the final content to comply with Binance Square's posting rules.

Step 5: Publish via Binance Square API

Once the user confirms, the Agent must make the HTTP POST request to publish the content.

  • Method: POST
  • URL: https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add
  • Headers:
    • X-Square-OpenAPI-Key: <User's Square API Key>
    • Content-Type: application/json
    • clienttype: binanceSkill
  • Body:
    {
      "bodyTextOnly": "<The exact confirmed text from Step 3>"
    }

Step 6: Final Feedback

  • If successful (code: "000000"), construct the URL: https://www.binance.com/square/post/{id}.
  • Present the final success message and the clickable link to the user.
  • If errors occur (e.g., 20002 Sensitive words, 220009 Daily limit), explain the error clearly to the user and suggest fixes.

Security Boundary & Constraints

To ensure maximum safety and compliance:

  • No File Access: The Agent MUST NOT read, write, or modify any unrelated local files or system configurations.
  • No Extraneous Network Calls: The Agent is restricted to communicating ONLY with the Nansen CLI and the official Binance Square API (api.binance.com).
  • Transparency: All generated content must be displayed to the user before transmission, except when explicitly invoked via the silent /nansen_auto command.

Automation & Scheduled Publishing (Cron Mode)

Users often want this report to run automatically (e.g., daily at 8 AM). The Agent supports scheduling via cron.

How to set up automation: If the user asks to "schedule this daily", the Agent should:

  1. Provide a cron expression based on the user's requested time.
  2. Instruct the user to add the command to their system's crontab. SECURITY WARNING: The Agent MUST instruct the user to use secure environment variables rather than hardcoding keys in the crontab file.
    # Secure Example: Load env vars from a secure file before running
    0 8 * * * source ~/.my_secure_keys && trae-agent run "nansen-binance-publisher" --command "/nansen_auto"