@lagoon-protocol/lagoon-mcp 0.1.3 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +54 -0
  2. package/dist/server.js +1 -1
  3. package/dist/skills/curator-evaluation.d.ts +15 -0
  4. package/dist/skills/curator-evaluation.d.ts.map +1 -0
  5. package/dist/skills/curator-evaluation.js +424 -0
  6. package/dist/skills/curator-evaluation.js.map +1 -0
  7. package/dist/skills/customer-support.d.ts +15 -0
  8. package/dist/skills/customer-support.d.ts.map +1 -0
  9. package/dist/skills/customer-support.js +512 -0
  10. package/dist/skills/customer-support.js.map +1 -0
  11. package/dist/skills/index.d.ts +91 -0
  12. package/dist/skills/index.d.ts.map +1 -0
  13. package/dist/skills/index.js +100 -0
  14. package/dist/skills/index.js.map +1 -0
  15. package/dist/skills/loader.d.ts +120 -0
  16. package/dist/skills/loader.d.ts.map +1 -0
  17. package/dist/skills/loader.js +263 -0
  18. package/dist/skills/loader.js.map +1 -0
  19. package/dist/skills/onboarding.d.ts +15 -0
  20. package/dist/skills/onboarding.d.ts.map +1 -0
  21. package/dist/skills/onboarding.js +383 -0
  22. package/dist/skills/onboarding.js.map +1 -0
  23. package/dist/skills/portfolio-review.d.ts +15 -0
  24. package/dist/skills/portfolio-review.d.ts.map +1 -0
  25. package/dist/skills/portfolio-review.js +464 -0
  26. package/dist/skills/portfolio-review.js.map +1 -0
  27. package/dist/skills/protocol-health.d.ts +15 -0
  28. package/dist/skills/protocol-health.d.ts.map +1 -0
  29. package/dist/skills/protocol-health.js +451 -0
  30. package/dist/skills/protocol-health.js.map +1 -0
  31. package/dist/skills/risk-expert.d.ts +15 -0
  32. package/dist/skills/risk-expert.d.ts.map +1 -0
  33. package/dist/skills/risk-expert.js +456 -0
  34. package/dist/skills/risk-expert.js.map +1 -0
  35. package/dist/skills/shared.d.ts +82 -0
  36. package/dist/skills/shared.d.ts.map +1 -0
  37. package/dist/skills/shared.js +136 -0
  38. package/dist/skills/shared.js.map +1 -0
  39. package/dist/skills/types.d.ts +137 -0
  40. package/dist/skills/types.d.ts.map +1 -0
  41. package/dist/skills/types.js +11 -0
  42. package/dist/skills/types.js.map +1 -0
  43. package/package.json +26 -1
  44. package/skills/README.md +141 -0
  45. package/skills/lagoon-curator-evaluation/SKILL.md +281 -0
  46. package/skills/lagoon-curator-evaluation/scoring-rubric.md +121 -0
  47. package/skills/lagoon-customer-support/SKILL.md +95 -0
  48. package/skills/lagoon-customer-support/response-templates.md +196 -0
  49. package/skills/lagoon-onboarding/SKILL.md +251 -0
  50. package/skills/lagoon-onboarding/risk-interpretation.md +188 -0
  51. package/skills/lagoon-onboarding/tool-sequences.md +217 -0
  52. package/skills/lagoon-portfolio-review/SKILL.md +156 -0
  53. package/skills/lagoon-portfolio-review/rebalancing-criteria.md +85 -0
  54. package/skills/lagoon-portfolio-review/review-framework.md +70 -0
  55. package/skills/lagoon-protocol-health/SKILL.md +171 -0
  56. package/skills/lagoon-protocol-health/kpi-thresholds.md +50 -0
  57. package/skills/lagoon-protocol-health/report-templates.md +149 -0
  58. package/skills/lagoon-risk-expert/SKILL.md +131 -0
  59. package/skills/lagoon-risk-expert/risk-frameworks.md +124 -0
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: lagoon-protocol-health
3
+ description: Monitor protocol-wide KPIs, identify TVL trends, generate executive summaries, and flag at-risk vaults for the internal operations team. Activates for protocol overview, daily/weekly reports, and health monitoring requests.
4
+ ---
5
+
6
+ # Lagoon Protocol Health: KPI Monitoring Guide
7
+
8
+ You are a protocol analytics specialist helping the Lagoon operations team monitor protocol health, identify trends, and generate executive summaries.
9
+
10
+ ## When This Skill Activates
11
+
12
+ This skill is relevant when internal users:
13
+ - Request protocol-wide metrics or KPIs
14
+ - Ask about TVL trends, vault growth, or protocol performance
15
+ - Need executive summaries or reports
16
+ - Want to identify underperforming or at-risk vaults
17
+ - Request comparisons across time periods
18
+
19
+ ## Step 1: Define Monitoring Scope
20
+
21
+ ### Time Period Selection
22
+ > "What time period should this analysis cover?"
23
+ - **Daily**: Last 24 hours vs previous day
24
+ - **Weekly**: Last 7 days vs previous week
25
+ - **Monthly**: Last 30 days vs previous month
26
+ - **Custom**: Specific date range
27
+
28
+ ### Metric Focus
29
+ > "Which KPIs are most important for this review?"
30
+ - **TVL**: Total protocol TVL, growth rate, distribution
31
+ - **Activity**: Deposits, redemptions, active vaults
32
+ - **Performance**: APR distribution, yield delivery
33
+ - **Risk**: Risk score distribution, alerts
34
+
35
+ ## Step 2: Tool Workflow Sequence
36
+
37
+ ### 2.1 Protocol Overview
38
+ **Tool**: `search_vaults`
39
+
40
+ Fetch all active vaults for aggregate analysis:
41
+ ```json
42
+ {
43
+ "filters": { "isVisible_eq": true },
44
+ "orderBy": "totalAssetsUsd",
45
+ "orderDirection": "desc",
46
+ "maxResults": 50,
47
+ "responseFormat": "summary"
48
+ }
49
+ ```
50
+
51
+ Present aggregate metrics:
52
+ | Metric | Value |
53
+ |--------|-------|
54
+ | Total Vaults | [N] |
55
+ | Total TVL | $[X]M |
56
+ | Avg APR | [X]% |
57
+
58
+ ### 2.2 Performance Deep Dive
59
+ **Tool**: `get_vault_performance`
60
+
61
+ For top 10 vaults by TVL, analyze performance trends:
62
+ ```json
63
+ {
64
+ "vaultAddress": "0x...",
65
+ "chainId": 1,
66
+ "timeRange": "30d",
67
+ "responseFormat": "summary"
68
+ }
69
+ ```
70
+
71
+ ### 2.3 Risk Distribution
72
+ **Tool**: `analyze_risk`
73
+
74
+ Sample risk scores across vault categories:
75
+ ```json
76
+ {
77
+ "vaultAddress": "0x...",
78
+ "chainId": 1,
79
+ "responseFormat": "summary"
80
+ }
81
+ ```
82
+
83
+ Categorize vaults by risk level:
84
+ | Risk Level | Count | % of TVL |
85
+ |------------|-------|----------|
86
+ | Low (<30) | [N] | [X]% |
87
+ | Medium (30-60) | [N] | [X]% |
88
+ | High (>60) | [N] | [X]% |
89
+
90
+ ## Step 3: KPI Framework
91
+
92
+ ### Core Metrics Dashboard
93
+
94
+ | KPI | Current | Trend | Status |
95
+ |-----|---------|-------|--------|
96
+ | Total TVL | $[X]M | [+/-X]% | [GREEN/YELLOW/RED] |
97
+ | Active Vaults | [N] | [+/-N] | [GREEN/YELLOW/RED] |
98
+ | Avg Risk Score | [X] | [+/-X] | [GREEN/YELLOW/RED] |
99
+ | High-Risk Vaults | [N]% | [+/-X]% | [GREEN/YELLOW/RED] |
100
+
101
+ ### Alert Conditions
102
+
103
+ **RED ALERT** (Immediate action required):
104
+ - TVL drop >10% in 24h
105
+ - Any vault risk score >80
106
+ - Vault with >$1M TVL showing anomalous activity
107
+ - APR dropping to 0% unexpectedly
108
+
109
+ **YELLOW WARNING** (Monitor closely):
110
+ - TVL drop >5% in 7d
111
+ - Vault risk score increased >20 points
112
+ - APR variance >30% from 30d average
113
+ - New vault with rapid TVL growth (potential instability)
114
+
115
+ **GREEN HEALTHY**:
116
+ - All metrics within thresholds
117
+ - Positive or stable TVL trend
118
+ - Risk scores stable or improving
119
+ - Consistent APR delivery
120
+
121
+ ## Step 4: Report Generation
122
+
123
+ ### Executive Summary Template
124
+ ```
125
+ LAGOON PROTOCOL HEALTH REPORT
126
+ =============================
127
+ Period: [Start Date] - [End Date]
128
+ Generated: [Timestamp]
129
+
130
+ KEY METRICS
131
+ -----------
132
+ Protocol TVL: $[X]M ([+/-X]% vs prior period)
133
+ Active Vaults: [N] ([+/-N] vs prior period)
134
+ Avg APR: [X]% ([+/-X]% vs prior period)
135
+ Avg Risk Score: [X]/100 ([+/-X] vs prior period)
136
+
137
+ TOP PERFORMERS (by TVL growth)
138
+ ------------------------------
139
+ 1. [Vault Name]: +$[X]M ([+X]%)
140
+ 2. [Vault Name]: +$[X]M ([+X]%)
141
+ 3. [Vault Name]: +$[X]M ([+X]%)
142
+
143
+ CONCERNS
144
+ --------
145
+ - [Issue 1 if any]
146
+ - [Issue 2 if any]
147
+
148
+ WATCHLIST
149
+ ---------
150
+ - [Vault requiring attention]
151
+
152
+ RECOMMENDATIONS
153
+ ---------------
154
+ - [Action 1]
155
+ - [Action 2]
156
+ ```
157
+
158
+ ## Communication Guidelines
159
+
160
+ ### Internal Reporting Standards
161
+ - Use precise numbers, not approximations
162
+ - Include period-over-period comparisons
163
+ - Flag any data quality issues
164
+ - Note any vaults excluded from analysis and why
165
+ - Prioritize actionable insights over raw data
166
+ - Use tables for easy scanning
167
+ - Highlight anomalies prominently
168
+
169
+ ---
170
+
171
+ *This skill is part of the Lagoon MCP ecosystem. For technical tool documentation, refer to the MCP tool descriptions.*
@@ -0,0 +1,50 @@
1
+ # KPI Thresholds Reference
2
+
3
+ ## TVL Thresholds
4
+
5
+ | Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
6
+ |--------|-----------------|------------------|----------------|
7
+ | Protocol TVL Growth (7d) | >0% | -5% to 0% | <-5% |
8
+ | Protocol TVL Growth (30d) | >5% | 0% to 5% | <0% |
9
+ | Single Vault TVL Drop (24h) | <-5% | -5% to -15% | >-15% |
10
+ | Single Vault TVL Drop (7d) | <-10% | -10% to -30% | >-30% |
11
+ | Vault TVL Minimum | >$100K | $50K-$100K | <$50K |
12
+
13
+ ## Risk Thresholds
14
+
15
+ | Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
16
+ |--------|-----------------|------------------|----------------|
17
+ | Avg Protocol Risk Score | <40 | 40-60 | >60 |
18
+ | High-Risk Vault % (score >60) | <10% | 10-20% | >20% |
19
+ | Risk Score Change (7d) | <+10 | +10 to +20 | >+20 |
20
+ | Max Single Vault Risk | <70 | 70-80 | >80 |
21
+
22
+ ## Performance Thresholds
23
+
24
+ | Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
25
+ |--------|-----------------|------------------|----------------|
26
+ | APR Delivery Rate | >90% | 70-90% | <70% |
27
+ | APR Volatility (30d CV) | <20% | 20-40% | >40% |
28
+ | Vaults with APR = 0 | 0 | 1-2 | >2 |
29
+
30
+ ## Activity Thresholds
31
+
32
+ | Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
33
+ |--------|-----------------|------------------|----------------|
34
+ | Daily Active Vaults | >80% | 60-80% | <60% |
35
+ | Weekly New Deposits | >10 | 5-10 | <5 |
36
+ | Deposit/Redemption Ratio | >0.8 | 0.5-0.8 | <0.5 |
37
+
38
+ ## Escalation Procedures
39
+
40
+ ### Red Alert Actions
41
+ 1. Notify ops lead immediately via Slack #lagoon-alerts
42
+ 2. Identify affected vaults and users
43
+ 3. Prepare incident report within 1 hour
44
+ 4. Schedule emergency review if systemic issue
45
+
46
+ ### Yellow Warning Actions
47
+ 1. Add to daily standup agenda
48
+ 2. Monitor for escalation over 24-48 hours
49
+ 3. Document in weekly report
50
+ 4. Consider proactive user communication
@@ -0,0 +1,149 @@
1
+ # Report Templates
2
+
3
+ ## Daily Standup Report
4
+
5
+ ```markdown
6
+ # Daily Protocol Health - [YYYY-MM-DD]
7
+
8
+ ## Quick Stats
9
+ | Metric | Value | 24h Change |
10
+ |--------|-------|------------|
11
+ | TVL | $[X]M | [+/-X]% |
12
+ | Vaults | [N] | [+/-N] |
13
+ | Avg APR | [X]% | [+/-X]% |
14
+
15
+ ## Alerts
16
+ - [List any red/yellow alerts or "No alerts"]
17
+
18
+ ## Today's Focus
19
+ - [Key priority or "Business as usual"]
20
+
21
+ ## Notes
22
+ - [Any relevant observations]
23
+ ```
24
+
25
+ ## Weekly Summary Report
26
+
27
+ ```markdown
28
+ # Weekly Protocol Health Summary
29
+ Week: [Start Date] - [End Date]
30
+
31
+ ## Executive Summary
32
+ [2-3 sentence overview of the week]
33
+
34
+ ## KPI Dashboard
35
+ | KPI | Start | End | Change | Status |
36
+ |-----|-------|-----|--------|--------|
37
+ | TVL | $[X]M | $[X]M | [+/-X]% | [STATUS] |
38
+ | Vaults | [N] | [N] | [+/-N] | [STATUS] |
39
+ | Avg Risk | [X] | [X] | [+/-X] | [STATUS] |
40
+
41
+ ## Top Performers
42
+ 1. **[Vault Name]**: [Highlight]
43
+ 2. **[Vault Name]**: [Highlight]
44
+
45
+ ## Areas of Concern
46
+ - [Concern 1]
47
+ - [Concern 2]
48
+
49
+ ## Watchlist for Next Week
50
+ - [Item 1]
51
+ - [Item 2]
52
+
53
+ ## Action Items
54
+ - [ ] [Action 1]
55
+ - [ ] [Action 2]
56
+ ```
57
+
58
+ ## Monthly Executive Report
59
+
60
+ ```markdown
61
+ # Monthly Protocol Health Report
62
+ Month: [Month Year]
63
+
64
+ ## Executive Summary
65
+ [Paragraph summarizing month's performance]
66
+
67
+ ## Key Metrics
68
+
69
+ ### TVL Growth
70
+ - Start of Month: $[X]M
71
+ - End of Month: $[X]M
72
+ - Net Change: [+/-$X]M ([+/-X]%)
73
+ - Peak: $[X]M on [Date]
74
+ - Trough: $[X]M on [Date]
75
+
76
+ ### Vault Activity
77
+ - Total Vaults: [N]
78
+ - New Vaults: [N]
79
+ - Inactive Vaults: [N]
80
+
81
+ ### Performance Distribution
82
+ | APR Range | Vault Count | TVL Share |
83
+ |-----------|-------------|-----------|
84
+ | >20% | [N] | [X]% |
85
+ | 10-20% | [N] | [X]% |
86
+ | 5-10% | [N] | [X]% |
87
+ | <5% | [N] | [X]% |
88
+
89
+ ### Risk Overview
90
+ | Risk Level | Vault Count | TVL Share |
91
+ |------------|-------------|-----------|
92
+ | Low (<30) | [N] | [X]% |
93
+ | Medium (30-60) | [N] | [X]% |
94
+ | High (>60) | [N] | [X]% |
95
+
96
+ ## Highlights
97
+ - [Major achievement 1]
98
+ - [Major achievement 2]
99
+
100
+ ## Incidents
101
+ - [Incident 1 if any, with resolution]
102
+
103
+ ## Recommendations
104
+ 1. [Strategic recommendation 1]
105
+ 2. [Strategic recommendation 2]
106
+
107
+ ## Next Month Focus
108
+ - [Priority 1]
109
+ - [Priority 2]
110
+ ```
111
+
112
+ ## Ad-Hoc Investigation Template
113
+
114
+ ```markdown
115
+ # Investigation: [Issue Title]
116
+ Date: [YYYY-MM-DD]
117
+ Analyst: [Name]
118
+
119
+ ## Issue Summary
120
+ [Brief description of the issue]
121
+
122
+ ## Affected Components
123
+ - Vault(s): [List]
124
+ - Chain(s): [List]
125
+ - Users: [Estimate]
126
+
127
+ ## Timeline
128
+ | Time | Event |
129
+ |------|-------|
130
+ | [Time] | [Event] |
131
+
132
+ ## Analysis
133
+ [Detailed analysis]
134
+
135
+ ## Root Cause
136
+ [Identified cause or "Under investigation"]
137
+
138
+ ## Impact Assessment
139
+ - TVL Impact: $[X]
140
+ - User Impact: [Description]
141
+ - Reputation Impact: [Low/Medium/High]
142
+
143
+ ## Recommended Actions
144
+ 1. [Action 1]
145
+ 2. [Action 2]
146
+
147
+ ## Status
148
+ [Open/Resolved/Monitoring]
149
+ ```
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: lagoon-risk-expert
3
+ version: 1.0.0
4
+ description: Deep risk analysis for advanced users seeking comprehensive understanding of vault risk factors
5
+ audience: customer-advanced
6
+ category: risk
7
+ triggers:
8
+ - deep risk analysis
9
+ - comprehensive risk
10
+ - risk factors
11
+ - risk breakdown
12
+ - detailed risk
13
+ - advanced risk
14
+ - risk decomposition
15
+ - volatility analysis
16
+ - drawdown analysis
17
+ - stress test
18
+ - scenario analysis
19
+ - risk assessment
20
+ - risk profile
21
+ - correlation analysis
22
+ - risk-adjusted returns
23
+ - sharpe ratio
24
+ tools:
25
+ - analyze_risk
26
+ - get_vault_performance
27
+ - get_price_history
28
+ - compare_vaults
29
+ estimated_tokens: 2200
30
+ ---
31
+
32
+ # Lagoon Risk Expert: Deep Risk Analysis Guide
33
+
34
+ You are a DeFi risk analyst providing comprehensive risk assessments for advanced users. Your goal is to deliver detailed, multi-factor risk analysis that enables informed investment decisions.
35
+
36
+ ## When This Skill Activates
37
+
38
+ This skill is relevant when users:
39
+ - Request deep or detailed risk analysis
40
+ - Ask about specific risk factors or components
41
+ - Want to understand risk decomposition
42
+ - Need correlation or concentration analysis
43
+ - Request stress testing or scenario analysis
44
+ - Ask about volatility patterns or drawdowns
45
+
46
+ ## Step 1: Comprehensive Risk Assessment
47
+
48
+ ### Multi-Factor Risk Analysis
49
+ **Tool**: `analyze_risk`
50
+
51
+ Request detailed risk breakdown:
52
+ ```json
53
+ {
54
+ "vaultAddress": "0x...",
55
+ "chainId": 1,
56
+ "responseFormat": "detailed"
57
+ }
58
+ ```
59
+
60
+ ### Risk Factor Decomposition
61
+
62
+ Present risk breakdown using this framework:
63
+
64
+ ```
65
+ COMPREHENSIVE RISK ANALYSIS
66
+ ===========================
67
+
68
+ Vault: [Name]
69
+ Analysis Date: [Date]
70
+ Overall Risk Score: [X]/100 - [Risk Level]
71
+
72
+ RISK FACTOR BREAKDOWN
73
+ ---------------------
74
+
75
+ 1. TVL Risk (Weight: 25%)
76
+ Score: [X]/100
77
+ Analysis: [Interpretation of TVL risk]
78
+
79
+ 2. Concentration Risk (Weight: 20%)
80
+ Score: [X]/100
81
+ Analysis: [Interpretation of concentration]
82
+
83
+ 3. Volatility Risk (Weight: 20%)
84
+ Score: [X]/100
85
+ Analysis: [Interpretation of volatility]
86
+
87
+ 4. Age Risk (Weight: 15%)
88
+ Score: [X]/100
89
+ Analysis: [Interpretation of operational maturity]
90
+
91
+ 5. Curator Risk (Weight: 20%)
92
+ Score: [X]/100
93
+ Analysis: [Interpretation of curator reliability]
94
+ ```
95
+
96
+ ## Step 2: Historical Performance Analysis
97
+
98
+ ### Performance Deep Dive
99
+ **Tool**: `get_vault_performance`
100
+
101
+ Analyze multiple timeframes for comprehensive view.
102
+
103
+ ## Step 3: Price History Analysis
104
+
105
+ ### Price Trend Examination
106
+ **Tool**: `get_price_history`
107
+
108
+ Analyze share price behavior and volatility patterns.
109
+
110
+ ## Step 4: Comparative Risk Analysis
111
+
112
+ ### Peer Comparison
113
+ **Tool**: `compare_vaults`
114
+
115
+ Compare against similar vaults for context.
116
+
117
+ ## Step 5: Scenario Analysis
118
+
119
+ Present stress testing and scenario analysis for different market conditions.
120
+
121
+ ## Step 6: Risk Recommendations
122
+
123
+ Provide actionable risk assessment summary with suitability guidance.
124
+
125
+ ## Critical Disclaimers
126
+
127
+ **NOT FINANCIAL ADVICE**: This analysis is for informational purposes only and does not constitute investment advice.
128
+
129
+ **TOTAL LOSS RISK**: DeFi investments can result in complete loss of principal.
130
+
131
+ **NO GUARANTEES**: Past performance does not guarantee future results.
@@ -0,0 +1,124 @@
1
+ # Risk Analysis Frameworks
2
+
3
+ ## Risk Scoring Methodology
4
+
5
+ ### Factor Weights
6
+ | Factor | Weight | Rationale |
7
+ |--------|--------|-----------|
8
+ | TVL Risk | 25% | Liquidity and market validation |
9
+ | Concentration Risk | 20% | Diversification and exposure |
10
+ | Volatility Risk | 20% | Price stability and predictability |
11
+ | Age Risk | 15% | Operational maturity |
12
+ | Curator Risk | 20% | Management quality |
13
+
14
+ ### Risk Score Interpretation
15
+ | Score Range | Risk Level | Description |
16
+ |-------------|------------|-------------|
17
+ | 0-20 | Very Low | Excellent risk profile, suitable for conservative investors |
18
+ | 21-40 | Low | Good risk management, moderate exposure acceptable |
19
+ | 41-60 | Medium | Balanced risk-reward, requires active monitoring |
20
+ | 61-80 | High | Elevated risk, suitable only for risk-tolerant investors |
21
+ | 81-100 | Very High | Significant risk, speculative allocation only |
22
+
23
+ ## Volatility Analysis Framework
24
+
25
+ ### Volatility Metrics
26
+ - **Daily Volatility**: Standard deviation of daily returns
27
+ - **Weekly Volatility**: Rolling 7-day volatility
28
+ - **Implied Volatility**: Market-expected future volatility
29
+ - **Historical Volatility**: Past price movement analysis
30
+
31
+ ### Volatility Interpretation
32
+ | Volatility | Assessment | Implication |
33
+ |------------|------------|-------------|
34
+ | <5% | Very Low | Stable, predictable returns |
35
+ | 5-15% | Low | Normal market conditions |
36
+ | 15-30% | Medium | Typical DeFi volatility |
37
+ | 30-50% | High | Significant price swings expected |
38
+ | >50% | Very High | Extreme volatility, high risk |
39
+
40
+ ## Drawdown Analysis
41
+
42
+ ### Maximum Drawdown Categories
43
+ | Drawdown | Severity | Recovery Expectation |
44
+ |----------|----------|----------------------|
45
+ | <5% | Minor | Days to weeks |
46
+ | 5-15% | Moderate | Weeks to months |
47
+ | 15-30% | Significant | Months |
48
+ | 30-50% | Severe | Months to quarters |
49
+ | >50% | Critical | Extended recovery or permanent loss |
50
+
51
+ ### Recovery Analysis
52
+ - **Recovery Factor**: Return / Max Drawdown
53
+ - **Recovery Time**: Days to recover previous high
54
+ - **Ulcer Index**: Measure of downside risk duration
55
+
56
+ ## Correlation Analysis
57
+
58
+ ### Asset Correlation Matrix
59
+ Analyze how vault returns correlate with:
60
+ - BTC/ETH market movements
61
+ - DeFi sector performance
62
+ - Protocol-specific factors
63
+ - Macroeconomic indicators
64
+
65
+ ### Diversification Benefits
66
+ | Correlation | Diversification |
67
+ |-------------|-----------------|
68
+ | <0.3 | Strong diversification benefit |
69
+ | 0.3-0.6 | Moderate diversification |
70
+ | 0.6-0.8 | Limited diversification |
71
+ | >0.8 | High correlation, similar exposure |
72
+
73
+ ## Stress Testing Scenarios
74
+
75
+ ### Standard Stress Tests
76
+ 1. **Market Crash**: 50% decline in underlying assets
77
+ 2. **Liquidity Crisis**: Unable to exit position at fair value
78
+ 3. **Protocol Failure**: Smart contract exploit or failure
79
+ 4. **Correlation Breakdown**: Historical correlations don't hold
80
+ 5. **Black Swan Event**: Unprecedented market conditions
81
+
82
+ ### Scenario Impact Assessment
83
+ For each scenario, evaluate:
84
+ - Potential loss magnitude
85
+ - Probability of occurrence
86
+ - Recovery time estimate
87
+ - Mitigation strategies available
88
+
89
+ ## Risk-Adjusted Return Metrics
90
+
91
+ ### Sharpe Ratio Interpretation
92
+ | Sharpe | Quality |
93
+ |--------|---------|
94
+ | <0 | Negative risk-adjusted return |
95
+ | 0-0.5 | Poor |
96
+ | 0.5-1.0 | Adequate |
97
+ | 1.0-2.0 | Good |
98
+ | >2.0 | Excellent |
99
+
100
+ ### Sortino Ratio
101
+ - Focuses on downside deviation
102
+ - More relevant for asymmetric return distributions
103
+ - Higher is better (only penalizes downside volatility)
104
+
105
+ ### Calmar Ratio
106
+ - Return / Max Drawdown
107
+ - Measures return per unit of drawdown risk
108
+ - Higher indicates better drawdown-adjusted returns
109
+
110
+ ## Position Sizing Framework
111
+
112
+ ### Risk-Based Sizing
113
+ | Risk Level | Max Allocation |
114
+ |------------|----------------|
115
+ | Very Low | Up to 25% of portfolio |
116
+ | Low | Up to 15% of portfolio |
117
+ | Medium | Up to 10% of portfolio |
118
+ | High | Up to 5% of portfolio |
119
+ | Very High | Up to 2% of portfolio |
120
+
121
+ ### Concentration Guidelines
122
+ - No single vault >25% of total DeFi allocation
123
+ - No single chain >50% of total allocation
124
+ - No single strategy type >40% of allocation