@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,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
|
|
@@ -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
|
+
```
|