@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.
- 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/dist/tools/discover-tools.d.ts +44 -0
- package/dist/tools/discover-tools.d.ts.map +1 -0
- package/dist/tools/discover-tools.js +108 -0
- package/dist/tools/discover-tools.js.map +1 -0
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +12 -2
- package/dist/tools/registry.js.map +1 -1
- package/dist/utils/validators.d.ts +2 -2
- package/dist/utils/validators.d.ts.map +1 -1
- package/dist/utils/validators.js +2 -1
- package/dist/utils/validators.js.map +1 -1
- 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,451 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* Main skill instructions
|
|
11
|
+
*/
|
|
12
|
+
const INSTRUCTIONS = `# Lagoon Protocol Health: KPI Monitoring Guide
|
|
13
|
+
|
|
14
|
+
You are a protocol analytics specialist helping the Lagoon operations team monitor protocol health, identify trends, and generate executive summaries.
|
|
15
|
+
|
|
16
|
+
## When This Skill Activates
|
|
17
|
+
|
|
18
|
+
This skill is relevant when internal users:
|
|
19
|
+
- Request protocol-wide metrics or KPIs
|
|
20
|
+
- Ask about TVL trends, vault growth, or protocol performance
|
|
21
|
+
- Need executive summaries or reports
|
|
22
|
+
- Want to identify underperforming or at-risk vaults
|
|
23
|
+
- Request comparisons across time periods
|
|
24
|
+
|
|
25
|
+
## Step 1: Define Monitoring Scope
|
|
26
|
+
|
|
27
|
+
### Time Period Selection
|
|
28
|
+
> "What time period should this analysis cover?"
|
|
29
|
+
- **Daily**: Last 24 hours vs previous day
|
|
30
|
+
- **Weekly**: Last 7 days vs previous week
|
|
31
|
+
- **Monthly**: Last 30 days vs previous month
|
|
32
|
+
- **Custom**: Specific date range
|
|
33
|
+
|
|
34
|
+
### Metric Focus
|
|
35
|
+
> "Which KPIs are most important for this review?"
|
|
36
|
+
- **TVL**: Total protocol TVL, growth rate, distribution
|
|
37
|
+
- **Activity**: Deposits, redemptions, active vaults
|
|
38
|
+
- **Performance**: APR distribution, yield delivery
|
|
39
|
+
- **Risk**: Risk score distribution, alerts
|
|
40
|
+
|
|
41
|
+
## Step 2: Tool Workflow Sequence
|
|
42
|
+
|
|
43
|
+
### 2.1 Protocol Overview
|
|
44
|
+
**Tool**: \`search_vaults\`
|
|
45
|
+
|
|
46
|
+
Fetch all active vaults for aggregate analysis:
|
|
47
|
+
\`\`\`json
|
|
48
|
+
{
|
|
49
|
+
"filters": { "isVisible_eq": true },
|
|
50
|
+
"orderBy": "totalAssetsUsd",
|
|
51
|
+
"orderDirection": "desc",
|
|
52
|
+
"maxResults": 50,
|
|
53
|
+
"responseFormat": "summary"
|
|
54
|
+
}
|
|
55
|
+
\`\`\`
|
|
56
|
+
|
|
57
|
+
Present aggregate metrics:
|
|
58
|
+
| Metric | Value |
|
|
59
|
+
|--------|-------|
|
|
60
|
+
| Total Vaults | [N] |
|
|
61
|
+
| Total TVL | $[X]M |
|
|
62
|
+
| Avg APR | [X]% |
|
|
63
|
+
|
|
64
|
+
### 2.2 Performance Deep Dive
|
|
65
|
+
**Tool**: \`get_vault_performance\`
|
|
66
|
+
|
|
67
|
+
For top 10 vaults by TVL, analyze performance trends:
|
|
68
|
+
\`\`\`json
|
|
69
|
+
{
|
|
70
|
+
"vaultAddress": "0x...",
|
|
71
|
+
"chainId": 1,
|
|
72
|
+
"timeRange": "30d",
|
|
73
|
+
"responseFormat": "summary"
|
|
74
|
+
}
|
|
75
|
+
\`\`\`
|
|
76
|
+
|
|
77
|
+
### 2.3 Risk Distribution
|
|
78
|
+
**Tool**: \`analyze_risk\`
|
|
79
|
+
|
|
80
|
+
Sample risk scores across vault categories:
|
|
81
|
+
\`\`\`json
|
|
82
|
+
{
|
|
83
|
+
"vaultAddress": "0x...",
|
|
84
|
+
"chainId": 1,
|
|
85
|
+
"responseFormat": "summary"
|
|
86
|
+
}
|
|
87
|
+
\`\`\`
|
|
88
|
+
|
|
89
|
+
Categorize vaults by risk level:
|
|
90
|
+
| Risk Level | Count | % of TVL |
|
|
91
|
+
|------------|-------|----------|
|
|
92
|
+
| Low (<30) | [N] | [X]% |
|
|
93
|
+
| Medium (30-60) | [N] | [X]% |
|
|
94
|
+
| High (>60) | [N] | [X]% |
|
|
95
|
+
|
|
96
|
+
## Step 3: KPI Framework
|
|
97
|
+
|
|
98
|
+
### Core Metrics Dashboard
|
|
99
|
+
|
|
100
|
+
| KPI | Current | Trend | Status |
|
|
101
|
+
|-----|---------|-------|--------|
|
|
102
|
+
| Total TVL | $[X]M | [+/-X]% | [GREEN/YELLOW/RED] |
|
|
103
|
+
| Active Vaults | [N] | [+/-N] | [GREEN/YELLOW/RED] |
|
|
104
|
+
| Avg Risk Score | [X] | [+/-X] | [GREEN/YELLOW/RED] |
|
|
105
|
+
| High-Risk Vaults | [N]% | [+/-X]% | [GREEN/YELLOW/RED] |
|
|
106
|
+
|
|
107
|
+
### Alert Conditions
|
|
108
|
+
|
|
109
|
+
**RED ALERT** (Immediate action required):
|
|
110
|
+
- TVL drop >10% in 24h
|
|
111
|
+
- Any vault risk score >80
|
|
112
|
+
- Vault with >$1M TVL showing anomalous activity
|
|
113
|
+
- APR dropping to 0% unexpectedly
|
|
114
|
+
|
|
115
|
+
**YELLOW WARNING** (Monitor closely):
|
|
116
|
+
- TVL drop >5% in 7d
|
|
117
|
+
- Vault risk score increased >20 points
|
|
118
|
+
- APR variance >30% from 30d average
|
|
119
|
+
- New vault with rapid TVL growth (potential instability)
|
|
120
|
+
|
|
121
|
+
**GREEN HEALTHY**:
|
|
122
|
+
- All metrics within thresholds
|
|
123
|
+
- Positive or stable TVL trend
|
|
124
|
+
- Risk scores stable or improving
|
|
125
|
+
- Consistent APR delivery
|
|
126
|
+
|
|
127
|
+
## Step 4: Report Generation
|
|
128
|
+
|
|
129
|
+
### Executive Summary Template
|
|
130
|
+
\`\`\`
|
|
131
|
+
LAGOON PROTOCOL HEALTH REPORT
|
|
132
|
+
=============================
|
|
133
|
+
Period: [Start Date] - [End Date]
|
|
134
|
+
Generated: [Timestamp]
|
|
135
|
+
|
|
136
|
+
KEY METRICS
|
|
137
|
+
-----------
|
|
138
|
+
Protocol TVL: $[X]M ([+/-X]% vs prior period)
|
|
139
|
+
Active Vaults: [N] ([+/-N] vs prior period)
|
|
140
|
+
Avg APR: [X]% ([+/-X]% vs prior period)
|
|
141
|
+
Avg Risk Score: [X]/100 ([+/-X] vs prior period)
|
|
142
|
+
|
|
143
|
+
TOP PERFORMERS (by TVL growth)
|
|
144
|
+
------------------------------
|
|
145
|
+
1. [Vault Name]: +$[X]M ([+X]%)
|
|
146
|
+
2. [Vault Name]: +$[X]M ([+X]%)
|
|
147
|
+
3. [Vault Name]: +$[X]M ([+X]%)
|
|
148
|
+
|
|
149
|
+
CONCERNS
|
|
150
|
+
--------
|
|
151
|
+
- [Issue 1 if any]
|
|
152
|
+
- [Issue 2 if any]
|
|
153
|
+
|
|
154
|
+
WATCHLIST
|
|
155
|
+
---------
|
|
156
|
+
- [Vault requiring attention]
|
|
157
|
+
|
|
158
|
+
RECOMMENDATIONS
|
|
159
|
+
---------------
|
|
160
|
+
- [Action 1]
|
|
161
|
+
- [Action 2]
|
|
162
|
+
\`\`\`
|
|
163
|
+
|
|
164
|
+
### Daily Standup Format
|
|
165
|
+
\`\`\`
|
|
166
|
+
Date: [YYYY-MM-DD]
|
|
167
|
+
TVL: $[X]M ([+/-X]% 24h)
|
|
168
|
+
Alerts: [None / List]
|
|
169
|
+
Focus: [Key item for today]
|
|
170
|
+
\`\`\`
|
|
171
|
+
|
|
172
|
+
### Weekly Summary Format
|
|
173
|
+
\`\`\`
|
|
174
|
+
Week of: [Date Range]
|
|
175
|
+
|
|
176
|
+
TVL TREND
|
|
177
|
+
- Start: $[X]M
|
|
178
|
+
- End: $[X]M
|
|
179
|
+
- Change: [+/-X]%
|
|
180
|
+
|
|
181
|
+
TOP PERFORMERS
|
|
182
|
+
1. [Vault]: [APR]% APR, $[TVL] TVL
|
|
183
|
+
2. [Vault]: [APR]% APR, $[TVL] TVL
|
|
184
|
+
|
|
185
|
+
WATCHLIST
|
|
186
|
+
- [Vault]: [Reason]
|
|
187
|
+
|
|
188
|
+
NEXT WEEK FOCUS
|
|
189
|
+
- [Priority 1]
|
|
190
|
+
- [Priority 2]
|
|
191
|
+
\`\`\`
|
|
192
|
+
|
|
193
|
+
## Communication Guidelines
|
|
194
|
+
|
|
195
|
+
### Internal Reporting Standards
|
|
196
|
+
- Use precise numbers, not approximations
|
|
197
|
+
- Include period-over-period comparisons
|
|
198
|
+
- Flag any data quality issues
|
|
199
|
+
- Note any vaults excluded from analysis and why
|
|
200
|
+
- Prioritize actionable insights over raw data
|
|
201
|
+
- Use tables for easy scanning
|
|
202
|
+
- Highlight anomalies prominently`;
|
|
203
|
+
/**
|
|
204
|
+
* KPI thresholds resource
|
|
205
|
+
*/
|
|
206
|
+
const KPI_THRESHOLDS = `# KPI Thresholds Reference
|
|
207
|
+
|
|
208
|
+
## TVL Thresholds
|
|
209
|
+
|
|
210
|
+
| Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
|
|
211
|
+
|--------|-----------------|------------------|----------------|
|
|
212
|
+
| Protocol TVL Growth (7d) | >0% | -5% to 0% | <-5% |
|
|
213
|
+
| Protocol TVL Growth (30d) | >5% | 0% to 5% | <0% |
|
|
214
|
+
| Single Vault TVL Drop (24h) | <-5% | -5% to -15% | >-15% |
|
|
215
|
+
| Single Vault TVL Drop (7d) | <-10% | -10% to -30% | >-30% |
|
|
216
|
+
| Vault TVL Minimum | >$100K | $50K-$100K | <$50K |
|
|
217
|
+
|
|
218
|
+
## Risk Thresholds
|
|
219
|
+
|
|
220
|
+
| Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
|
|
221
|
+
|--------|-----------------|------------------|----------------|
|
|
222
|
+
| Avg Protocol Risk Score | <40 | 40-60 | >60 |
|
|
223
|
+
| High-Risk Vault % (score >60) | <10% | 10-20% | >20% |
|
|
224
|
+
| Risk Score Change (7d) | <+10 | +10 to +20 | >+20 |
|
|
225
|
+
| Max Single Vault Risk | <70 | 70-80 | >80 |
|
|
226
|
+
|
|
227
|
+
## Performance Thresholds
|
|
228
|
+
|
|
229
|
+
| Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
|
|
230
|
+
|--------|-----------------|------------------|----------------|
|
|
231
|
+
| APR Delivery Rate | >90% | 70-90% | <70% |
|
|
232
|
+
| APR Volatility (30d CV) | <20% | 20-40% | >40% |
|
|
233
|
+
| Vaults with APR = 0 | 0 | 1-2 | >2 |
|
|
234
|
+
|
|
235
|
+
## Activity Thresholds
|
|
236
|
+
|
|
237
|
+
| Metric | Healthy (Green) | Warning (Yellow) | Critical (Red) |
|
|
238
|
+
|--------|-----------------|------------------|----------------|
|
|
239
|
+
| Daily Active Vaults | >80% | 60-80% | <60% |
|
|
240
|
+
| Weekly New Deposits | >10 | 5-10 | <5 |
|
|
241
|
+
| Deposit/Redemption Ratio | >0.8 | 0.5-0.8 | <0.5 |
|
|
242
|
+
|
|
243
|
+
## Escalation Procedures
|
|
244
|
+
|
|
245
|
+
### Red Alert Actions
|
|
246
|
+
1. Notify ops lead immediately via Slack #lagoon-alerts
|
|
247
|
+
2. Identify affected vaults and users
|
|
248
|
+
3. Prepare incident report within 1 hour
|
|
249
|
+
4. Schedule emergency review if systemic issue
|
|
250
|
+
|
|
251
|
+
### Yellow Warning Actions
|
|
252
|
+
1. Add to daily standup agenda
|
|
253
|
+
2. Monitor for escalation over 24-48 hours
|
|
254
|
+
3. Document in weekly report
|
|
255
|
+
4. Consider proactive user communication`;
|
|
256
|
+
/**
|
|
257
|
+
* Report templates resource
|
|
258
|
+
*/
|
|
259
|
+
const REPORT_TEMPLATES = `# Report Templates
|
|
260
|
+
|
|
261
|
+
## Daily Standup Report
|
|
262
|
+
|
|
263
|
+
\`\`\`markdown
|
|
264
|
+
# Daily Protocol Health - [YYYY-MM-DD]
|
|
265
|
+
|
|
266
|
+
## Quick Stats
|
|
267
|
+
| Metric | Value | 24h Change |
|
|
268
|
+
|--------|-------|------------|
|
|
269
|
+
| TVL | $[X]M | [+/-X]% |
|
|
270
|
+
| Vaults | [N] | [+/-N] |
|
|
271
|
+
| Avg APR | [X]% | [+/-X]% |
|
|
272
|
+
|
|
273
|
+
## Alerts
|
|
274
|
+
- [List any red/yellow alerts or "No alerts"]
|
|
275
|
+
|
|
276
|
+
## Today's Focus
|
|
277
|
+
- [Key priority or "Business as usual"]
|
|
278
|
+
|
|
279
|
+
## Notes
|
|
280
|
+
- [Any relevant observations]
|
|
281
|
+
\`\`\`
|
|
282
|
+
|
|
283
|
+
## Weekly Summary Report
|
|
284
|
+
|
|
285
|
+
\`\`\`markdown
|
|
286
|
+
# Weekly Protocol Health Summary
|
|
287
|
+
Week: [Start Date] - [End Date]
|
|
288
|
+
|
|
289
|
+
## Executive Summary
|
|
290
|
+
[2-3 sentence overview of the week]
|
|
291
|
+
|
|
292
|
+
## KPI Dashboard
|
|
293
|
+
| KPI | Start | End | Change | Status |
|
|
294
|
+
|-----|-------|-----|--------|--------|
|
|
295
|
+
| TVL | $[X]M | $[X]M | [+/-X]% | [STATUS] |
|
|
296
|
+
| Vaults | [N] | [N] | [+/-N] | [STATUS] |
|
|
297
|
+
| Avg Risk | [X] | [X] | [+/-X] | [STATUS] |
|
|
298
|
+
|
|
299
|
+
## Top Performers
|
|
300
|
+
1. **[Vault Name]**: [Highlight]
|
|
301
|
+
2. **[Vault Name]**: [Highlight]
|
|
302
|
+
|
|
303
|
+
## Areas of Concern
|
|
304
|
+
- [Concern 1]
|
|
305
|
+
- [Concern 2]
|
|
306
|
+
|
|
307
|
+
## Watchlist for Next Week
|
|
308
|
+
- [Item 1]
|
|
309
|
+
- [Item 2]
|
|
310
|
+
|
|
311
|
+
## Action Items
|
|
312
|
+
- [ ] [Action 1]
|
|
313
|
+
- [ ] [Action 2]
|
|
314
|
+
\`\`\`
|
|
315
|
+
|
|
316
|
+
## Monthly Executive Report
|
|
317
|
+
|
|
318
|
+
\`\`\`markdown
|
|
319
|
+
# Monthly Protocol Health Report
|
|
320
|
+
Month: [Month Year]
|
|
321
|
+
|
|
322
|
+
## Executive Summary
|
|
323
|
+
[Paragraph summarizing month's performance]
|
|
324
|
+
|
|
325
|
+
## Key Metrics
|
|
326
|
+
|
|
327
|
+
### TVL Growth
|
|
328
|
+
- Start of Month: $[X]M
|
|
329
|
+
- End of Month: $[X]M
|
|
330
|
+
- Net Change: [+/-$X]M ([+/-X]%)
|
|
331
|
+
- Peak: $[X]M on [Date]
|
|
332
|
+
- Trough: $[X]M on [Date]
|
|
333
|
+
|
|
334
|
+
### Vault Activity
|
|
335
|
+
- Total Vaults: [N]
|
|
336
|
+
- New Vaults: [N]
|
|
337
|
+
- Inactive Vaults: [N]
|
|
338
|
+
|
|
339
|
+
### Performance Distribution
|
|
340
|
+
| APR Range | Vault Count | TVL Share |
|
|
341
|
+
|-----------|-------------|-----------|
|
|
342
|
+
| >20% | [N] | [X]% |
|
|
343
|
+
| 10-20% | [N] | [X]% |
|
|
344
|
+
| 5-10% | [N] | [X]% |
|
|
345
|
+
| <5% | [N] | [X]% |
|
|
346
|
+
|
|
347
|
+
### Risk Overview
|
|
348
|
+
| Risk Level | Vault Count | TVL Share |
|
|
349
|
+
|------------|-------------|-----------|
|
|
350
|
+
| Low (<30) | [N] | [X]% |
|
|
351
|
+
| Medium (30-60) | [N] | [X]% |
|
|
352
|
+
| High (>60) | [N] | [X]% |
|
|
353
|
+
|
|
354
|
+
## Highlights
|
|
355
|
+
- [Major achievement 1]
|
|
356
|
+
- [Major achievement 2]
|
|
357
|
+
|
|
358
|
+
## Incidents
|
|
359
|
+
- [Incident 1 if any, with resolution]
|
|
360
|
+
|
|
361
|
+
## Recommendations
|
|
362
|
+
1. [Strategic recommendation 1]
|
|
363
|
+
2. [Strategic recommendation 2]
|
|
364
|
+
|
|
365
|
+
## Next Month Focus
|
|
366
|
+
- [Priority 1]
|
|
367
|
+
- [Priority 2]
|
|
368
|
+
\`\`\`
|
|
369
|
+
|
|
370
|
+
## Ad-Hoc Investigation Template
|
|
371
|
+
|
|
372
|
+
\`\`\`markdown
|
|
373
|
+
# Investigation: [Issue Title]
|
|
374
|
+
Date: [YYYY-MM-DD]
|
|
375
|
+
Analyst: [Name]
|
|
376
|
+
|
|
377
|
+
## Issue Summary
|
|
378
|
+
[Brief description of the issue]
|
|
379
|
+
|
|
380
|
+
## Affected Components
|
|
381
|
+
- Vault(s): [List]
|
|
382
|
+
- Chain(s): [List]
|
|
383
|
+
- Users: [Estimate]
|
|
384
|
+
|
|
385
|
+
## Timeline
|
|
386
|
+
| Time | Event |
|
|
387
|
+
|------|-------|
|
|
388
|
+
| [Time] | [Event] |
|
|
389
|
+
|
|
390
|
+
## Analysis
|
|
391
|
+
[Detailed analysis]
|
|
392
|
+
|
|
393
|
+
## Root Cause
|
|
394
|
+
[Identified cause or "Under investigation"]
|
|
395
|
+
|
|
396
|
+
## Impact Assessment
|
|
397
|
+
- TVL Impact: $[X]
|
|
398
|
+
- User Impact: [Description]
|
|
399
|
+
- Reputation Impact: [Low/Medium/High]
|
|
400
|
+
|
|
401
|
+
## Recommended Actions
|
|
402
|
+
1. [Action 1]
|
|
403
|
+
2. [Action 2]
|
|
404
|
+
|
|
405
|
+
## Status
|
|
406
|
+
[Open/Resolved/Monitoring]
|
|
407
|
+
\`\`\``;
|
|
408
|
+
/**
|
|
409
|
+
* Lagoon Protocol Health Skill Definition
|
|
410
|
+
*/
|
|
411
|
+
export const lagoonProtocolHealthSkill = {
|
|
412
|
+
name: 'lagoon-protocol-health',
|
|
413
|
+
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.',
|
|
414
|
+
triggers: [
|
|
415
|
+
'protocol health',
|
|
416
|
+
'protocol metrics',
|
|
417
|
+
'protocol kpi',
|
|
418
|
+
'tvl trend',
|
|
419
|
+
'protocol overview',
|
|
420
|
+
'executive summary',
|
|
421
|
+
'protocol report',
|
|
422
|
+
'daily report',
|
|
423
|
+
'weekly report',
|
|
424
|
+
'monthly report',
|
|
425
|
+
'protocol status',
|
|
426
|
+
'vault growth',
|
|
427
|
+
'protocol performance',
|
|
428
|
+
'ops report',
|
|
429
|
+
'operations report',
|
|
430
|
+
'health check',
|
|
431
|
+
'health dashboard',
|
|
432
|
+
'kpi review',
|
|
433
|
+
'how is lagoon doing',
|
|
434
|
+
'protocol analytics',
|
|
435
|
+
],
|
|
436
|
+
audience: 'internal-ops',
|
|
437
|
+
instructions: INSTRUCTIONS,
|
|
438
|
+
resources: {
|
|
439
|
+
thresholds: KPI_THRESHOLDS,
|
|
440
|
+
templates: REPORT_TEMPLATES,
|
|
441
|
+
},
|
|
442
|
+
metadata: {
|
|
443
|
+
version: '1.0.0',
|
|
444
|
+
category: 'operations',
|
|
445
|
+
primaryTools: ['search_vaults', 'get_vault_performance', 'analyze_risk'],
|
|
446
|
+
estimatedTokens: 2800,
|
|
447
|
+
lastUpdated: '2024-12-15',
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
export default lagoonProtocolHealthSkill;
|
|
451
|
+
//# sourceMappingURL=protocol-health.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol-health.js","sourceRoot":"","sources":["../../src/skills/protocol-health.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA8La,CAAC;AAEnC;;GAEG;AACH,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAiDkB,CAAC;AAE1C;;GAEG;AACH,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoJlB,CAAC;AAER;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAgB;IACpD,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACT,iOAAiO;IACnO,QAAQ,EAAE;QACR,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;QACd,WAAW;QACX,mBAAmB;QACnB,mBAAmB;QACnB,iBAAiB;QACjB,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,iBAAiB;QACjB,cAAc;QACd,sBAAsB;QACtB,YAAY;QACZ,mBAAmB;QACnB,cAAc;QACd,kBAAkB;QAClB,YAAY;QACZ,qBAAqB;QACrB,oBAAoB;KACrB;IACD,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE;QACT,UAAU,EAAE,cAAc;QAC1B,SAAS,EAAE,gBAAgB;KAC5B;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,CAAC,eAAe,EAAE,uBAAuB,EAAE,cAAc,CAAC;QACxE,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,YAAY;KAC1B;CACF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lagoon Risk Expert Skill
|
|
3
|
+
*
|
|
4
|
+
* Provides deep risk analysis for advanced users seeking comprehensive
|
|
5
|
+
* understanding of vault risk factors and portfolio risk exposure.
|
|
6
|
+
*
|
|
7
|
+
* @module skills/risk-expert
|
|
8
|
+
*/
|
|
9
|
+
import type { LagoonSkill } from './types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Lagoon Risk Expert Skill Definition
|
|
12
|
+
*/
|
|
13
|
+
export declare const lagoonRiskExpertSkill: LagoonSkill;
|
|
14
|
+
export default lagoonRiskExpertSkill;
|
|
15
|
+
//# sourceMappingURL=risk-expert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-expert.d.ts","sourceRoot":"","sources":["../../src/skills/risk-expert.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AA4Z9C;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,WAkCnC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|