Communitygithub.com

EVM 錢包資產分佈分析與高風險協議暴露識別

分析 EVM 錢包的資產分佈,並識別高風險的 DeFi 協議暴露。

EVM 錢包資產分佈分析與高風險協議暴露識別 是什麼?

這項技能旨在幫助開發者或 AI Agent 使用者深入分析 EVM 兼容鏈上錢包的資產配置,並評估其面臨的 DeFi 協議風險。使用者只需提供一個 EVM 地址,技能便會透過 Zerion API 擷取完整的資產組合數據,包括原生代幣、穩定幣及 DeFi 部位。接著,它會進一步從 DefiLlama 獲取協議的總鎖倉量(TVL)、審計資訊與近期安全事件,並結合一個自訂的風險評分模型(考量審計狀態、近期漏洞事件、TVL 趨勢及協議年齡),為每個 DeFi 部位計算從低到高的風險等級。最終,它會產出一份結構化的 Markdown 報告,內含資產分佈圖表、前幾大持倉、高風險協議的詳細分析及具體的行動建議。此技能適用於 Claude Code、Cline 等支援工具呼叫與 API 的 Agent 平台,能夠自動化錢包健康檢查、協議風險監控與 DeFi 投資組合審計流程,大幅提升效率與安全性。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry-data/tree/HEAD/analysis/pubfi-wallet-portfolio-analysis

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

錢包資產組合分析

目標: 提供 EVM 錢包的簡潔資產分佈分析與風險評估。

輸入

  • wallet_address (必填): EVM 地址 (0x...)

資料來源

主要: 透過 zerion-portfolio.py 使用 Zerion API

# 獲取所有資產
python3 zerion-portfolio.py <address>

# 只獲取 DeFi 部位
python3 zerion-portfolio.py <address> --only-defi

環境變數: 必須設定 ZERION_API_KEY。如果未設定,請前往 https://www.zerion.io/api 取得您的 API 金鑰

執行工作流程

步驟 1: 驗證輸入

1. 檢查地址格式: 0x + 40 個十六進位字元
2. 若格式無效: 退出並顯示錯誤訊息

步驟 2: 擷取資產組合資料

# 執行 Zerion 資產組合腳本
python3 skills/pubfi-wallet-portfolio-analysis/zerion-portfolio.py <address>

處理邊界情況:

  • 空錢包 → 回報「空錢包」
  • API 失敗 → 退出並顯示錯誤,無法繼續
  • 零價值部位 → 跳過

步驟 3: 分類資產

按類型分組:
  原生代幣: ETH, MATIC, BNB 等
  穩定幣: USDC, USDT, DAI, USDS
  DeFi 部位: 具有 protocol 屬性且 position_type != 'wallet'
  其他代幣: 其餘所有

追蹤每個類別的總價值,計算分佈百分比

步驟 4: 識別 DeFi 協議

對於每個 DeFi 部位:
  1. 從 attributes.protocol 中提取協議名稱
  2. 識別部位類型 (借貸/質押/流動性提供等)
  3. 記錄部位價值及其佔資產組合的百分比
  4. 建立用於風險評估的唯一協議列表

步驟 5: 風險評估 (僅限 DeFi 協議)

對於每個已識別的協議:
  
  A. 擷取協議資料 (並行處理):
     - DefiLlama API: curl "https://api.llama.fi/protocol/{slug}"
     - 提取 TVL、鏈、審計資訊、類別
  
  B. 檢查近期漏洞事件:
     - 在 rekt.news 搜尋協議名稱
     - 篩選過去 90 天
     - 記錄任何事件
  
  C. 計算風險分數:
     風險 = 基礎分數 + 事件分數 + 審計分數 + TVL 趨勢分數
     
     因子:
     - 無審計: +5
     - 近期漏洞事件 (90 天內): +5
     - TVL 跌幅 >50% (30 天內): +3
     - TVL 跌幅 20-50%: +2
     - 新協議 (<6 個月): +2
     - 單一審計: +1
     - 多次審計: -2
     - 經市場考驗 (>1 年): -1
  
  D. 分配風險等級:
     - 分數 > 7: 🔴 高風險
     - 分數 4-7: 🟡 中風險
     - 分數 < 4: 🟢 低風險
  
  E. 錯誤處理:
     - DefiLlama 失敗: 將 TVL 標記為「N/A」,繼續執行
     - Rekt.news 無法使用: 將漏洞事件標記為「未知」

已知安全協議 (自動標記 🟢):
  - Aave V2/V3, Uniswap V2/V3, Compound V2/V3
  - Lido, Curve, MakerDAO/Sky

步驟 6: 生成報告

輸出結構化的 Markdown 報告,格式請參考下方的「輸出格式」章節。


輸出格式

1) 摘要

資產組合: 0x...
總價值: $X,XXX USD
鏈: Ethereum, Arbitrum, Base

2) 資產分佈

資產細項:
• 原生代幣: $XXX (XX%)
• 穩定幣: $XXX (XX%)
• DeFi 部位: $XXX (XX%)
• 其他代幣: $XXX (XX%)

3) 前幾大部位

以表格形式顯示所有部位,按價值排序:

協議/錢包 | 部位類型 | 價值 | 佔資產組合百分比
----------------|---------------|-------|------------
錢包資產   | Wallet        | $XXX  | XX%
協議 A      | Lending       | $XXX  | XX%
協議 B      | LP            | $XXX  | XX%

4) 前幾大持倉 (佔資產組合 >2%)

表格格式:

鏈 | 資產 | 類型 | 數量 | 價值 | 佔資產組合百分比
------|-------|------|--------|-------|------------

5) DeFi 暴露

僅針對標記為 🟡 中風險或 🔴 高風險的協議 (跳過 🟢 低風險):

協議名稱 (鏈)
• 部位價值: $XXX (佔資產組合 XX%)
• 部位類型: Lending/Staking/LP/etc.
• 風險: 🟡/🔴
• TVL: $XXX (DefiLlama)
• 審計: 是/否 (審計公司名稱)
• 近期問題: 無 / [描述]

若所有協議皆為低風險,則輸出: 「所有 DeFi 部位皆屬於低風險協議 (🟢)」

6) 風險摘要

高優先級:

  • 列出所有 🔴 高風險部位及建議行動

中優先級:

  • 列出所有 🟡 中風險部位及考量事項

總體評估:

  • 一段總結
  • 風險分數: 低/中/高

7) 資料來源

  • Zerion API: 資產組合資料 (時間戳)
  • DefiLlama: 協議 TVL 與資訊
  • Rekt.news: 安全事件
  • [其他使用的來源]

品質標準

簡潔性:

  • 總報告長度: 200-400 字 (不含表格)
  • 僅專注於可操作的見解
  • 無填充或泛泛而談的陳述

準確性:

  • 所有資料必須附有時間戳
  • 所有數值必須來自真實的 API 呼叫
  • 風險評估必須引用具體證據

實用性:

  • 強調佔資產組合 >5% 的部位
  • 立即標記任何高風險暴露
  • 必要時提供明確的下一步行動

更新頻率

  • 風險資料庫: 每月透過 rekt.news 更新
  • 已知協議: 新的大型協議上線時更新
  • 審計狀態: 每季驗證

最後更新: 2026-02-05

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Analyzes current state and user query to answer BMad questions or recommend the next workflow or agent. Use when user says what should I do next, what do I do now, or asks a question about BMad

majiayu000/claude-skill-registry-data

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry-data

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry-data

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

majiayu000/claude-skill-registry-data

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

majiayu000/claude-skill-registry-data

Speech-to-text transcription and translation via OpenAI Audio API -- models, response formats, timestamps, prompting, streaming, chunking, and diarization

majiayu000/claude-skill-registry-data

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

majiayu000/claude-skill-registry-data

小省导购员数字人带货版即梦视频提示词生成系统,基于四大智能体协同(提示词生成师、质量管控师、知识库运维师、跨环节适配师),按照"主体+运动+场景+(镜头语言+光影+氛围)"公式输出中英文双版提示词,适配5s短视频。确保人物一致性、视觉连贯性、情绪连贯性,支持知识库智能复用和跨工具适配(Suno音乐、AI绘画),为数字人带货视频提供高质量提示词生成服务。

majiayu000/claude-skill-registry-data

Upload and manage files using Google Gemini File API via scripts/. Use for uploading images, audio, video, PDFs, and other files for use with Gemini models. Supports file upload, status checking, and file management. Triggers on "upload file", "file API", "upload image", "upload PDF", "upload video", "file management".

majiayu000/claude-skill-registry-data

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry-data

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry-data

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

majiayu000/claude-skill-registry-data

Conduct domain and industry research. Use when the user says "lets create a research report on [domain or industry]

majiayu000/claude-skill-registry-data

Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".

majiayu000/claude-skill-registry-data

Conduct technical research on technologies and architecture. Use when the user says "create a technical research report on [topic]".

majiayu000/claude-skill-registry-data

Builds, edit or validate Agent Skill through conversational discovery. Use when the user requests to "Create an Agent", "Optimize an Agent" or "Edit an Agent".

相關技能