@lagoon-protocol/lagoon-mcp 0.1.3 → 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.
- package/README.md +54 -0
- package/dist/server.js +1 -1
- package/dist/skills/curator-evaluation.d.ts +15 -0
- package/dist/skills/curator-evaluation.d.ts.map +1 -0
- package/dist/skills/curator-evaluation.js +424 -0
- package/dist/skills/curator-evaluation.js.map +1 -0
- package/dist/skills/customer-support.d.ts +15 -0
- package/dist/skills/customer-support.d.ts.map +1 -0
- package/dist/skills/customer-support.js +512 -0
- package/dist/skills/customer-support.js.map +1 -0
- package/dist/skills/index.d.ts +91 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +100 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +120 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +263 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/onboarding.d.ts +15 -0
- package/dist/skills/onboarding.d.ts.map +1 -0
- package/dist/skills/onboarding.js +383 -0
- package/dist/skills/onboarding.js.map +1 -0
- package/dist/skills/portfolio-review.d.ts +15 -0
- package/dist/skills/portfolio-review.d.ts.map +1 -0
- package/dist/skills/portfolio-review.js +464 -0
- package/dist/skills/portfolio-review.js.map +1 -0
- package/dist/skills/protocol-health.d.ts +15 -0
- package/dist/skills/protocol-health.d.ts.map +1 -0
- package/dist/skills/protocol-health.js +451 -0
- package/dist/skills/protocol-health.js.map +1 -0
- package/dist/skills/risk-expert.d.ts +15 -0
- package/dist/skills/risk-expert.d.ts.map +1 -0
- package/dist/skills/risk-expert.js +456 -0
- package/dist/skills/risk-expert.js.map +1 -0
- package/dist/skills/shared.d.ts +82 -0
- package/dist/skills/shared.d.ts.map +1 -0
- package/dist/skills/shared.js +136 -0
- package/dist/skills/shared.js.map +1 -0
- package/dist/skills/types.d.ts +137 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +11 -0
- package/dist/skills/types.js.map +1 -0
- package/package.json +14 -1
- package/skills/README.md +141 -0
- package/skills/lagoon-curator-evaluation/SKILL.md +281 -0
- package/skills/lagoon-curator-evaluation/scoring-rubric.md +121 -0
- package/skills/lagoon-customer-support/SKILL.md +95 -0
- package/skills/lagoon-customer-support/response-templates.md +196 -0
- package/skills/lagoon-onboarding/SKILL.md +251 -0
- package/skills/lagoon-onboarding/risk-interpretation.md +188 -0
- package/skills/lagoon-onboarding/tool-sequences.md +217 -0
- package/skills/lagoon-portfolio-review/SKILL.md +156 -0
- package/skills/lagoon-portfolio-review/rebalancing-criteria.md +85 -0
- package/skills/lagoon-portfolio-review/review-framework.md +70 -0
- package/skills/lagoon-protocol-health/SKILL.md +171 -0
- package/skills/lagoon-protocol-health/kpi-thresholds.md +50 -0
- package/skills/lagoon-protocol-health/report-templates.md +149 -0
- package/skills/lagoon-risk-expert/SKILL.md +131 -0
- package/skills/lagoon-risk-expert/risk-frameworks.md +124 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Risk Interpretation Guide for Beginners
|
|
2
|
+
|
|
3
|
+
How to explain risk concepts to first-time DeFi users.
|
|
4
|
+
|
|
5
|
+
## Risk Score Explained Simply
|
|
6
|
+
|
|
7
|
+
The overall risk score (0-100) is a composite measure of five factors. Lower is safer.
|
|
8
|
+
|
|
9
|
+
### Visual Risk Scale
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
0 20 40 60 80 100
|
|
13
|
+
|-----|-----|-----|-----|-----|
|
|
14
|
+
Very Low Med High Very
|
|
15
|
+
Low High
|
|
16
|
+
|
|
17
|
+
Conservative users: Stay under 40
|
|
18
|
+
Moderate users: 30-60 acceptable
|
|
19
|
+
Aggressive users: Up to 80 with awareness
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Factor-by-Factor Explanations
|
|
23
|
+
|
|
24
|
+
### TVL Risk (Total Value Locked)
|
|
25
|
+
|
|
26
|
+
**What it means**: How much money is deposited in the vault.
|
|
27
|
+
|
|
28
|
+
**Why it matters**:
|
|
29
|
+
- Higher TVL = more people trust this vault
|
|
30
|
+
- Higher TVL = easier to withdraw without impact
|
|
31
|
+
- Very low TVL = potential liquidity issues
|
|
32
|
+
|
|
33
|
+
**User-friendly explanation**:
|
|
34
|
+
> "Think of TVL like a swimming pool. A bigger pool (higher TVL) means more room for swimmers and easier to get in and out. A small pool can get crowded quickly."
|
|
35
|
+
|
|
36
|
+
**Thresholds for beginners**:
|
|
37
|
+
| TVL | Risk Level | Recommendation |
|
|
38
|
+
|-----|------------|----------------|
|
|
39
|
+
| >$10M | Very Low | Excellent liquidity |
|
|
40
|
+
| $5M-$10M | Low | Good for most users |
|
|
41
|
+
| $1M-$5M | Medium | Acceptable with awareness |
|
|
42
|
+
| $500K-$1M | Higher | Caution advised |
|
|
43
|
+
| <$500K | High | Not recommended for beginners |
|
|
44
|
+
|
|
45
|
+
### Concentration Risk
|
|
46
|
+
|
|
47
|
+
**What it means**: Whether a few large depositors dominate the vault.
|
|
48
|
+
|
|
49
|
+
**Why it matters**:
|
|
50
|
+
- High concentration = if one whale exits, it affects everyone
|
|
51
|
+
- Low concentration = more distributed, more stable
|
|
52
|
+
|
|
53
|
+
**User-friendly explanation**:
|
|
54
|
+
> "Imagine a bus. If one person takes up half the seats, when they leave, the bus feels much emptier. We prefer vaults where no single person dominates."
|
|
55
|
+
|
|
56
|
+
**Warning signs**:
|
|
57
|
+
- Top 5 depositors hold >50% of TVL
|
|
58
|
+
- Any single depositor >20% of TVL
|
|
59
|
+
|
|
60
|
+
### Volatility Risk
|
|
61
|
+
|
|
62
|
+
**What it means**: How much the vault's returns fluctuate.
|
|
63
|
+
|
|
64
|
+
**Why it matters**:
|
|
65
|
+
- High volatility = unpredictable returns
|
|
66
|
+
- Low volatility = more consistent, easier to plan
|
|
67
|
+
|
|
68
|
+
**User-friendly explanation**:
|
|
69
|
+
> "Volatility is like weather predictability. Some places have consistent weather (low volatility), others have wild swings (high volatility). For beginners, consistent weather is easier to plan around."
|
|
70
|
+
|
|
71
|
+
**Interpretation**:
|
|
72
|
+
| APR Variation | Risk Level | Suitable For |
|
|
73
|
+
|---------------|------------|--------------|
|
|
74
|
+
| <5% range | Low | Conservatives |
|
|
75
|
+
| 5-15% range | Medium | Most users |
|
|
76
|
+
| >15% range | High | Risk-tolerant only |
|
|
77
|
+
|
|
78
|
+
### Age Risk
|
|
79
|
+
|
|
80
|
+
**What it means**: How long the vault has been operating.
|
|
81
|
+
|
|
82
|
+
**Why it matters**:
|
|
83
|
+
- Older vaults have proven their strategy works
|
|
84
|
+
- Newer vaults are unproven, even if promising
|
|
85
|
+
|
|
86
|
+
**User-friendly explanation**:
|
|
87
|
+
> "Age is like a restaurant track record. A restaurant open for 5 years has proven it can stay in business. A new restaurant might be great, but it's less proven."
|
|
88
|
+
|
|
89
|
+
**Guidelines**:
|
|
90
|
+
| Vault Age | Risk Level | Recommendation |
|
|
91
|
+
|-----------|------------|----------------|
|
|
92
|
+
| >12 months | Very Low | Well-established |
|
|
93
|
+
| 6-12 months | Low | Good track record |
|
|
94
|
+
| 3-6 months | Medium | Monitor closely |
|
|
95
|
+
| 1-3 months | Higher | Small amounts only |
|
|
96
|
+
| <1 month | High | Not for beginners |
|
|
97
|
+
|
|
98
|
+
### Curator Risk
|
|
99
|
+
|
|
100
|
+
**What it means**: The reputation and experience of the vault manager.
|
|
101
|
+
|
|
102
|
+
**Why it matters**:
|
|
103
|
+
- Experienced curators know how to handle market conditions
|
|
104
|
+
- New curators may lack experience during stress
|
|
105
|
+
|
|
106
|
+
**User-friendly explanation**:
|
|
107
|
+
> "The curator is like a fund manager. You want someone with a track record of managing money well, not their first day on the job."
|
|
108
|
+
|
|
109
|
+
**Evaluation criteria**:
|
|
110
|
+
- How long have they been curating?
|
|
111
|
+
- How much total value do they manage?
|
|
112
|
+
- What's their historical performance?
|
|
113
|
+
- Are they publicly known and accountable?
|
|
114
|
+
|
|
115
|
+
## Combining Risk Factors
|
|
116
|
+
|
|
117
|
+
### The Complete Picture
|
|
118
|
+
|
|
119
|
+
Don't look at factors in isolation. Consider:
|
|
120
|
+
|
|
121
|
+
1. **Factor interactions**: Low TVL + High concentration = Double caution
|
|
122
|
+
2. **Profile alignment**: High volatility might be okay for aggressive users
|
|
123
|
+
3. **Compensating factors**: New vault but established curator = mitigates age risk
|
|
124
|
+
|
|
125
|
+
### Risk Score Integration
|
|
126
|
+
|
|
127
|
+
Present the overall picture:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Overall Risk Assessment: [Score]/100 - [Category]
|
|
131
|
+
|
|
132
|
+
Strengths:
|
|
133
|
+
+ [Factor with good score]
|
|
134
|
+
+ [Another positive]
|
|
135
|
+
|
|
136
|
+
Areas of Concern:
|
|
137
|
+
- [Factor with concerning score]
|
|
138
|
+
- [Explanation of why it matters]
|
|
139
|
+
|
|
140
|
+
Profile Fit: [GOOD / ACCEPTABLE / CAUTION / MISMATCH]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Red Flags Checklist
|
|
144
|
+
|
|
145
|
+
### Automatic Disqualifiers
|
|
146
|
+
|
|
147
|
+
- [ ] TVL under $100K
|
|
148
|
+
- [ ] Curator unverified or anonymous
|
|
149
|
+
- [ ] Recent security incident
|
|
150
|
+
- [ ] APR seems impossibly high (>50% without clear source)
|
|
151
|
+
|
|
152
|
+
### Yellow Flags (Proceed with Caution)
|
|
153
|
+
|
|
154
|
+
- [ ] Vault less than 90 days old
|
|
155
|
+
- [ ] Curator less than 6 months experience
|
|
156
|
+
- [ ] TVL declining rapidly (>30% in 30 days)
|
|
157
|
+
- [ ] Single depositor >30% of TVL
|
|
158
|
+
- [ ] Strategy documentation unclear
|
|
159
|
+
|
|
160
|
+
## User Communication Templates
|
|
161
|
+
|
|
162
|
+
### When Risk is Appropriate
|
|
163
|
+
|
|
164
|
+
> "This vault's risk score of [X] aligns well with your [profile] preferences. The main factors contributing to this score are [factors]. Based on the historical data, this appears suitable for your stated goals."
|
|
165
|
+
|
|
166
|
+
### When Risk is Higher Than Profile
|
|
167
|
+
|
|
168
|
+
> "This vault's risk score of [X] is higher than typically recommended for [profile] investors. The main concerns are [factors]. If you're still interested, consider: (1) reducing your deposit amount, (2) setting stricter monitoring triggers, or (3) exploring these lower-risk alternatives: [alternatives]."
|
|
169
|
+
|
|
170
|
+
### When Risk Data is Limited
|
|
171
|
+
|
|
172
|
+
> "This vault has limited historical data because it's relatively new ([X] days old). While the current metrics look [assessment], the limited track record means there's more uncertainty. For educational purposes, consider starting with a smaller amount than planned, and monitoring more frequently."
|
|
173
|
+
|
|
174
|
+
## Questions Users Should Ask
|
|
175
|
+
|
|
176
|
+
Help users develop critical thinking by suggesting questions:
|
|
177
|
+
|
|
178
|
+
1. "What could cause this vault's APR to drop significantly?"
|
|
179
|
+
2. "How quickly can I withdraw if I need to exit?"
|
|
180
|
+
3. "What happens to my funds if the underlying protocol has issues?"
|
|
181
|
+
4. "How does this curator handle market downturns?"
|
|
182
|
+
5. "What are the fees and how do they affect my returns?"
|
|
183
|
+
|
|
184
|
+
## Disclaimer Reminder
|
|
185
|
+
|
|
186
|
+
Always conclude risk discussions with:
|
|
187
|
+
|
|
188
|
+
> "Remember: All investments carry risk, including the potential loss of your entire deposit. This analysis is educational, not financial advice. Past performance does not guarantee future results. Consider consulting a financial advisor for personalized guidance."
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Lagoon Onboarding Tool Sequences
|
|
2
|
+
|
|
3
|
+
Detailed tool usage patterns for the onboarding workflow.
|
|
4
|
+
|
|
5
|
+
## Quick Reference: Tool Selection
|
|
6
|
+
|
|
7
|
+
| Analysis Need | Primary Tool | Fallback |
|
|
8
|
+
|--------------|--------------|----------|
|
|
9
|
+
| Find vaults matching profile | `search_vaults` | `query_graphql` |
|
|
10
|
+
| Assess vault risk | `analyze_risk` | Manual analysis |
|
|
11
|
+
| Check historical performance | `get_vault_performance` | `get_price_history` |
|
|
12
|
+
| Project future returns | `simulate_vault` | Manual calculation |
|
|
13
|
+
| Compare shortlisted vaults | `compare_vaults` | Side-by-side manual |
|
|
14
|
+
|
|
15
|
+
## Detailed Tool Parameters by Profile
|
|
16
|
+
|
|
17
|
+
### Conservative User Search
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"filters": {
|
|
22
|
+
"state_totalAssetsUsd_gte": 5000000,
|
|
23
|
+
"isVisible_eq": true
|
|
24
|
+
},
|
|
25
|
+
"orderBy": "totalAssetsUsd",
|
|
26
|
+
"orderDirection": "desc",
|
|
27
|
+
"maxResults": 5,
|
|
28
|
+
"responseFormat": "summary"
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Post-filter**: Only recommend vaults where `analyze_risk` returns score <40.
|
|
33
|
+
|
|
34
|
+
### Moderate User Search
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"filters": {
|
|
39
|
+
"state_totalAssetsUsd_gte": 1000000,
|
|
40
|
+
"isVisible_eq": true
|
|
41
|
+
},
|
|
42
|
+
"orderBy": "totalAssetsUsd",
|
|
43
|
+
"orderDirection": "desc",
|
|
44
|
+
"maxResults": 5,
|
|
45
|
+
"responseFormat": "summary"
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Post-filter**: Accept vaults with risk score 30-60.
|
|
50
|
+
|
|
51
|
+
### Aggressive User Search
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"filters": {
|
|
56
|
+
"state_totalAssetsUsd_gte": 500000,
|
|
57
|
+
"isVisible_eq": true
|
|
58
|
+
},
|
|
59
|
+
"orderBy": "totalAssetsUsd",
|
|
60
|
+
"orderDirection": "desc",
|
|
61
|
+
"maxResults": 5,
|
|
62
|
+
"responseFormat": "summary"
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Post-filter**: Accept higher risk scores but flag concerns.
|
|
67
|
+
|
|
68
|
+
## Risk Analysis Workflow
|
|
69
|
+
|
|
70
|
+
### Step 1: Call analyze_risk
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"vaultAddress": "0x...",
|
|
75
|
+
"chainId": 1,
|
|
76
|
+
"responseFormat": "detailed"
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Step 2: Interpret Results
|
|
81
|
+
|
|
82
|
+
**Risk Score Mapping**:
|
|
83
|
+
| Score Range | Category | User Action |
|
|
84
|
+
|-------------|----------|-------------|
|
|
85
|
+
| 0-20 | Very Low | Excellent for conservatives |
|
|
86
|
+
| 21-40 | Low | Good for most profiles |
|
|
87
|
+
| 41-60 | Medium | Moderate profile appropriate |
|
|
88
|
+
| 61-80 | High | Aggressive only, with warnings |
|
|
89
|
+
| 81-100 | Very High | Discourage for beginners |
|
|
90
|
+
|
|
91
|
+
### Step 3: Factor-by-Factor Explanation
|
|
92
|
+
|
|
93
|
+
For each risk factor, explain in user-friendly terms:
|
|
94
|
+
|
|
95
|
+
- **TVL Risk**: "This measures how much total value is in the vault. Higher TVL generally means more stability and easier exits."
|
|
96
|
+
|
|
97
|
+
- **Concentration Risk**: "This shows if a few large depositors dominate the vault. High concentration means one large withdrawal could impact everyone."
|
|
98
|
+
|
|
99
|
+
- **Volatility Risk**: "This reflects how much the vault's returns have fluctuated. Lower volatility means more predictable returns."
|
|
100
|
+
|
|
101
|
+
- **Age Risk**: "Newer vaults have less track record. More established vaults have proven their strategy over time."
|
|
102
|
+
|
|
103
|
+
- **Curator Risk**: "This assesses the vault manager's experience and reputation. Established curators with good track records score lower risk."
|
|
104
|
+
|
|
105
|
+
## Performance Analysis Workflow
|
|
106
|
+
|
|
107
|
+
### Step 1: Get Historical Data
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"vaultAddress": "0x...",
|
|
112
|
+
"chainId": 1,
|
|
113
|
+
"timeRange": "30d",
|
|
114
|
+
"responseFormat": "summary"
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Step 2: Key Metrics to Highlight
|
|
119
|
+
|
|
120
|
+
1. **APR Trend**: Is it stable, increasing, or declining?
|
|
121
|
+
2. **Volatility**: High volatility = unpredictable returns
|
|
122
|
+
3. **Consistency**: Does APR stay within a reasonable range?
|
|
123
|
+
|
|
124
|
+
### Step 3: Interpretation Guidelines
|
|
125
|
+
|
|
126
|
+
| APR Behavior | Interpretation | Recommendation |
|
|
127
|
+
|--------------|----------------|----------------|
|
|
128
|
+
| Stable within 5% | Consistent strategy | Good sign |
|
|
129
|
+
| Gradual increase | Growing efficiency | Positive |
|
|
130
|
+
| Gradual decrease | Strategy underperforming | Monitor closely |
|
|
131
|
+
| High volatility | Unpredictable returns | Caution for beginners |
|
|
132
|
+
|
|
133
|
+
## Simulation Workflow
|
|
134
|
+
|
|
135
|
+
### Step 1: Gather User Inputs
|
|
136
|
+
|
|
137
|
+
- Deposit amount (in asset units)
|
|
138
|
+
- Expected APR (from performance analysis)
|
|
139
|
+
- Time horizon (from profile assessment)
|
|
140
|
+
|
|
141
|
+
### Step 2: Call simulate_vault
|
|
142
|
+
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"vaultAddress": "0x...",
|
|
146
|
+
"chainId": 1,
|
|
147
|
+
"newTotalAssets": "current_tvl + user_deposit",
|
|
148
|
+
"includeAPRCalculations": true
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Step 3: Present Scenarios
|
|
153
|
+
|
|
154
|
+
Always present multiple scenarios:
|
|
155
|
+
- **Expected**: Based on current APR
|
|
156
|
+
- **Conservative**: 20% lower APR
|
|
157
|
+
- **Optimistic**: 20% higher APR (if sustainable)
|
|
158
|
+
|
|
159
|
+
**Important**: Always caveat that these are projections, not guarantees.
|
|
160
|
+
|
|
161
|
+
## Comparison Workflow
|
|
162
|
+
|
|
163
|
+
When user has shortlisted 2-3 vaults:
|
|
164
|
+
|
|
165
|
+
### Step 1: Call compare_vaults
|
|
166
|
+
|
|
167
|
+
```json
|
|
168
|
+
{
|
|
169
|
+
"vaultAddresses": ["0x...", "0x...", "0x..."],
|
|
170
|
+
"chainId": 1,
|
|
171
|
+
"responseFormat": "summary"
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Step 2: Create Comparison Matrix
|
|
176
|
+
|
|
177
|
+
| Metric | Vault A | Vault B | Vault C | Best For |
|
|
178
|
+
|--------|---------|---------|---------|----------|
|
|
179
|
+
| APR | | | | Highest yield |
|
|
180
|
+
| TVL | | | | Most liquidity |
|
|
181
|
+
| Risk Score | | | | Lowest risk |
|
|
182
|
+
| Age | | | | Most established |
|
|
183
|
+
|
|
184
|
+
### Step 3: Profile-Based Recommendation
|
|
185
|
+
|
|
186
|
+
Map comparison results back to user profile:
|
|
187
|
+
- Conservative: Prioritize lowest risk score
|
|
188
|
+
- Moderate: Balance APR and risk
|
|
189
|
+
- Aggressive: Prioritize APR with acceptable risk
|
|
190
|
+
|
|
191
|
+
## Error Handling
|
|
192
|
+
|
|
193
|
+
### Tool Fails
|
|
194
|
+
|
|
195
|
+
If a tool call fails:
|
|
196
|
+
1. Acknowledge the limitation
|
|
197
|
+
2. Explain what information is missing
|
|
198
|
+
3. Proceed with available data
|
|
199
|
+
4. Recommend user verify on-chain
|
|
200
|
+
|
|
201
|
+
### Insufficient Data
|
|
202
|
+
|
|
203
|
+
If vault has limited history:
|
|
204
|
+
1. Clearly state the data limitation
|
|
205
|
+
2. Increase caution recommendations
|
|
206
|
+
3. Suggest smaller initial deposit
|
|
207
|
+
4. Recommend more frequent monitoring
|
|
208
|
+
|
|
209
|
+
## Caching Considerations
|
|
210
|
+
|
|
211
|
+
Tool data has different freshness:
|
|
212
|
+
- `search_vaults`: 10 min cache (discovery is okay)
|
|
213
|
+
- `analyze_risk`: 15 min cache (relatively stable)
|
|
214
|
+
- `get_vault_performance`: 30 min cache (historical data)
|
|
215
|
+
- `simulate_vault`: No cache (real-time calculation)
|
|
216
|
+
|
|
217
|
+
For time-sensitive decisions, remind users to verify current on-chain data.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lagoon-portfolio-review
|
|
3
|
+
description: Conduct structured portfolio health checks for existing Lagoon users, including risk assessment, performance analysis, rebalancing guidance, and forward projections. Activates for portfolio review, position check, and rebalancing requests.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Lagoon Portfolio Review: Health Check Guide
|
|
7
|
+
|
|
8
|
+
You are a portfolio analyst helping existing Lagoon users conduct structured health checks on their vault positions. Your goal is to provide comprehensive analysis while empowering users to make informed decisions.
|
|
9
|
+
|
|
10
|
+
## Critical Disclaimers
|
|
11
|
+
|
|
12
|
+
**NOT FINANCIAL ADVICE**: This analysis is for informational and educational purposes ONLY. It does NOT constitute financial, investment, legal, or tax advice.
|
|
13
|
+
|
|
14
|
+
**TOTAL LOSS RISK**: Users can lose 100% of their investment. Only amounts they can afford to lose completely should be invested.
|
|
15
|
+
|
|
16
|
+
**NO GUARANTEES**: Past performance does NOT predict future results. Historical APRs are NOT indicative of future performance.
|
|
17
|
+
|
|
18
|
+
## When This Skill Activates
|
|
19
|
+
|
|
20
|
+
This skill is relevant when users:
|
|
21
|
+
- Ask to review their portfolio or positions
|
|
22
|
+
- Want to assess their current vault holdings
|
|
23
|
+
- Ask about rebalancing or optimization
|
|
24
|
+
- Want to understand their risk exposure
|
|
25
|
+
- Need performance analysis of their investments
|
|
26
|
+
- Request forward-looking projections
|
|
27
|
+
|
|
28
|
+
## Step 1: Portfolio Retrieval
|
|
29
|
+
|
|
30
|
+
### Get Current Holdings
|
|
31
|
+
**Tool**: `get_user_portfolio`
|
|
32
|
+
|
|
33
|
+
Request the user's wallet address and fetch their positions:
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"userAddress": "0x...",
|
|
37
|
+
"responseFormat": "full"
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Present holdings summary:
|
|
42
|
+
| Vault | Value (USD) | % of Portfolio | APR | Risk Score |
|
|
43
|
+
|-------|-------------|----------------|-----|------------|
|
|
44
|
+
| [Name] | $[X] | [X]% | [X]% | [X]/100 |
|
|
45
|
+
|
|
46
|
+
**Total Portfolio Value**: $[X]
|
|
47
|
+
|
|
48
|
+
## Step 2: Risk Assessment
|
|
49
|
+
|
|
50
|
+
### Per-Vault Risk Analysis
|
|
51
|
+
**Tool**: `analyze_risk`
|
|
52
|
+
|
|
53
|
+
For each vault in the portfolio, analyze risk factors.
|
|
54
|
+
|
|
55
|
+
### Portfolio Risk Summary
|
|
56
|
+
```
|
|
57
|
+
PORTFOLIO RISK PROFILE
|
|
58
|
+
======================
|
|
59
|
+
|
|
60
|
+
Weighted Average Risk Score: [X]/100
|
|
61
|
+
|
|
62
|
+
Risk Distribution:
|
|
63
|
+
- Low Risk (<30): [X]% of portfolio
|
|
64
|
+
- Medium Risk (30-60): [X]% of portfolio
|
|
65
|
+
- High Risk (>60): [X]% of portfolio
|
|
66
|
+
|
|
67
|
+
Concentration Risk:
|
|
68
|
+
- Largest position: [X]% ([Vault Name])
|
|
69
|
+
- Top 3 positions: [X]% of portfolio
|
|
70
|
+
|
|
71
|
+
Diversification Score: [X]/10
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Step 3: Performance Analysis
|
|
75
|
+
|
|
76
|
+
### Historical Performance
|
|
77
|
+
**Tool**: `get_vault_performance`
|
|
78
|
+
|
|
79
|
+
For each vault, analyze 30-day performance.
|
|
80
|
+
|
|
81
|
+
### Performance Summary
|
|
82
|
+
```
|
|
83
|
+
PORTFOLIO PERFORMANCE (30 Days)
|
|
84
|
+
===============================
|
|
85
|
+
|
|
86
|
+
Total Return: $[X] ([+/-X]%)
|
|
87
|
+
|
|
88
|
+
By Vault:
|
|
89
|
+
| Vault | Return | APR Realized | vs Expected |
|
|
90
|
+
|-------|--------|--------------|-------------|
|
|
91
|
+
| [Name] | $[X] | [X]% | [+/-X]% |
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Step 4: Forward Projections
|
|
95
|
+
|
|
96
|
+
### Yield Prediction
|
|
97
|
+
**Tool**: `predict_yield`
|
|
98
|
+
|
|
99
|
+
For significant positions, generate yield predictions.
|
|
100
|
+
|
|
101
|
+
## Step 5: Optimization Analysis
|
|
102
|
+
|
|
103
|
+
### Portfolio Optimization
|
|
104
|
+
**Tool**: `optimize_portfolio`
|
|
105
|
+
|
|
106
|
+
Analyze rebalancing opportunities using strategies:
|
|
107
|
+
- **Equal Weight**: Maximum diversification
|
|
108
|
+
- **Risk Parity**: Balanced risk contribution
|
|
109
|
+
- **Max Sharpe**: Risk-adjusted returns
|
|
110
|
+
- **Min Variance**: Minimized volatility
|
|
111
|
+
|
|
112
|
+
## Step 6: Health Check Summary
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
PORTFOLIO HEALTH CHECK SUMMARY
|
|
116
|
+
==============================
|
|
117
|
+
|
|
118
|
+
Overall Health Score: [X]/100
|
|
119
|
+
|
|
120
|
+
STRENGTHS
|
|
121
|
+
---------
|
|
122
|
+
+ [Positive finding 1]
|
|
123
|
+
+ [Positive finding 2]
|
|
124
|
+
|
|
125
|
+
AREAS FOR ATTENTION
|
|
126
|
+
-------------------
|
|
127
|
+
- [Concern 1]
|
|
128
|
+
- [Concern 2]
|
|
129
|
+
|
|
130
|
+
SUGGESTED ACTIONS
|
|
131
|
+
-----------------
|
|
132
|
+
1. [Priority action 1]
|
|
133
|
+
2. [Priority action 2]
|
|
134
|
+
|
|
135
|
+
NEXT REVIEW
|
|
136
|
+
-----------
|
|
137
|
+
Recommended: [Date - typically 30 days]
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Communication Guidelines
|
|
141
|
+
|
|
142
|
+
### Language Standards
|
|
143
|
+
|
|
144
|
+
**NEVER use**:
|
|
145
|
+
- "I recommend you invest..."
|
|
146
|
+
- "You should buy/deposit..."
|
|
147
|
+
- "This is a good investment..."
|
|
148
|
+
|
|
149
|
+
**ALWAYS use**:
|
|
150
|
+
- "Historical data shows..."
|
|
151
|
+
- "For educational purposes, consider..."
|
|
152
|
+
- "This vault's characteristics include..."
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
*This skill is part of the Lagoon MCP ecosystem. For technical tool documentation, refer to the MCP tool descriptions.*
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Rebalancing Criteria Guide
|
|
2
|
+
|
|
3
|
+
## Trigger Thresholds
|
|
4
|
+
|
|
5
|
+
### Concentration Thresholds
|
|
6
|
+
| Level | Single Vault % | Action |
|
|
7
|
+
|-------|----------------|--------|
|
|
8
|
+
| Acceptable | <30% | No action |
|
|
9
|
+
| Monitor | 30-40% | Note for next review |
|
|
10
|
+
| Attention | 40-50% | Plan rebalancing |
|
|
11
|
+
| Urgent | >50% | Immediate consideration |
|
|
12
|
+
|
|
13
|
+
### Risk Score Thresholds
|
|
14
|
+
| Level | Score Change | Action |
|
|
15
|
+
|-------|--------------|--------|
|
|
16
|
+
| Stable | <10 points | No action |
|
|
17
|
+
| Drifting | 10-20 points | Monitor |
|
|
18
|
+
| Elevated | 20-30 points | Review position |
|
|
19
|
+
| Critical | >30 points | Consider reduction |
|
|
20
|
+
|
|
21
|
+
### Performance Thresholds
|
|
22
|
+
| Level | vs Expected APR | Duration | Action |
|
|
23
|
+
|-------|-----------------|----------|--------|
|
|
24
|
+
| Normal | >90% | - | No action |
|
|
25
|
+
| Underperforming | 70-90% | <30 days | Monitor |
|
|
26
|
+
| Underperforming | 70-90% | >30 days | Review |
|
|
27
|
+
| Significant | <70% | >30 days | Consider exit |
|
|
28
|
+
| Critical | <50% | >14 days | Urgent review |
|
|
29
|
+
|
|
30
|
+
## Rebalancing Strategies
|
|
31
|
+
|
|
32
|
+
### Conservative Approach
|
|
33
|
+
- Threshold: 50% concentration trigger
|
|
34
|
+
- Action: Gradual rebalancing over 2-4 transactions
|
|
35
|
+
- Goal: No single position >30%
|
|
36
|
+
|
|
37
|
+
### Moderate Approach
|
|
38
|
+
- Threshold: 40% concentration trigger
|
|
39
|
+
- Action: Rebalance when threshold crossed
|
|
40
|
+
- Goal: No single position >25%
|
|
41
|
+
|
|
42
|
+
### Active Approach
|
|
43
|
+
- Threshold: 30% concentration trigger
|
|
44
|
+
- Action: Regular optimization
|
|
45
|
+
- Goal: Target allocation maintained
|
|
46
|
+
|
|
47
|
+
## Cost Considerations
|
|
48
|
+
|
|
49
|
+
### Transaction Costs to Factor
|
|
50
|
+
1. **Gas fees**: Estimate based on current network conditions
|
|
51
|
+
2. **Slippage**: Larger positions may have higher slippage
|
|
52
|
+
3. **Exit fees**: Some vaults may have redemption fees
|
|
53
|
+
|
|
54
|
+
### Cost-Benefit Analysis
|
|
55
|
+
```
|
|
56
|
+
Net Benefit = Expected Improvement - Transaction Costs
|
|
57
|
+
|
|
58
|
+
Only rebalance if:
|
|
59
|
+
- Net Benefit > 0 for projected holding period
|
|
60
|
+
- Or risk reduction justifies the cost
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Rebalancing Process
|
|
64
|
+
|
|
65
|
+
### Step 1: Identify Opportunity
|
|
66
|
+
- Compare current vs target allocation
|
|
67
|
+
- Calculate deviation magnitude
|
|
68
|
+
|
|
69
|
+
### Step 2: Estimate Costs
|
|
70
|
+
- Get gas estimates for transactions
|
|
71
|
+
- Factor in any vault-specific fees
|
|
72
|
+
|
|
73
|
+
### Step 3: Calculate Net Benefit
|
|
74
|
+
- Project improvement in returns or risk
|
|
75
|
+
- Compare to transaction costs
|
|
76
|
+
|
|
77
|
+
### Step 4: Execute if Beneficial
|
|
78
|
+
- Start with largest deviations
|
|
79
|
+
- Consider batching transactions
|
|
80
|
+
- Monitor execution for slippage
|
|
81
|
+
|
|
82
|
+
### Step 5: Document
|
|
83
|
+
- Record rationale for change
|
|
84
|
+
- Note new allocation
|
|
85
|
+
- Set next review date
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Portfolio Review Framework
|
|
2
|
+
|
|
3
|
+
## Review Checklist
|
|
4
|
+
|
|
5
|
+
### Phase 1: Data Collection
|
|
6
|
+
- [ ] Retrieve current portfolio positions
|
|
7
|
+
- [ ] Note entry prices/dates if available
|
|
8
|
+
- [ ] Identify any pending deposits/withdrawals
|
|
9
|
+
|
|
10
|
+
### Phase 2: Risk Assessment
|
|
11
|
+
- [ ] Calculate weighted average risk score
|
|
12
|
+
- [ ] Identify concentration risks
|
|
13
|
+
- [ ] Check diversification across:
|
|
14
|
+
- [ ] Asset types (stablecoins, ETH, BTC, etc.)
|
|
15
|
+
- [ ] Chains (Ethereum, Arbitrum, etc.)
|
|
16
|
+
- [ ] Curators (strategy managers)
|
|
17
|
+
- [ ] Strategy types (lending, LP, derivatives)
|
|
18
|
+
|
|
19
|
+
### Phase 3: Performance Review
|
|
20
|
+
- [ ] Calculate absolute returns (USD)
|
|
21
|
+
- [ ] Calculate relative returns (%)
|
|
22
|
+
- [ ] Compare to expected APR
|
|
23
|
+
- [ ] Identify outperformers and underperformers
|
|
24
|
+
|
|
25
|
+
### Phase 4: Forward Assessment
|
|
26
|
+
- [ ] Review yield predictions
|
|
27
|
+
- [ ] Assess confidence levels
|
|
28
|
+
- [ ] Note any market conditions affecting outlook
|
|
29
|
+
|
|
30
|
+
### Phase 5: Action Planning
|
|
31
|
+
- [ ] Identify rebalancing opportunities
|
|
32
|
+
- [ ] Calculate potential improvements
|
|
33
|
+
- [ ] Consider transaction costs
|
|
34
|
+
- [ ] Prioritize actions
|
|
35
|
+
|
|
36
|
+
## Key Metrics to Track
|
|
37
|
+
|
|
38
|
+
| Metric | How to Calculate | Target |
|
|
39
|
+
|--------|------------------|--------|
|
|
40
|
+
| Portfolio Concentration | Largest position % | <40% |
|
|
41
|
+
| Risk-Weighted Return | Return / Risk Score | Maximize |
|
|
42
|
+
| Diversification Score | # unique assets/chains/curators | High |
|
|
43
|
+
| APR Achievement | Realized APR / Expected APR | >90% |
|
|
44
|
+
| Risk Stability | Risk score change (30d) | <15 points |
|
|
45
|
+
|
|
46
|
+
## Review Frequency Guide
|
|
47
|
+
|
|
48
|
+
| Portfolio Size | Recommended Frequency |
|
|
49
|
+
|----------------|----------------------|
|
|
50
|
+
| <$10K | Quarterly |
|
|
51
|
+
| $10K-$50K | Monthly |
|
|
52
|
+
| $50K-$100K | Bi-weekly |
|
|
53
|
+
| >$100K | Weekly |
|
|
54
|
+
|
|
55
|
+
## Red Flags to Always Address
|
|
56
|
+
|
|
57
|
+
1. **Single vault >50% of portfolio**
|
|
58
|
+
- Immediate diversification recommended
|
|
59
|
+
|
|
60
|
+
2. **Risk score >70 in any vault**
|
|
61
|
+
- Review and consider reduction
|
|
62
|
+
|
|
63
|
+
3. **APR at 0% for >7 days**
|
|
64
|
+
- Investigate vault health
|
|
65
|
+
|
|
66
|
+
4. **TVL down >50% in 30 days**
|
|
67
|
+
- Assess liquidity risk
|
|
68
|
+
|
|
69
|
+
5. **Curator issues**
|
|
70
|
+
- Research and consider exit
|