hive-defi-research — DeFi Protocol Analysis
Answer protocol, TVL, fee, revenue, yield, stablecoin, bridge, and chain-level
DeFi questions with like-for-like, timestamped metrics.
Task toolset and identifiers
Toolset: defi_protocol_analysis. Read
hive://toolsets/defi_protocol_analysis before execution; it is authoritative
for the current output schema, material-call budget, phases, fallback
condition, and stop conditions.
- Required: protocol name/slug or chain.
- Optional: time window, metric type, yield pool, stablecoin, bridge.
Ask for a protocol slug, or choose a provider-supported slug only when the
user clearly named the protocol.
Before choosing endpoints, select exactly one matching entry from the exact
workflow's routes[]. Follow its ordered steps, use a fallback only under that
step's published condition, stop at four material calls, and preserve the
selected route_id in the typed result. The broad coverageCatalog is discovery
coverage, not an execution plan.
Procedure
- Resolve the protocol slug or chain name.
- Call
search_tools for protocol, TVL, fee/revenue, yield, stablecoin,
bridge, or chain-metric capabilities.
- Call
get_api_endpoint_schema for each endpoint before calling it.
- Pull only the metrics the question needs.
- Compare protocols only with like-for-like metrics and timestamps, and
state when a metric is unavailable or stale.
Bounded calls
- Limit protocol lists and yield pools.
- Avoid comparing TVL snapshots from different dates without a caveat.
- Mark missing fee/yield/stablecoin metrics instead of omitting them.
Worked example
User: "Compare Aave and Compound — TVL and fees, which one actually earns
more?"
search_tools → {"query": "protocol tvl fees revenue defi", "limit": 5}
get_api_endpoint_schema for the protocol-metric endpoints returned, then
invoke_api_endpoint once per protocol slug with schema-valid arguments.
- Normalize: same metric definitions, same window, same timestamps.
- Summarize the comparison in a table, with provider and
fetched_at per
metric, using the report template.
Report template
## Summary
[Protocol or chain DeFi read in one or two sentences.]
## Calls made
- Toolset: defi_protocol_analysis
- Endpoint(s): [exact endpoint names]
- Identifiers: [protocol slugs, chains, metric filters]
## Evidence
- TVL: [value + as-of]
- Fees/revenue: [value + window]
- Yields/stablecoins/bridges: [if requested]
- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]
## Caveats
[Unavailable metrics, stale snapshots, methodology differences.]
## Next action
[Compare peers, inspect a yield pool, or add token/pool diligence — only if needed.]
Gotchas
- TVL, revenue, and fees answer different questions — do not substitute one
for another.
- High APY without liquidity/risk context is not a recommendation.
- Provider methodology can differ across chains and protocols.
Evidence receipt (required)
End every Hive-backed answer with a compact receipt built from the _hive
object on each material tool response:
provider, tool, fetched_at, observed_at, cache_age_ms, and runtime_status
receipt_id, receipt_version, server/build version, and SHA-256 input/result
digests when present (self-checks, not signatures)
source, cache_status, truncated, and any warnings
- canonical chain/entity identifiers plus block, slot, transaction, or query ids
present in provider data
- material provider disagreements and how they were handled
- checks that were unavailable, gated, stale, truncated, or intentionally not run
- a
claims[] citation from each material statement to exact receipt IDs
- one
coverage[] entry for every canonical evidence phase, with each gap explained
Never turn missing evidence into a clean result, silently merge conflicting
provider values, or omit a degraded/fallback call from the receipt.
observed_at is Hive's first-observation/original cache-population time, and
cache_age_ms: 0 only means newly retrieved by Hive. Use provider time, block,
slot, transaction, or candle close for source recency; if absent, mark it
unknown. Run validate_task_result before presenting the typed workflow result;
it checks structure but cannot authenticate an invented receipt.
Runtime status handling
Treat unreliable or temporarily unavailable DeFi endpoints as degraded. Do
not silently omit a metric; mark it unavailable with the runtime status.
Hand-offs
- Token price/market questions →
hive-market-research.
- One pool's depth and trades →
hive-dex-pool-analysis.
- Protocol token risk →
hive-token-diligence or hive-security-risk.
1---2name: hive-defi-research3description: Use this skill when the user asks about DeFi protocol metrics — TVL, fees, revenue, yields, APY, stablecoin supply, bridge volume, or chain-level DeFi totals — or wants protocols compared ("Aave vs Compound", "top protocols by TVL", "best stablecoin yields"). Use it whenever the answer needs current protocol-level numbers. For token prices and venue data use hive-market-research; for a specific pool's depth use hive-dex-pool-analysis.4license: MIT5---67# hive-defi-research — DeFi Protocol Analysis89Answer protocol, TVL, fee, revenue, yield, stablecoin, bridge, and chain-level10DeFi questions with like-for-like, timestamped metrics.1112## Task toolset and identifiers1314Toolset: `defi_protocol_analysis`. Read15`hive://toolsets/defi_protocol_analysis` before execution; it is authoritative16for the current output schema, material-call budget, phases, fallback17condition, and stop conditions.1819- Required: protocol name/slug or chain.20- Optional: time window, metric type, yield pool, stablecoin, bridge.2122Ask for a protocol slug, or choose a provider-supported slug only when the23user clearly named the protocol.2425Before choosing endpoints, select exactly one matching entry from the exact26workflow's routes[]. Follow its ordered steps, use a fallback only under that27step's published condition, stop at four material calls, and preserve the28selected route_id in the typed result. The broad coverageCatalog is discovery29coverage, not an execution plan.3031## Procedure32331. Resolve the protocol slug or chain name.342. Call `search_tools` for protocol, TVL, fee/revenue, yield, stablecoin,35 bridge, or chain-metric capabilities.363. Call `get_api_endpoint_schema` for each endpoint before calling it.374. Pull only the metrics the question needs.385. Compare protocols only with like-for-like metrics and timestamps, and39 state when a metric is unavailable or stale.4041## Bounded calls4243- Limit protocol lists and yield pools.44- Avoid comparing TVL snapshots from different dates without a caveat.45- Mark missing fee/yield/stablecoin metrics instead of omitting them.4647## Worked example4849User: "Compare Aave and Compound — TVL and fees, which one actually earns50more?"51521. `search_tools` → `{"query": "protocol tvl fees revenue defi", "limit": 5}`532. `get_api_endpoint_schema` for the protocol-metric endpoints returned, then54 `invoke_api_endpoint` once per protocol slug with schema-valid arguments.553. Normalize: same metric definitions, same window, same timestamps.564. Summarize the comparison in a table, with provider and `fetched_at` per57 metric, using the report template.5859## Report template6061```markdown62## Summary63[Protocol or chain DeFi read in one or two sentences.]6465## Calls made66- Toolset: defi_protocol_analysis67- Endpoint(s): [exact endpoint names]68- Identifiers: [protocol slugs, chains, metric filters]6970## Evidence71- TVL: [value + as-of]72- Fees/revenue: [value + window]73- Yields/stablecoins/bridges: [if requested]74- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]7576## Caveats77[Unavailable metrics, stale snapshots, methodology differences.]7879## Next action80[Compare peers, inspect a yield pool, or add token/pool diligence — only if needed.]81```8283## Gotchas8485- TVL, revenue, and fees answer different questions — do not substitute one86 for another.87- High APY without liquidity/risk context is not a recommendation.88- Provider methodology can differ across chains and protocols.8990## Evidence receipt (required)9192End every Hive-backed answer with a compact receipt built from the `_hive`93object on each material tool response:9495- `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`96- `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result97 digests when present (self-checks, not signatures)98- `source`, `cache_status`, `truncated`, and any warnings99- canonical chain/entity identifiers plus block, slot, transaction, or query ids100 present in provider data101- material provider disagreements and how they were handled102- checks that were unavailable, gated, stale, truncated, or intentionally not run103- a `claims[]` citation from each material statement to exact receipt IDs104- one `coverage[]` entry for every canonical evidence phase, with each gap explained105106Never turn missing evidence into a clean result, silently merge conflicting107provider values, or omit a degraded/fallback call from the receipt.108`observed_at` is Hive's first-observation/original cache-population time, and109`cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,110slot, transaction, or candle close for source recency; if absent, mark it111unknown. Run `validate_task_result` before presenting the typed workflow result;112it checks structure but cannot authenticate an invented receipt.113114## Runtime status handling115116Treat unreliable or temporarily unavailable DeFi endpoints as `degraded`. Do117not silently omit a metric; mark it unavailable with the runtime status.118119## Hand-offs120121- Token price/market questions → `hive-market-research`.122- One pool's depth and trades → `hive-dex-pool-analysis`.123- Protocol token risk → `hive-token-diligence` or `hive-security-risk`.