Web3 Investor
Your AI-powered DeFi research analyst. Not a dashboard — a thinker.
Web3 Investor turns vague investment intent into structured, risk-aware recommendations. It doesn't just fetch APY data — it understands what you're looking for, scores every opportunity across 7 risk dimensions, cross-references smart money flows, scans for contract vulnerabilities, and explains its reasoning in plain English.
The Problem It Solves
DeFi yield farming today looks like this:
- 1. Open DeFiLlama → see 2,500+ pools → overwhelming
- Check audits, TVL, APY trend, IL risk — each on a different site
- Cross-reference with Twitter sentiment and whale wallets
- Try to figure out if the yield is sustainable or just emission bait
- Give up and put money in USDC savings at 4%
Web3 Investor collapses this into one natural-language request:
CODEBLOCK0
🧠 How It Works
The Intelligence Pipeline
CODEBLOCK1
🛠 Three Tools. Deep Intelligence.
investor_discover — Find Opportunities
The entry point. Converts natural language into structured intent, discovers opportunities, and returns ranked recommendations.
What makes it different from a simple DeFiLlama query:
| Feature | DeFiLlama | investor_discover |
|---|
| Input | Chain + sort | Natural language ("stablecoin, conservative") |
| Intent understanding |
None | Keyword + LLM fusion with 95%+ accuracy |
| Risk filtering | Manual | Automatic 7-dimension scoring + threshold |
| Multi-round | N/A | Session-based intent accumulation |
| Clarification | N/A | Asks focused questions when intent is ambiguous |
| Smart money | N/A | Integrated whale flow signals |
| DeFi security | N/A | AI contract scanner per pool |
| Explanation | N/A | "Why this?" reasoning per recommendation |
Multi-round Session Example:
CODEBLOCK2
Request:
CODEBLOCK3
Response highlights:
{
"gate_status": "PASS",
"recommendations": [{
"name": "Aave V3 USDC",
"yield": { "apy": 5.2, "apy_base": 2.8, "apy_reward": 2.4 },
"scale": { "tvl_usd": 1500000000 },
"risk": {
"risk_level": "LOW",
"risk_score": 82,
"risk_factors": { "tvl_score": 95, "audit_score": 90, ... },
"warnings": []
},
"data_quality": { "score": 95, "level": "HIGH", "cross_validated": true },
"incentive": { "score": "medium", "reward_ratio": 0.46 },
"smart_money": { "flow": "inflow", "sentiment_score": 0.72, "confidence": "high" },
"explanation": {
"summary": "Aave V3 USDC: 5.2% APY, TVL $1.5B",
"reasons": { "for": [...], "against": [...] },
"compared_to": { "benchmark": "US bank savings (4.0%)", "outperformance": "1.3x" },
"risks": { "controllable": ["随时可赎回"], "uncontrollable": ["智能合约风险"] }
}
}],
"search_stats": {
"total_candidates": 247,
"total_after_risk_filter": 89,
"final_recommendations": 5,
"filters_applied": ["defillama_fetch:ethereum", "intent_filter:STABLECOIN", "risk_scoring", "dust_filter:50000"]
}
}
investor_analyze — Deep Analysis
LLM-powered 5-step reasoning chain for a single product. Goes beyond numbers to provide understanding.
Analysis depths:
| Depth | What You Get | Use Case |
|---|
| INLINECODE2 | Key metrics + risk score + 1-paragraph summary | Quick check |
| INLINECODE3 |
Full risk breakdown + yield source analysis + sustainability assessment + smart money + historical APY |
Recommended for investment decisions |
|
full | Everything in detailed + peer comparison + protocol profile + governance analysis + LLM narrative | Due diligence |
The LLM analysis covers:
CODEBLOCK5
investor_compare — Side-by-Side Comparison
Compare 2–5 products with LLM-powered interpretation across customizable dimensions.
Default comparison dimensions: APY, risk score, TVL
Extended dimensions: fees, lock period, audit count, IL risk, governance type, smart money sentiment, incentive sustainability
LLM comparison output:
{
"llm_comparison": {
"narrative": "Aave offers superior security with $1.5B TVL and 6 audits, while Compound provides higher raw yield at 6.1% but with smaller TVL...",
"risk_comparison": "Aave's risk score (82) significantly outperforms Compound (68), primarily due to larger TVL and more comprehensive audit coverage",
"recommendation_with_reasoning": {
"for_conservative": "Choose Aave — battle-tested protocol, deep liquidity, multiple top-tier audits",
"for_aggressive": "Consider Compound — 0.9% higher APY, acceptable risk for short-term positions",
"key_tradeoff": "0.9% yield premium vs significantly lower risk score (82 vs 68)"
}
}
}
🏗️ Server-Side Architecture
CODEBLOCK7
🔐 Risk Intelligence
7-Dimension Risk Scoring
Each opportunity is scored 0–100 across seven independent dimensions:
| Dimension | What It Measures | Weight |
|---|
| TVL Score | Total Value Locked — protocol maturity indicator | High |
| Audit Score |
Number and quality of security audits | High |
|
Chain Score | Chain maturity (L1 vs L2 vs new chain) | Medium |
|
Sustainability | Yield source analysis (fees vs emissions) | High |
|
Deposit Token | Safety tier of the deposit asset (USDC > DAI > random) | Medium |
|
Reward Token | Liquidity and safety of reward tokens | Low |
|
Protocol Trust | Governance, longevity, track record | Medium |
Risk Levels:
- - LOW (score ≥ 70): Battle-tested, well-audited, high TVL
- MEDIUM (score 50–69): Established but with some risk factors
- HIGH (score 30–49): Newer or with significant warnings
- VERY_HIGH (score < 30): Experimental or flagged
DeFi Security Scanning
Every pool is scanned by an AI-powered contract security engine:
CODEBLOCK8
Smart Money Sentiment
Real-time whale and fund wallet activity aggregated from Dune Analytics:
CODEBLOCK9
Market Context Awareness
The engine is aware of the current market cycle (bull/bear/sideways), total DeFi TVL, BTC dominance, and US Treasury rates — providing context-aware recommendations that adjust for macro conditions.
🚀 Quick Start
Prerequisites
- - Python 3.8+
- No API keys needed — all intelligence runs server-side
Registration (one-time)
CODEBLOCK10
Usage
CODEBLOCK11
⚠️ Critical Rules
Rule 1: Discovery First
Never give generic investment advice without real-time data.
CODEBLOCK12
Rule 2: Explain Your Reasoning
Every recommendation should include the
explanation object — summary, reasons for/against, benchmark comparison, risk classification.
Rule 3: Risk Is Non-Negotiable
- - APY data may be delayed — always show
data_quality.score and INLINECODE8 - Never recommend VERY_HIGH risk products without explicit user acknowledgment
- Investment decisions are the user's own responsibility — always DYOR
Rule 4: Honest About Limitations
- - If no good options exist for the user's criteria, say so with INLINECODE9
- Show alternatives even if they don't perfectly match — "This is close but has X tradeoff"
🔒 Security
| Layer | Protection |
|---|
| Private Keys | Zero contact — never held, transmitted, or stored |
| Data Sources |
Triple-validated (DefiLlama + Dune + CoinGecko) with cross-source checks |
|
Contract Safety | AI-powered DeFi security scanner on every pool |
|
Risk Scoring | 7 independent dimensions, no single point of failure |
|
Scam Detection | Automated flagging via DeFi Security engine (
isScam check) |
|
Data Quality | Freshness tracking, confidence scores, validation issue logging |
📝 Changelog
v3.8.0 (2026-04-14)
- - Full SKILL.md rewrite — English, feature-focused, comprehensive
- Documented complete server-side intelligence pipeline
- Added 7-dimension risk scoring documentation
- Added DeFi Security scanning documentation
- Added Smart Money sentiment documentation
- Added Market Context awareness documentation
- Added multi-round session intent accumulation flow
- Added honest "no result" explanation behavior
- Added incentive sustainability scoring documentation
- Added data quality cross-validation documentation
v3.7.2 (2026-04-13)
- - Client cleanup: removed deprecated tools (feedback/confirm-intent/get-intent)
🤝 Contributing
Test donations welcome:
- - Network: Base Chain
- Address: INLINECODE11
Maintainer: Web3 Investor Skill Team
Registry: https://clawhub.com/skills/web3-investor
License: MIT
Web3投资者
你的AI驱动DeFi研究分析师。 不是仪表盘——而是一个思考者。
Web3投资者将模糊的投资意图转化为结构化、具有风险意识的建议。它不仅仅获取APY数据——它理解你在寻找什么,对每个机会在7个风险维度上进行评分,交叉参考聪明钱流向,扫描合约漏洞,并用通俗易懂的语言解释其推理过程。
它解决的问题
如今的DeFi收益耕作看起来是这样的:
- 1. 打开DeFiLlama → 看到2500+个池子 → 不知所措
- 检查审计、TVL、APY趋势、无常损失风险——每个都在不同的网站上
- 交叉参考推特情绪和鲸鱼钱包
- 试图弄清楚收益是可持续的还是仅仅是排放诱饵
- 放弃,把钱存入4%收益的USDC储蓄
Web3投资者将这一切简化为一个自然语言请求:
我想要稳定币收益,保守风险,在以太坊上
→ 3秒内给出5个个性化推荐及完整风险分析
🧠 工作原理
智能处理管线
用户意图(自然语言)
│
├─ 1. 意图分类(关键词 + LLM融合)
│ 提取:资产类型、风险等级、链、时间跨度、
│ 仓位规模、流动性需求、隐含约束条件
│
├─ 2. 意图门控(NEEDS_CLARIFICATION 或 PASS)
│ 如果模糊 → 向用户提出一个聚焦的问题
│ 如果清晰 → 使用累积的上下文继续(多轮会话)
│
├─ 3. 发现引擎(DeFiLlama + Dune Analytics + CoinGecko)
│ 获取200+个候选 → 按链、TVL、风险阈值过滤
│ → 去重 → 按风险调整后得分排序
│
├─ 4. 风险评分(7个维度,0-100分)
│ TVL、审计状态、链成熟度、收益可持续性、
│ 存款代币安全性、奖励代币安全性、协议信任度
│ → 综合风险等级:低 / 中 / 高 / 极高
│
├─ 5. DeFi安全扫描
│ AI驱动的合约扫描器 → 诈骗检测 → 关键问题标记
│
├─ 6. 聪明钱情绪(Dune Analytics)
│ 追踪鲸鱼/基金资金流向 → 流入/流出信号
│
├─ 7. 推荐解释
│ 为什么选择这个产品? — 与银行存款对比,
│ 风险分类(可控 vs 不可控),
│ 如果有更好的选择,提供诚实的替代方案
│
└─ 输出:带完整上下文的排序推荐列表
🛠 三个工具。深度智能。
investor_discover — 发现机会
入口点。将自然语言转化为结构化意图,发现机会,并返回排序后的推荐。
它与简单DeFiLlama查询的不同之处:
| 特性 | DeFiLlama | investor_discover |
|---|
| 输入 | 链 + 排序 | 自然语言(稳定币,保守) |
| 意图理解 |
无 | 关键词 + LLM融合,准确率95%+ |
| 风险过滤 | 手动 | 自动7维度评分 + 阈值 |
| 多轮对话 | 无 | 基于会话的意图累积 |
| 澄清 | 无 | 意图模糊时提出聚焦问题 |
| 聪明钱 | 无 | 集成的鲸鱼流向信号 |
| DeFi安全 | 无 | 每个池子的AI合约扫描器 |
| 解释 | 无 | 每个推荐的为什么选这个?推理 |
多轮会话示例:
第1轮:
用户:帮我找好的收益
代理:你的风险承受能力如何?[保守] [中等] [激进]
→ 会话存储部分意图
第2轮:
用户:保守,仅限稳定币
代理:(累积第1轮 + 第2轮意图)
→ 返回以太坊上的保守稳定币推荐
请求:
json
{
agent_id: uuid,
natural_language: 稳定币收益,保守风险,以太坊,
structured_preferences: {
chain: ethereum,
min_apy: 5,
asset_type: stablecoin
},
limit: 5
}
响应亮点:
json
{
gate_status: PASS,
recommendations: [{
name: Aave V3 USDC,
yield: { apy: 5.2, apybase: 2.8, apyreward: 2.4 },
scale: { tvl_usd: 1500000000 },
risk: {
risk_level: LOW,
risk_score: 82,
riskfactors: { tvlscore: 95, audit_score: 90, ... },
warnings: []
},
dataquality: { score: 95, level: HIGH, crossvalidated: true },
incentive: { score: medium, reward_ratio: 0.46 },
smartmoney: { flow: inflow, sentimentscore: 0.72, confidence: high },
explanation: {
summary: Aave V3 USDC:5.2% APY,TVL 15亿美元,
reasons: { for: [...], against: [...] },
compared_to: { benchmark: 美国银行储蓄(4.0%), outperformance: 1.3倍 },
risks: { controllable: [随时可赎回], uncontrollable: [智能合约风险] }
}
}],
search_stats: {
total_candidates: 247,
totalafterrisk_filter: 89,
final_recommendations: 5,
filtersapplied: [defillamafetch:ethereum, intentfilter:STABLECOIN, riskscoring, dust_filter:50000]
}
}
investor_analyze — 深度分析
针对单个产品的LLM驱动的5步推理链。超越数字,提供理解。
分析深度:
| 深度 | 你得到的内容 | 使用场景 |
|---|
| basic | 关键指标 + 风险评分 + 1段摘要 | 快速检查 |
| detailed |
完整风险分解 + 收益来源分析 + 可持续性评估 + 聪明钱 + 历史APY |
推荐用于投资决策 |
| full | detailed中的所有内容 + 同行比较 + 协议概况 + 治理分析 + LLM叙事 | 尽职调查 |
LLM分析涵盖:
步骤1:收益来源分析
→ 这个APY来自交易费(可持续)还是代币排放(不可持续)?
→ APY分解:基础收益与奖励收益比率
步骤2:可持续性评估
→ 历史APY趋势(7天/30天/90天)
→ APY波动性(标准差)
→ 收入覆盖(协议能否负担这些奖励?)
步骤3:风险叙事
→ 全面的风险故事,而不仅仅是一个分数
→ 聪明钱情绪叠加
→ DeFi安全扫描结果(诈骗标记,关键问题)
步骤4:竞争地位
→ 与同一类别中的同行相比如何?
→ 协议概况:治理、寿命、审计历史
步骤5:投资者考量
→ 针对特定投资者画像的可操作指导
→ 关键风险和关键优势
→ 如果你是保守型,考虑X。如果是激进型,考虑Y。
investor_compare — 并排比较
比较2-5个产品,通过LLM驱动的解释,跨可定制维度。
默认比较维度: APY、风险评分、TVL
扩展维度: 费用、锁定期、审计次数、无常损失风险、治理类型、聪明钱情绪、激励可持续性
LLM比较输出:
json
{
llm_comparison: {
narrative: Aave凭借15亿美元TVL和6次审计提供卓越的安全性,而Compound提供更高的原始收益6.1%,但TVL较小...,
risk_comparison: Aave的风险评分(82)显著优于Compound(68),主要原因是更大的TVL和更全面的审计覆盖,
recommendationwithreasoning: {
for_conservative: 选择Aave — 久经考验的协议,深度流动性,多个顶级审计,
for_aggressive: 考虑Compound