Communitygithub.com

majiayu000/claude-skill-registry-data

分析EVM钱包资产分布,识别高风险协议敞口。

claude-skill-registry-data 是什么?

该技能是一款专为EVM钱包设计的资产分布分析与风险评估工具,适用于Claude Code、Cursor、Codex等AI代理平台。其核心功能包括:通过Zerion API获取钱包内所有资产及DeFi头寸数据,自动按类型(原生代币、稳定币、DeFi头寸、其他代币)分类并计算分布百分比;针对DeFi协议,结合DefiLlama的TVL、审计信息与rekt.news的安全事件数据,基于多项因子(如审计缺失、近期漏洞、TVL剧烈波动、协议年龄等)计算风险评分,给出低、中、高三级风险标签;最终生成一份结构化的Markdown报告,包含资产概览、分布图表、持仓详情、协议风险管理建议及数据来源。该技能强调数据准确性和可操作性,特别适合需要快速评估链上资产安全性的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. 检查地址格式:0x + 40 位十六进制字符
2. 若格式无效:退出并提示错误信息

第二步:获取投资组合数据

# 执行 Zerion 投资组合脚本
python3 skills/pubfi-wallet-portfolio-analysis/zerion-portfolio.py <address>

处理边界情况:

  • 空钱包 → 报告“钱包为空”
  • API 请求失败 → 退出并报错,无法继续
  • 零值头寸 → 跳过

第三步:对资产进行分类

按类型分组:
  原生代币:ETH、MATIC、BNB 等
  稳定币:USDC、USDT、DAI、USDS
  DeFi 头寸:具有 protocol 属性且 position_type != 'wallet'
  其他代币:其余所有

按类别追踪总价值,计算分布百分比

第四步:识别 DeFi 协议

对于每个 DeFi 头寸:
  1. 从 attributes.protocol 中提取协议名称
  2. 识别头寸类型(借贷/质押/流动性提供等)
  3. 记录头寸价值及其占组合的百分比
  4. 为风险评估创建唯一协议列表

第五步:风险评估(仅限 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

第六步:生成报告

按照下方“输出格式”部分输出结构化的 Markdown 报告。


输出格式

1)摘要

钱包地址:0x...
总价值:$X,XXX USD
支持的链:Ethereum、Arbitrum、Base

2)资产分布

资产构成:
• 原生代币:$XXX(XX%)
• 稳定币:$XXX(XX%)
• DeFi 头寸:$XXX(XX%)
• 其他代币:$XXX(XX%)

3)主要头寸

按价值排序的所有头寸表格:

协议/钱包 | 头寸类型 | 价值 | 占组合比例
----------------|---------------|-------|------------
钱包资产   | 钱包        | $XXX  | XX%
协议 A      | 借贷       | $XXX  | XX%
协议 B      | 流动性提供(LP) | $XXX  | XX%

4)主要持仓(占组合比例 >2%)

表格格式:

链 | 资产 | 类型 | 数量 | 价值 | 占组合比例
------|-------|------|--------|-------|------------

5)DeFi 敞口

仅显示 🟡 中等风险或 🔴 高风险的协议(跳过 🟢 低风险):

协议名称(链)
• 头寸价值:$XXX(占组合 XX%)
• 头寸类型:借贷/质押/流动性提供(LP)等
• 风险等级:🟡/🔴
• 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".

相关技能