@lagoon-protocol/lagoon-mcp 0.1.2 → 0.2.0

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 (70) 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/dist/tools/discover-tools.d.ts +44 -0
  44. package/dist/tools/discover-tools.d.ts.map +1 -0
  45. package/dist/tools/discover-tools.js +108 -0
  46. package/dist/tools/discover-tools.js.map +1 -0
  47. package/dist/tools/registry.d.ts.map +1 -1
  48. package/dist/tools/registry.js +12 -2
  49. package/dist/tools/registry.js.map +1 -1
  50. package/dist/utils/validators.d.ts +2 -2
  51. package/dist/utils/validators.d.ts.map +1 -1
  52. package/dist/utils/validators.js +2 -1
  53. package/dist/utils/validators.js.map +1 -1
  54. package/package.json +14 -1
  55. package/skills/README.md +141 -0
  56. package/skills/lagoon-curator-evaluation/SKILL.md +281 -0
  57. package/skills/lagoon-curator-evaluation/scoring-rubric.md +121 -0
  58. package/skills/lagoon-customer-support/SKILL.md +95 -0
  59. package/skills/lagoon-customer-support/response-templates.md +196 -0
  60. package/skills/lagoon-onboarding/SKILL.md +251 -0
  61. package/skills/lagoon-onboarding/risk-interpretation.md +188 -0
  62. package/skills/lagoon-onboarding/tool-sequences.md +217 -0
  63. package/skills/lagoon-portfolio-review/SKILL.md +156 -0
  64. package/skills/lagoon-portfolio-review/rebalancing-criteria.md +85 -0
  65. package/skills/lagoon-portfolio-review/review-framework.md +70 -0
  66. package/skills/lagoon-protocol-health/SKILL.md +171 -0
  67. package/skills/lagoon-protocol-health/kpi-thresholds.md +50 -0
  68. package/skills/lagoon-protocol-health/report-templates.md +149 -0
  69. package/skills/lagoon-risk-expert/SKILL.md +131 -0
  70. package/skills/lagoon-risk-expert/risk-frameworks.md +124 -0
@@ -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