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.
What this skill does
# Risk Assessment Evaluate the risk profile of a DeFi protocol by examining its security history, oracle dependencies, treasury, fundamentals, and yield levels. ## Workflow ### Step 1 - Resolve the protocol entity ``` defillama:resolve_entity entity_type: "protocol" name: "<user-provided name>" ``` ### Step 2 - Hack history Check whether the protocol has been exploited before. ``` defillama:get_events protocol: "<slug>" event_type: "hacks" ``` Any past hacks are a significant risk signal. Note the date, amount lost, and whether funds were recovered. ### Step 3 - Oracle dependencies Identify which oracle the protocol relies on and how much value it secures. ``` defillama:get_oracle_metrics ``` 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. ### Step 4 - Treasury health Assess the protocol's financial reserves. ``` defillama:get_treasury treasury: "<slug>" ``` A healthy treasury provides a safety net for bug bounties, insurance, and continued development. ### Step 5 - Protocol fundamentals Check TVL, revenue, and trends to evaluate sustainability. ``` defillama:get_protocol_metrics protocol: "<slug>" ``` Key signals: Is TVL growing or declining? Is the protocol generating real revenue? ### Step 6 - Yield analysis Examine pool APYs for sustainability red flags. ``` defillama:get_yield_pools protocol: "<slug>" ``` ## Risk Signals 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 | ## Output Format Present the report with these sections: 1. **Risk Summary** - Overall risk rating (LOW / MODERATE / HIGH) with a one-sentence justification. 2. **Security History** - Hack incidents, amounts, and outcomes. 3. **Oracle Risk** - Which oracle is used, TVS secured, reliability. 4. **Treasury Health** - Total treasury value, composition, runway. 5. **Fundamental Health** - TVL trend, revenue, user activity direction. 6. **Yield Sustainability** - Are yields from real fees or emissions? 7. **Risk Factors** - Bullet list of all identified risk signals with their severity level. ## Tips - No data from `get_events` for hacks is a positive signal, not missing data. - A protocol with high TVL but zero revenue may be subsidizing usage with token emissions - flag this. - Compare treasury value to TVL: treasury < 1% of TVL means limited ability to cover losses. - Multiple past hacks on the same protocol is a stronger negative signal than a single incident.
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.