@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.
- 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 +26 -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,464 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lagoon Portfolio Review Skill
|
|
3
|
+
*
|
|
4
|
+
* Provides structured portfolio health checks for existing Lagoon users,
|
|
5
|
+
* including risk assessment, performance analysis, and rebalancing guidance.
|
|
6
|
+
*
|
|
7
|
+
* @module skills/portfolio-review
|
|
8
|
+
*/
|
|
9
|
+
import { COMMON_DISCLAIMERS, COMMUNICATION_GUIDELINES } from './shared.js';
|
|
10
|
+
/**
|
|
11
|
+
* Main skill instructions
|
|
12
|
+
*/
|
|
13
|
+
const INSTRUCTIONS = `# Lagoon Portfolio Review: Health Check Guide
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
${COMMON_DISCLAIMERS.full}
|
|
18
|
+
|
|
19
|
+
## When This Skill Activates
|
|
20
|
+
|
|
21
|
+
This skill is relevant when users:
|
|
22
|
+
- Ask to review their portfolio or positions
|
|
23
|
+
- Want to assess their current vault holdings
|
|
24
|
+
- Ask about rebalancing or optimization
|
|
25
|
+
- Want to understand their risk exposure
|
|
26
|
+
- Need performance analysis of their investments
|
|
27
|
+
- Request forward-looking projections
|
|
28
|
+
|
|
29
|
+
## Step 1: Portfolio Retrieval
|
|
30
|
+
|
|
31
|
+
### Get Current Holdings
|
|
32
|
+
**Tool**: \`get_user_portfolio\`
|
|
33
|
+
|
|
34
|
+
Request the user's wallet address and fetch their positions:
|
|
35
|
+
\`\`\`json
|
|
36
|
+
{
|
|
37
|
+
"userAddress": "0x...",
|
|
38
|
+
"responseFormat": "full"
|
|
39
|
+
}
|
|
40
|
+
\`\`\`
|
|
41
|
+
|
|
42
|
+
Present holdings summary:
|
|
43
|
+
| Vault | Value (USD) | % of Portfolio | APR | Risk Score |
|
|
44
|
+
|-------|-------------|----------------|-----|------------|
|
|
45
|
+
| [Name] | $[X] | [X]% | [X]% | [X]/100 |
|
|
46
|
+
|
|
47
|
+
**Total Portfolio Value**: $[X]
|
|
48
|
+
|
|
49
|
+
## Step 2: Risk Assessment
|
|
50
|
+
|
|
51
|
+
### Per-Vault Risk Analysis
|
|
52
|
+
**Tool**: \`analyze_risk\`
|
|
53
|
+
|
|
54
|
+
For each vault in the portfolio:
|
|
55
|
+
\`\`\`json
|
|
56
|
+
{
|
|
57
|
+
"vaultAddress": "0x...",
|
|
58
|
+
"chainId": 1,
|
|
59
|
+
"responseFormat": "detailed"
|
|
60
|
+
}
|
|
61
|
+
\`\`\`
|
|
62
|
+
|
|
63
|
+
### Portfolio Risk Summary
|
|
64
|
+
\`\`\`
|
|
65
|
+
PORTFOLIO RISK PROFILE
|
|
66
|
+
======================
|
|
67
|
+
|
|
68
|
+
Weighted Average Risk Score: [X]/100
|
|
69
|
+
|
|
70
|
+
Risk Distribution:
|
|
71
|
+
- Low Risk (<30): [X]% of portfolio
|
|
72
|
+
- Medium Risk (30-60): [X]% of portfolio
|
|
73
|
+
- High Risk (>60): [X]% of portfolio
|
|
74
|
+
|
|
75
|
+
Concentration Risk:
|
|
76
|
+
- Largest position: [X]% ([Vault Name])
|
|
77
|
+
- Top 3 positions: [X]% of portfolio
|
|
78
|
+
|
|
79
|
+
Diversification Score: [X]/10
|
|
80
|
+
(Based on asset types, chains, curators, strategies)
|
|
81
|
+
\`\`\`
|
|
82
|
+
|
|
83
|
+
## Step 3: Performance Analysis
|
|
84
|
+
|
|
85
|
+
### Historical Performance
|
|
86
|
+
**Tool**: \`get_vault_performance\`
|
|
87
|
+
|
|
88
|
+
For each vault:
|
|
89
|
+
\`\`\`json
|
|
90
|
+
{
|
|
91
|
+
"vaultAddress": "0x...",
|
|
92
|
+
"chainId": 1,
|
|
93
|
+
"timeRange": "30d",
|
|
94
|
+
"responseFormat": "detailed"
|
|
95
|
+
}
|
|
96
|
+
\`\`\`
|
|
97
|
+
|
|
98
|
+
### Performance Summary
|
|
99
|
+
\`\`\`
|
|
100
|
+
PORTFOLIO PERFORMANCE (30 Days)
|
|
101
|
+
===============================
|
|
102
|
+
|
|
103
|
+
Total Return: $[X] ([+/-X]%)
|
|
104
|
+
|
|
105
|
+
By Vault:
|
|
106
|
+
| Vault | Return | APR Realized | vs Expected |
|
|
107
|
+
|-------|--------|--------------|-------------|
|
|
108
|
+
| [Name] | $[X] | [X]% | [+/-X]% |
|
|
109
|
+
|
|
110
|
+
Performance Assessment:
|
|
111
|
+
- Outperforming: [N] vaults
|
|
112
|
+
- Meeting expectations: [N] vaults
|
|
113
|
+
- Underperforming: [N] vaults
|
|
114
|
+
\`\`\`
|
|
115
|
+
|
|
116
|
+
## Step 4: Forward Projections
|
|
117
|
+
|
|
118
|
+
### Yield Prediction
|
|
119
|
+
**Tool**: \`predict_yield\`
|
|
120
|
+
|
|
121
|
+
For significant positions:
|
|
122
|
+
\`\`\`json
|
|
123
|
+
{
|
|
124
|
+
"vaultAddress": "0x...",
|
|
125
|
+
"chainId": 1,
|
|
126
|
+
"timeRange": "30d",
|
|
127
|
+
"responseFormat": "detailed"
|
|
128
|
+
}
|
|
129
|
+
\`\`\`
|
|
130
|
+
|
|
131
|
+
### Projection Summary
|
|
132
|
+
\`\`\`
|
|
133
|
+
PROJECTED RETURNS (Next 30 Days)
|
|
134
|
+
================================
|
|
135
|
+
|
|
136
|
+
Based on current positions and historical trends:
|
|
137
|
+
|
|
138
|
+
| Vault | Current APR | Predicted APR | Confidence |
|
|
139
|
+
|-------|-------------|---------------|------------|
|
|
140
|
+
| [Name] | [X]% | [X]% | [High/Med/Low] |
|
|
141
|
+
|
|
142
|
+
Total Projected Return: $[X] - $[X]
|
|
143
|
+
(Range based on confidence intervals)
|
|
144
|
+
|
|
145
|
+
Note: Projections are estimates based on historical trends.
|
|
146
|
+
Actual results may vary significantly.
|
|
147
|
+
\`\`\`
|
|
148
|
+
|
|
149
|
+
## Step 5: Optimization Analysis
|
|
150
|
+
|
|
151
|
+
### Portfolio Optimization
|
|
152
|
+
**Tool**: \`optimize_portfolio\`
|
|
153
|
+
|
|
154
|
+
Analyze rebalancing opportunities:
|
|
155
|
+
\`\`\`json
|
|
156
|
+
{
|
|
157
|
+
"vaultAddresses": ["0x...", "0x..."],
|
|
158
|
+
"chainId": 1,
|
|
159
|
+
"currentPositions": [
|
|
160
|
+
{"vaultAddress": "0x...", "valueUsd": 10000}
|
|
161
|
+
],
|
|
162
|
+
"strategy": "max_sharpe",
|
|
163
|
+
"responseFormat": "detailed"
|
|
164
|
+
}
|
|
165
|
+
\`\`\`
|
|
166
|
+
|
|
167
|
+
### Optimization Strategies
|
|
168
|
+
- **Equal Weight**: Maximum diversification
|
|
169
|
+
- **Risk Parity**: Balanced risk contribution
|
|
170
|
+
- **Max Sharpe**: Risk-adjusted returns
|
|
171
|
+
- **Min Variance**: Minimized volatility
|
|
172
|
+
|
|
173
|
+
## Step 6: Recommendations Framework
|
|
174
|
+
|
|
175
|
+
### Health Check Summary
|
|
176
|
+
|
|
177
|
+
Present findings using this framework:
|
|
178
|
+
|
|
179
|
+
\`\`\`
|
|
180
|
+
PORTFOLIO HEALTH CHECK SUMMARY
|
|
181
|
+
==============================
|
|
182
|
+
|
|
183
|
+
Overall Health Score: [X]/100
|
|
184
|
+
|
|
185
|
+
STRENGTHS
|
|
186
|
+
---------
|
|
187
|
+
+ [Positive finding 1]
|
|
188
|
+
+ [Positive finding 2]
|
|
189
|
+
|
|
190
|
+
AREAS FOR ATTENTION
|
|
191
|
+
-------------------
|
|
192
|
+
- [Concern 1]
|
|
193
|
+
- [Concern 2]
|
|
194
|
+
|
|
195
|
+
REBALANCING TRIGGERS
|
|
196
|
+
--------------------
|
|
197
|
+
The following conditions suggest rebalancing may be beneficial:
|
|
198
|
+
|
|
199
|
+
[x] Single position >40% of portfolio
|
|
200
|
+
[ ] Risk score >60 in any vault
|
|
201
|
+
[x] APR underperformance >30% for 30+ days
|
|
202
|
+
[ ] Vault TVL declined >50%
|
|
203
|
+
|
|
204
|
+
SUGGESTED ACTIONS
|
|
205
|
+
-----------------
|
|
206
|
+
1. [Priority action 1]
|
|
207
|
+
2. [Priority action 2]
|
|
208
|
+
|
|
209
|
+
NEXT REVIEW
|
|
210
|
+
-----------
|
|
211
|
+
Recommended: [Date - typically 30 days]
|
|
212
|
+
\`\`\`
|
|
213
|
+
|
|
214
|
+
## Rebalancing Decision Framework
|
|
215
|
+
|
|
216
|
+
### When to Consider Rebalancing
|
|
217
|
+
|
|
218
|
+
**Strong Signals** (Consider immediate action):
|
|
219
|
+
- Single position grew to >50% of portfolio
|
|
220
|
+
- Vault risk score increased >30 points
|
|
221
|
+
- Curator issues or reputation concerns
|
|
222
|
+
- Persistent underperformance (>50% below target for 60+ days)
|
|
223
|
+
|
|
224
|
+
**Moderate Signals** (Monitor and plan):
|
|
225
|
+
- Single position at 35-50% of portfolio
|
|
226
|
+
- Risk score increased 15-30 points
|
|
227
|
+
- Moderate underperformance (30-50% below target)
|
|
228
|
+
- New vaults offering better risk/return
|
|
229
|
+
|
|
230
|
+
**Weak Signals** (Note for next review):
|
|
231
|
+
- Minor position drift (<35% concentration)
|
|
232
|
+
- Small risk score changes (<15 points)
|
|
233
|
+
- Temporary underperformance (<30 days)
|
|
234
|
+
|
|
235
|
+
### Rebalancing Considerations
|
|
236
|
+
|
|
237
|
+
Before suggesting rebalancing:
|
|
238
|
+
1. **Transaction costs**: Factor in gas fees and slippage
|
|
239
|
+
2. **Tax implications**: Note potential taxable events
|
|
240
|
+
3. **Timing**: Consider market conditions
|
|
241
|
+
4. **Lock-ups**: Check vault exit conditions
|
|
242
|
+
|
|
243
|
+
${COMMUNICATION_GUIDELINES}
|
|
244
|
+
|
|
245
|
+
## Post-Review Guidance
|
|
246
|
+
|
|
247
|
+
### Immediate Actions
|
|
248
|
+
1. Document key findings for future reference
|
|
249
|
+
2. Set reminder for next review (30 days recommended)
|
|
250
|
+
3. Monitor any flagged concerns weekly
|
|
251
|
+
|
|
252
|
+
### Ongoing Monitoring
|
|
253
|
+
- Check vault performance weekly
|
|
254
|
+
- Review risk scores bi-weekly
|
|
255
|
+
- Full portfolio review monthly or quarterly`;
|
|
256
|
+
/**
|
|
257
|
+
* Review framework resource
|
|
258
|
+
*/
|
|
259
|
+
const REVIEW_FRAMEWORK = `# Portfolio Review Framework
|
|
260
|
+
|
|
261
|
+
## Review Checklist
|
|
262
|
+
|
|
263
|
+
### Phase 1: Data Collection
|
|
264
|
+
- [ ] Retrieve current portfolio positions
|
|
265
|
+
- [ ] Note entry prices/dates if available
|
|
266
|
+
- [ ] Identify any pending deposits/withdrawals
|
|
267
|
+
|
|
268
|
+
### Phase 2: Risk Assessment
|
|
269
|
+
- [ ] Calculate weighted average risk score
|
|
270
|
+
- [ ] Identify concentration risks
|
|
271
|
+
- [ ] Check diversification across:
|
|
272
|
+
- [ ] Asset types (stablecoins, ETH, BTC, etc.)
|
|
273
|
+
- [ ] Chains (Ethereum, Arbitrum, etc.)
|
|
274
|
+
- [ ] Curators (strategy managers)
|
|
275
|
+
- [ ] Strategy types (lending, LP, derivatives)
|
|
276
|
+
|
|
277
|
+
### Phase 3: Performance Review
|
|
278
|
+
- [ ] Calculate absolute returns (USD)
|
|
279
|
+
- [ ] Calculate relative returns (%)
|
|
280
|
+
- [ ] Compare to expected APR
|
|
281
|
+
- [ ] Identify outperformers and underperformers
|
|
282
|
+
|
|
283
|
+
### Phase 4: Forward Assessment
|
|
284
|
+
- [ ] Review yield predictions
|
|
285
|
+
- [ ] Assess confidence levels
|
|
286
|
+
- [ ] Note any market conditions affecting outlook
|
|
287
|
+
|
|
288
|
+
### Phase 5: Action Planning
|
|
289
|
+
- [ ] Identify rebalancing opportunities
|
|
290
|
+
- [ ] Calculate potential improvements
|
|
291
|
+
- [ ] Consider transaction costs
|
|
292
|
+
- [ ] Prioritize actions
|
|
293
|
+
|
|
294
|
+
## Key Metrics to Track
|
|
295
|
+
|
|
296
|
+
| Metric | How to Calculate | Target |
|
|
297
|
+
|--------|------------------|--------|
|
|
298
|
+
| Portfolio Concentration | Largest position % | <40% |
|
|
299
|
+
| Risk-Weighted Return | Return / Risk Score | Maximize |
|
|
300
|
+
| Diversification Score | # unique assets/chains/curators | High |
|
|
301
|
+
| APR Achievement | Realized APR / Expected APR | >90% |
|
|
302
|
+
| Risk Stability | Risk score change (30d) | <15 points |
|
|
303
|
+
|
|
304
|
+
## Review Frequency Guide
|
|
305
|
+
|
|
306
|
+
| Portfolio Size | Recommended Frequency |
|
|
307
|
+
|----------------|----------------------|
|
|
308
|
+
| <$10K | Quarterly |
|
|
309
|
+
| $10K-$50K | Monthly |
|
|
310
|
+
| $50K-$100K | Bi-weekly |
|
|
311
|
+
| >$100K | Weekly |
|
|
312
|
+
|
|
313
|
+
## Red Flags to Always Address
|
|
314
|
+
|
|
315
|
+
1. **Single vault >50% of portfolio**
|
|
316
|
+
- Immediate diversification recommended
|
|
317
|
+
|
|
318
|
+
2. **Risk score >70 in any vault**
|
|
319
|
+
- Review and consider reduction
|
|
320
|
+
|
|
321
|
+
3. **APR at 0% for >7 days**
|
|
322
|
+
- Investigate vault health
|
|
323
|
+
|
|
324
|
+
4. **TVL down >50% in 30 days**
|
|
325
|
+
- Assess liquidity risk
|
|
326
|
+
|
|
327
|
+
5. **Curator issues**
|
|
328
|
+
- Research and consider exit`;
|
|
329
|
+
/**
|
|
330
|
+
* Rebalancing criteria resource
|
|
331
|
+
*/
|
|
332
|
+
const REBALANCING_CRITERIA = `# Rebalancing Criteria Guide
|
|
333
|
+
|
|
334
|
+
## Trigger Thresholds
|
|
335
|
+
|
|
336
|
+
### Concentration Thresholds
|
|
337
|
+
| Level | Single Vault % | Action |
|
|
338
|
+
|-------|----------------|--------|
|
|
339
|
+
| Acceptable | <30% | No action |
|
|
340
|
+
| Monitor | 30-40% | Note for next review |
|
|
341
|
+
| Attention | 40-50% | Plan rebalancing |
|
|
342
|
+
| Urgent | >50% | Immediate consideration |
|
|
343
|
+
|
|
344
|
+
### Risk Score Thresholds
|
|
345
|
+
| Level | Score Change | Action |
|
|
346
|
+
|-------|--------------|--------|
|
|
347
|
+
| Stable | <10 points | No action |
|
|
348
|
+
| Drifting | 10-20 points | Monitor |
|
|
349
|
+
| Elevated | 20-30 points | Review position |
|
|
350
|
+
| Critical | >30 points | Consider reduction |
|
|
351
|
+
|
|
352
|
+
### Performance Thresholds
|
|
353
|
+
| Level | vs Expected APR | Duration | Action |
|
|
354
|
+
|-------|-----------------|----------|--------|
|
|
355
|
+
| Normal | >90% | - | No action |
|
|
356
|
+
| Underperforming | 70-90% | <30 days | Monitor |
|
|
357
|
+
| Underperforming | 70-90% | >30 days | Review |
|
|
358
|
+
| Significant | <70% | >30 days | Consider exit |
|
|
359
|
+
| Critical | <50% | >14 days | Urgent review |
|
|
360
|
+
|
|
361
|
+
## Rebalancing Strategies
|
|
362
|
+
|
|
363
|
+
### Conservative Approach
|
|
364
|
+
- Threshold: 50% concentration trigger
|
|
365
|
+
- Action: Gradual rebalancing over 2-4 transactions
|
|
366
|
+
- Goal: No single position >30%
|
|
367
|
+
|
|
368
|
+
### Moderate Approach
|
|
369
|
+
- Threshold: 40% concentration trigger
|
|
370
|
+
- Action: Rebalance when threshold crossed
|
|
371
|
+
- Goal: No single position >25%
|
|
372
|
+
|
|
373
|
+
### Active Approach
|
|
374
|
+
- Threshold: 30% concentration trigger
|
|
375
|
+
- Action: Regular optimization
|
|
376
|
+
- Goal: Target allocation maintained
|
|
377
|
+
|
|
378
|
+
## Cost Considerations
|
|
379
|
+
|
|
380
|
+
### Transaction Costs to Factor
|
|
381
|
+
1. **Gas fees**: Estimate based on current network conditions
|
|
382
|
+
2. **Slippage**: Larger positions may have higher slippage
|
|
383
|
+
3. **Exit fees**: Some vaults may have redemption fees
|
|
384
|
+
|
|
385
|
+
### Cost-Benefit Analysis
|
|
386
|
+
\`\`\`
|
|
387
|
+
Net Benefit = Expected Improvement - Transaction Costs
|
|
388
|
+
|
|
389
|
+
Only rebalance if:
|
|
390
|
+
- Net Benefit > 0 for projected holding period
|
|
391
|
+
- Or risk reduction justifies the cost
|
|
392
|
+
\`\`\`
|
|
393
|
+
|
|
394
|
+
## Rebalancing Process
|
|
395
|
+
|
|
396
|
+
### Step 1: Identify Opportunity
|
|
397
|
+
- Compare current vs target allocation
|
|
398
|
+
- Calculate deviation magnitude
|
|
399
|
+
|
|
400
|
+
### Step 2: Estimate Costs
|
|
401
|
+
- Get gas estimates for transactions
|
|
402
|
+
- Factor in any vault-specific fees
|
|
403
|
+
|
|
404
|
+
### Step 3: Calculate Net Benefit
|
|
405
|
+
- Project improvement in returns or risk
|
|
406
|
+
- Compare to transaction costs
|
|
407
|
+
|
|
408
|
+
### Step 4: Execute if Beneficial
|
|
409
|
+
- Start with largest deviations
|
|
410
|
+
- Consider batching transactions
|
|
411
|
+
- Monitor execution for slippage
|
|
412
|
+
|
|
413
|
+
### Step 5: Document
|
|
414
|
+
- Record rationale for change
|
|
415
|
+
- Note new allocation
|
|
416
|
+
- Set next review date`;
|
|
417
|
+
/**
|
|
418
|
+
* Lagoon Portfolio Review Skill Definition
|
|
419
|
+
*/
|
|
420
|
+
export const lagoonPortfolioReviewSkill = {
|
|
421
|
+
name: 'lagoon-portfolio-review',
|
|
422
|
+
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.',
|
|
423
|
+
triggers: [
|
|
424
|
+
'portfolio review',
|
|
425
|
+
'review my portfolio',
|
|
426
|
+
'portfolio health',
|
|
427
|
+
'check my portfolio',
|
|
428
|
+
'portfolio analysis',
|
|
429
|
+
'how is my portfolio',
|
|
430
|
+
'position check',
|
|
431
|
+
'check my positions',
|
|
432
|
+
'my vaults',
|
|
433
|
+
'my holdings',
|
|
434
|
+
'rebalance',
|
|
435
|
+
'should i rebalance',
|
|
436
|
+
'portfolio optimization',
|
|
437
|
+
'optimize my portfolio',
|
|
438
|
+
'portfolio performance',
|
|
439
|
+
'how are my investments doing',
|
|
440
|
+
'portfolio assessment',
|
|
441
|
+
'quarterly review',
|
|
442
|
+
],
|
|
443
|
+
audience: 'customer-existing',
|
|
444
|
+
instructions: INSTRUCTIONS,
|
|
445
|
+
resources: {
|
|
446
|
+
framework: REVIEW_FRAMEWORK,
|
|
447
|
+
rebalancing: REBALANCING_CRITERIA,
|
|
448
|
+
},
|
|
449
|
+
metadata: {
|
|
450
|
+
version: '1.0.0',
|
|
451
|
+
category: 'portfolio',
|
|
452
|
+
primaryTools: [
|
|
453
|
+
'get_user_portfolio',
|
|
454
|
+
'analyze_risk',
|
|
455
|
+
'get_vault_performance',
|
|
456
|
+
'predict_yield',
|
|
457
|
+
'optimize_portfolio',
|
|
458
|
+
],
|
|
459
|
+
estimatedTokens: 3200,
|
|
460
|
+
lastUpdated: '2024-12-15',
|
|
461
|
+
},
|
|
462
|
+
};
|
|
463
|
+
export default lagoonPortfolioReviewSkill;
|
|
464
|
+
//# sourceMappingURL=portfolio-review.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-review.js","sourceRoot":"","sources":["../../src/skills/portfolio-review.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE3E;;GAEG;AACH,MAAM,YAAY,GAAG;;;;EAInB,kBAAkB,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkOvB,wBAAwB;;;;;;;;;;;;6CAYmB,CAAC;AAE9C;;GAEG;AACH,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAqEO,CAAC;AAEjC;;GAEG;AACH,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoFN,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAgB;IACrD,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,iPAAiP;IACnP,QAAQ,EAAE;QACR,kBAAkB;QAClB,qBAAqB;QACrB,kBAAkB;QAClB,oBAAoB;QACpB,oBAAoB;QACpB,qBAAqB;QACrB,gBAAgB;QAChB,oBAAoB;QACpB,WAAW;QACX,aAAa;QACb,WAAW;QACX,oBAAoB;QACpB,wBAAwB;QACxB,uBAAuB;QACvB,uBAAuB;QACvB,8BAA8B;QAC9B,sBAAsB;QACtB,kBAAkB;KACnB;IACD,QAAQ,EAAE,mBAAmB;IAC7B,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE;QACT,SAAS,EAAE,gBAAgB;QAC3B,WAAW,EAAE,oBAAoB;KAClC;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE;YACZ,oBAAoB;YACpB,cAAc;YACd,uBAAuB;YACvB,eAAe;YACf,oBAAoB;SACrB;QACD,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,YAAY;KAC1B;CACF,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lagoon Protocol Health Skill
|
|
3
|
+
*
|
|
4
|
+
* Enables internal operations team to monitor protocol-wide KPIs,
|
|
5
|
+
* identify trends, generate executive summaries, and flag at-risk vaults.
|
|
6
|
+
*
|
|
7
|
+
* @module skills/protocol-health
|
|
8
|
+
*/
|
|
9
|
+
import type { LagoonSkill } from './types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Lagoon Protocol Health Skill Definition
|
|
12
|
+
*/
|
|
13
|
+
export declare const lagoonProtocolHealthSkill: LagoonSkill;
|
|
14
|
+
export default lagoonProtocolHealthSkill;
|
|
15
|
+
//# sourceMappingURL=protocol-health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol-health.d.ts","sourceRoot":"","sources":["../../src/skills/protocol-health.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAoZ9C;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,WAuCvC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|