npx skills add ...
npx skills add defillama/defillama-skills --skill risk-assessment
Protocol and DeFi risk evaluation covering hack history, oracle dependencies, treasury health, TVL concentration, and yield sustainability. Use when the user asks "is X safe", "how risky is", protocol security, risk analysis, or wants to evaluate risk before investing or depositing funds.
npx skills add defillama/defillama-skills --skill risk-assessment
Evaluate the risk profile of a DeFi protocol by examining its security history, oracle dependencies, treasury, fundamentals, and yield levels.
Check whether the protocol has been exploited before.
Any past hacks are a significant risk signal. Note the date, amount lost, and whether funds were recovered.
Identify which oracle the protocol relies on and how much value it secures.
Filter results for the protocol's oracle. Oracle metrics automatically
filter to tvl_component = 'base' and aggregate with SUM/GROUP BY to
exclude double-counted TVL. A protocol using a small or unproven oracle
has higher risk than one using Chainlink or Pyth.
Assess the protocol's financial reserves.
A healthy treasury provides a safety net for bug bounties, insurance, and continued development.
Check TVL, revenue, and trends to evaluate sustainability.
Key signals: Is TVL growing or declining? Is the protocol generating real revenue?
Examine pool APYs for sustainability red flags.
Evaluate each factor and assign a risk level:
| Signal | Risk Level | Explanation |
|---|---|---|
| Recent hack (< 1 year) | HIGH | Protocol was recently exploited |
| Past hack (> 1 year), no recurrence | MODERATE | Was exploited but has since hardened |
| No hack history | LOW | No known exploits |
| No oracle or small oracle TVS | MODERATE | Oracle risk, potential manipulation |
| Uses Chainlink/Pyth with high TVS | LOW | Battle-tested oracle infrastructure |
| Treasury < $1M | HIGH | No meaningful safety net |
| Treasury > $10M | LOW | Strong financial reserves |
| APY > 100% from rewards only | HIGH | Likely unsustainable, token emissions |
| APY from real yield (fees) | LOW | Sustainable yield source |
| TVL declining > 20% in 30d | MODERATE | Users are leaving |
| Revenue declining with TVL | HIGH | Fundamentals deteriorating |
Present the report with these sections:
get_events for hacks is a positive signal, not missing data.