hive-intelligence 1.1.4 → 1.4.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 +182 -73
- package/agent-skills/.claude-plugin/plugin.json +4 -4
- package/agent-skills/.mcp.json +1 -4
- package/agent-skills/README.md +16 -10
- package/agent-skills/SKILL.md +30 -12
- package/agent-skills/package.json +1 -1
- package/agent-skills/packs/hive-build/SKILL.md +47 -19
- package/agent-skills/packs/hive-build/evals/evals.json +16 -3
- package/agent-skills/packs/hive-build/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-build-onboarding/SKILL.md +30 -37
- package/agent-skills/packs/hive-build-onboarding/evals/evals.json +1 -1
- package/agent-skills/packs/hive-build-onboarding/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-cli/SKILL.md +33 -35
- package/agent-skills/packs/hive-cli/evals/evals.json +1 -1
- package/agent-skills/packs/hive-cli/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-defi-research/SKILL.md +105 -19
- package/agent-skills/packs/hive-defi-research/evals/evals.json +6 -3
- package/agent-skills/packs/hive-defi-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-dex-pool-analysis/SKILL.md +106 -16
- package/agent-skills/packs/hive-dex-pool-analysis/evals/evals.json +5 -3
- package/agent-skills/packs/hive-dex-pool-analysis/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-market-research/SKILL.md +130 -21
- package/agent-skills/packs/hive-market-research/evals/evals.json +15 -2
- package/agent-skills/packs/hive-market-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-mcp/SKILL.md +69 -47
- package/agent-skills/packs/hive-mcp/evals/evals.json +3 -2
- package/agent-skills/packs/hive-mcp/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-mcp/references/client-install-matrix.md +62 -35
- package/agent-skills/packs/hive-mcp/references/clients.md +81 -68
- package/agent-skills/packs/hive-network-infrastructure/SKILL.md +105 -20
- package/agent-skills/packs/hive-network-infrastructure/evals/evals.json +4 -2
- package/agent-skills/packs/hive-network-infrastructure/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-nft-research/SKILL.md +105 -18
- package/agent-skills/packs/hive-nft-research/evals/evals.json +4 -2
- package/agent-skills/packs/hive-nft-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-prediction-markets/SKILL.md +108 -21
- package/agent-skills/packs/hive-prediction-markets/evals/evals.json +4 -2
- package/agent-skills/packs/hive-prediction-markets/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-query/SKILL.md +79 -33
- package/agent-skills/packs/hive-query/evals/evals.json +7 -5
- package/agent-skills/packs/hive-query/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-query/references/root-mcp-workflow.md +39 -18
- package/agent-skills/packs/hive-security-risk/SKILL.md +110 -19
- package/agent-skills/packs/hive-security-risk/evals/evals.json +4 -2
- package/agent-skills/packs/hive-security-risk/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-solana-analysis/SKILL.md +115 -19
- package/agent-skills/packs/hive-solana-analysis/evals/evals.json +4 -2
- package/agent-skills/packs/hive-solana-analysis/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +92 -47
- package/agent-skills/packs/hive-stateful-monitoring/evals/evals.json +7 -2
- package/agent-skills/packs/hive-stateful-monitoring/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-stateful-monitoring/references/b2b-subject-context.md +53 -0
- package/agent-skills/packs/hive-token-diligence/SKILL.md +119 -21
- package/agent-skills/packs/hive-token-diligence/evals/evals.json +6 -4
- package/agent-skills/packs/hive-token-diligence/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-tool-discovery/SKILL.md +48 -19
- package/agent-skills/packs/hive-tool-discovery/evals/evals.json +17 -3
- package/agent-skills/packs/hive-tool-discovery/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-tool-discovery/references/discovery-surfaces.md +31 -6
- package/agent-skills/packs/hive-wallet-investigation/SKILL.md +111 -18
- package/agent-skills/packs/hive-wallet-investigation/evals/evals.json +5 -3
- package/agent-skills/packs/hive-wallet-investigation/evals/triggers.json +50 -0
- package/agent-skills/references/agents-routing.md +17 -7
- package/agent-skills/scripts/validate-agent-skills-package.mjs +68 -8
- package/bin/hive-mcp.js +5 -5
- package/build/{alias-3OPMQF4X.js → alias-BKAVOYQV.js} +2 -2
- package/build/api-client-WMWFWXC7.js +16 -0
- package/build/{auth-Q5Q24IRI.js → auth-HRFQWQMZ.js} +3 -11
- package/build/browser-auth-KXIO5BHM.js +20 -0
- package/build/{cache-T6KC5YEY.js → cache-TBDQ7QBU.js} +2 -2
- package/build/chunk-3OZFBWFK.js +180 -0
- package/build/{chunk-POT2MBEK.js → chunk-6PC3HUAK.js} +10 -3
- package/build/{chunk-NP6NSOG2.js → chunk-725R3KLJ.js} +26 -3
- package/build/chunk-7DYHWY4Y.js +125 -0
- package/build/{chunk-ZXB53E7H.js → chunk-AEU43ACS.js} +31 -7
- package/build/chunk-AQQAPAER.js +197 -0
- package/build/chunk-EPF36Q3Z.js +71 -0
- package/build/{upgrade-DTUIHVPS.js → chunk-GHCYCBA3.js} +4 -5
- package/build/{chunk-3WYWXTNN.js → chunk-ILVPOLA7.js} +12 -3
- package/build/{chunk-VBOKVQ74.js → chunk-L326MQZP.js} +6 -5
- package/build/{chunk-FRXMGRZQ.js → chunk-M6REON2I.js} +2 -2
- package/build/{chunk-7JWXBKEJ.js → chunk-P7NLFSZQ.js} +9 -60
- package/build/chunk-QDZ7MAVN.js +447 -0
- package/build/{chunk-ZTJVOWDQ.js → chunk-R6YZTFQL.js} +2 -0
- package/build/{chunk-YZ2PXBJK.js → chunk-RU6QOFHH.js} +6 -9
- package/build/{chunk-FH3YGSY5.js → chunk-TNQ7GJ6Q.js} +0 -59
- package/build/{chunk-5XXI25JE.js → chunk-TVQJY47C.js} +12 -160
- package/build/{chunk-JTUKQWIO.js → chunk-UFTNBCSA.js} +35515 -14994
- package/build/{chunk-ZCU7XQKF.js → chunk-ZXKFJQDE.js} +7 -1
- package/build/cli.js +3342 -3423
- package/build/{completion-46K674EL.js → completion-7KBW243H.js} +4 -4
- package/build/{config-XE6Q5P4I.js → config-KAEUX6RM.js} +23 -3
- package/build/{config-dir-MAWX5AUF.js → config-dir-5IH7MOOT.js} +2 -2
- package/build/{doctor-HGMQE6IN.js → doctor-GHUAUFS2.js} +12 -12
- package/build/{errors-J2PH3NLJ.js → errors-HGHUF575.js} +2 -2
- package/build/{format-5X2HIVDT.js → format-H7FOQSYY.js} +1 -1
- package/build/{init-JMDNM7ZZ.js → init-UCTCUYFA.js} +52 -8
- package/build/init-all-RG542NWG.js +427 -0
- package/build/mcpServer-D7OXUDU5.js +34 -0
- package/build/monitor-worker.js +296 -40
- package/build/{namespace-FSX2G3NM.js → namespace-L5DGCY7K.js} +2 -2
- package/build/{open-5A6ZQMGC.js → open-V2RNA3QT.js} +1 -1
- package/build/{output-V3D4YZ6U.js → output-ITGLBKIG.js} +2 -2
- package/build/release.json +8 -0
- package/build/{serve-AGCOXXFM.js → serve-K3IT7DS4.js} +3 -3
- package/build/server.js +6396 -3220
- package/build/{setup-RMETGJWK.js → setup-PTYFMTK5.js} +60 -55
- package/build/stdio.js +7 -6
- package/build/{telemetry-WCME5XEU.js → telemetry-HPLDYR7U.js} +5 -4
- package/build/{tools-KAB6QBZC.js → tools-D72ZH6P5.js} +15 -15
- package/build/{uninstall-FLJMBBSC.js → uninstall-SAOIPL6K.js} +19 -10
- package/build/{update-check-LNZQK3XA.js → update-check-IEXPOYYR.js} +4 -4
- package/build/upgrade-4S5XT5JG.js +14 -0
- package/build/{version-I6HDAF4L.js → version-Z4HJL4VV.js} +4 -2
- package/build/{watch-YNN255QX.js → watch-IOSRSCFE.js} +8 -7
- package/package.json +73 -35
- package/agent-skills/packs/hive-defi-research/references/workflow.md +0 -41
- package/agent-skills/packs/hive-dex-pool-analysis/references/workflow.md +0 -42
- package/agent-skills/packs/hive-market-research/references/workflow.md +0 -47
- package/agent-skills/packs/hive-network-infrastructure/references/workflow.md +0 -41
- package/agent-skills/packs/hive-nft-research/references/workflow.md +0 -42
- package/agent-skills/packs/hive-prediction-markets/references/workflow.md +0 -42
- package/agent-skills/packs/hive-security-risk/references/workflow.md +0 -46
- package/agent-skills/packs/hive-solana-analysis/references/workflow.md +0 -42
- package/agent-skills/packs/hive-token-diligence/references/workflow.md +0 -45
- package/agent-skills/packs/hive-wallet-investigation/references/workflow.md +0 -45
- package/build/api-client-EPF6FD7A.js +0 -28
- package/build/browser-auth-VPF5LZMZ.js +0 -8
- package/build/chunk-4F5CI6LX.js +0 -340
- package/build/chunk-CEWCB5YS.js +0 -71
- package/build/chunk-GZPDEXO4.js +0 -126
- package/build/chunk-IZPAMRHP.js +0 -43
- package/build/init-all-5SKNV75X.js +0 -273
- package/build/mcpServer-5TKKSKJM.js +0 -21
|
@@ -1,42 +1,128 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hive-defi-research
|
|
3
|
-
description: Use this skill
|
|
3
|
+
description: 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.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
package: "@hiveintelligence/agent-skills"
|
|
7
7
|
category: "defi"
|
|
8
8
|
requires_network: "true"
|
|
9
|
-
version: 1.
|
|
9
|
+
version: 1.4.0
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# hive-defi-research — DeFi Protocol Analysis
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
DeFi questions.
|
|
14
|
+
Answer protocol, TVL, fee, revenue, yield, stablecoin, bridge, and chain-level
|
|
15
|
+
DeFi questions with like-for-like, timestamped metrics.
|
|
16
16
|
|
|
17
|
-
## Task toolset
|
|
17
|
+
## Task toolset and identifiers
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Toolset: `defi_protocol_analysis`. Read
|
|
20
|
+
`hive://toolsets/defi_protocol_analysis` before execution; it is authoritative
|
|
21
|
+
for the current output schema, material-call budget, phases, fallback
|
|
22
|
+
condition, and stop conditions.
|
|
20
23
|
|
|
21
|
-
Required
|
|
24
|
+
- Required: protocol name/slug or chain.
|
|
25
|
+
- Optional: time window, metric type, yield pool, stablecoin, bridge.
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
Ask for a protocol slug, or choose a provider-supported slug only when the
|
|
28
|
+
user clearly named the protocol.
|
|
29
|
+
|
|
30
|
+
Before choosing endpoints, select exactly one matching entry from the exact
|
|
31
|
+
workflow's routes[]. Follow its ordered steps, use a fallback only under that
|
|
32
|
+
step's published condition, stop at four material calls, and preserve the
|
|
33
|
+
selected route_id in the typed result. The broad coverageCatalog is discovery
|
|
34
|
+
coverage, not an execution plan.
|
|
24
35
|
|
|
25
|
-
|
|
26
|
-
metric normalization, timestamp caveats, or a structured DeFi report.
|
|
36
|
+
## Procedure
|
|
27
37
|
|
|
28
38
|
1. Resolve the protocol slug or chain name.
|
|
29
|
-
2.
|
|
30
|
-
|
|
31
|
-
3.
|
|
32
|
-
4.
|
|
39
|
+
2. Call `search_tools` for protocol, TVL, fee/revenue, yield, stablecoin,
|
|
40
|
+
bridge, or chain-metric capabilities.
|
|
41
|
+
3. Call `get_api_endpoint_schema` for each endpoint before calling it.
|
|
42
|
+
4. Pull only the metrics the question needs.
|
|
43
|
+
5. Compare protocols only with like-for-like metrics and timestamps, and
|
|
44
|
+
state when a metric is unavailable or stale.
|
|
45
|
+
|
|
46
|
+
## Bounded calls
|
|
47
|
+
|
|
48
|
+
- Limit protocol lists and yield pools.
|
|
49
|
+
- Avoid comparing TVL snapshots from different dates without a caveat.
|
|
50
|
+
- Mark missing fee/yield/stablecoin metrics instead of omitting them.
|
|
51
|
+
|
|
52
|
+
## Worked example
|
|
53
|
+
|
|
54
|
+
User: "Compare Aave and Compound — TVL and fees, which one actually earns
|
|
55
|
+
more?"
|
|
56
|
+
|
|
57
|
+
1. `search_tools` → `{"query": "protocol tvl fees revenue defi", "limit": 5}`
|
|
58
|
+
2. `get_api_endpoint_schema` for the protocol-metric endpoints returned, then
|
|
59
|
+
`invoke_api_endpoint` once per protocol slug with schema-valid arguments.
|
|
60
|
+
3. Normalize: same metric definitions, same window, same timestamps.
|
|
61
|
+
4. Summarize the comparison in a table, with provider and `fetched_at` per
|
|
62
|
+
metric, using the report template.
|
|
63
|
+
|
|
64
|
+
## Report template
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
## Summary
|
|
68
|
+
[Protocol or chain DeFi read in one or two sentences.]
|
|
33
69
|
|
|
34
|
-
##
|
|
70
|
+
## Calls made
|
|
71
|
+
- Toolset: defi_protocol_analysis
|
|
72
|
+
- Endpoint(s): [exact endpoint names]
|
|
73
|
+
- Identifiers: [protocol slugs, chains, metric filters]
|
|
35
74
|
|
|
36
|
-
|
|
37
|
-
|
|
75
|
+
## Evidence
|
|
76
|
+
- TVL: [value + as-of]
|
|
77
|
+
- Fees/revenue: [value + window]
|
|
78
|
+
- Yields/stablecoins/bridges: [if requested]
|
|
79
|
+
- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]
|
|
80
|
+
|
|
81
|
+
## Caveats
|
|
82
|
+
[Unavailable metrics, stale snapshots, methodology differences.]
|
|
83
|
+
|
|
84
|
+
## Next action
|
|
85
|
+
[Compare peers, inspect a yield pool, or add token/pool diligence — only if needed.]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Gotchas
|
|
89
|
+
|
|
90
|
+
- TVL, revenue, and fees answer different questions — do not substitute one
|
|
91
|
+
for another.
|
|
92
|
+
- High APY without liquidity/risk context is not a recommendation.
|
|
93
|
+
- Provider methodology can differ across chains and protocols.
|
|
94
|
+
|
|
95
|
+
## Evidence receipt (required)
|
|
96
|
+
|
|
97
|
+
End every Hive-backed answer with a compact receipt built from the `_hive`
|
|
98
|
+
object on each material tool response:
|
|
99
|
+
|
|
100
|
+
- `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`
|
|
101
|
+
- `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result
|
|
102
|
+
digests when present (self-checks, not signatures)
|
|
103
|
+
- `source`, `cache_status`, `truncated`, and any warnings
|
|
104
|
+
- canonical chain/entity identifiers plus block, slot, transaction, or query ids
|
|
105
|
+
present in provider data
|
|
106
|
+
- material provider disagreements and how they were handled
|
|
107
|
+
- checks that were unavailable, gated, stale, truncated, or intentionally not run
|
|
108
|
+
- a `claims[]` citation from each material statement to exact receipt IDs
|
|
109
|
+
- one `coverage[]` entry for every canonical evidence phase, with each gap explained
|
|
110
|
+
|
|
111
|
+
Never turn missing evidence into a clean result, silently merge conflicting
|
|
112
|
+
provider values, or omit a degraded/fallback call from the receipt.
|
|
113
|
+
`observed_at` is Hive's first-observation/original cache-population time, and
|
|
114
|
+
`cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,
|
|
115
|
+
slot, transaction, or candle close for source recency; if absent, mark it
|
|
116
|
+
unknown. Run `validate_task_result` before presenting the typed workflow result;
|
|
117
|
+
it checks structure but cannot authenticate an invented receipt.
|
|
38
118
|
|
|
39
119
|
## Runtime status handling
|
|
40
120
|
|
|
41
|
-
Treat unreliable or temporarily unavailable DeFi endpoints as `degraded`.
|
|
42
|
-
|
|
121
|
+
Treat unreliable or temporarily unavailable DeFi endpoints as `degraded`. Do
|
|
122
|
+
not silently omit a metric; mark it unavailable with the runtime status.
|
|
123
|
+
|
|
124
|
+
## Hand-offs
|
|
125
|
+
|
|
126
|
+
- Token price/market questions → `hive-market-research`.
|
|
127
|
+
- One pool's depth and trades → `hive-dex-pool-analysis`.
|
|
128
|
+
- Protocol token risk → `hive-token-diligence` or `hive-security-risk`.
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
"evals": [
|
|
4
4
|
{
|
|
5
5
|
"id": 1,
|
|
6
|
-
"prompt": "Compare Aave and Compound by current TVL
|
|
7
|
-
"expected_output": "Uses defi_protocol_analysis, resolves protocol slugs, fetches like-for-like metrics with timestamps,
|
|
6
|
+
"prompt": "Compare Aave and Compound by current TVL and fees.",
|
|
7
|
+
"expected_output": "Uses defi_protocol_analysis, resolves protocol slugs, fetches like-for-like metrics with timestamps, marks missing/stale data, and ends with a runtime evidence receipt.",
|
|
8
8
|
"files": [],
|
|
9
9
|
"assertions": [
|
|
10
10
|
"Chooses defi_protocol_analysis.",
|
|
11
|
+
"Selects protocol_economics for the comparison and stays within its four-call budget.",
|
|
11
12
|
"Normalizes metrics and timestamps.",
|
|
12
|
-
"Caveats missing or stale metrics."
|
|
13
|
+
"Caveats missing or stale metrics.",
|
|
14
|
+
"Includes receipt ids and provider disagreements."
|
|
13
15
|
]
|
|
14
16
|
},
|
|
15
17
|
{
|
|
@@ -19,6 +21,7 @@
|
|
|
19
21
|
"files": [],
|
|
20
22
|
"assertions": [
|
|
21
23
|
"Uses chain-level DeFi workflow.",
|
|
24
|
+
"Selects chain_protocol_landscape and does not fan out across every listed protocol.",
|
|
22
25
|
"Bounds the result list.",
|
|
23
26
|
"Reports provider and freshness."
|
|
24
27
|
]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"query": "compare aave and compound tvl and fees — which one actually earns more",
|
|
4
|
+
"should_trigger": true
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"query": "top defi protocols on arbitrum by tvl right now",
|
|
8
|
+
"should_trigger": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"query": "best stablecoin yields at the moment and how sketchy are they",
|
|
12
|
+
"should_trigger": true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"query": "is curve's revenue growing or shrinking this quarter",
|
|
16
|
+
"should_trigger": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"query": "how much bridge volume went between ethereum and base this month",
|
|
20
|
+
"should_trigger": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"query": "which chains are gaining defi tvl the fastest",
|
|
24
|
+
"should_trigger": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"query": "whats the price of CRV",
|
|
28
|
+
"should_trigger": false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"query": "how deep is the curve 3pool, recent swaps?",
|
|
32
|
+
"should_trigger": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"query": "is the AAVE token itself safe? holders, liquidity?",
|
|
36
|
+
"should_trigger": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"query": "explain how lending protocols work",
|
|
40
|
+
"should_trigger": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"query": "watch aave tvl and alert me on a 10% drop",
|
|
44
|
+
"should_trigger": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"query": "what does the aave treasury wallet hold",
|
|
48
|
+
"should_trigger": false
|
|
49
|
+
}
|
|
50
|
+
]
|
|
@@ -1,41 +1,131 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hive-dex-pool-analysis
|
|
3
|
-
description: Use this skill
|
|
3
|
+
description: Use this skill when the user asks about a DEX pool or trading pair — liquidity depth, recent swaps/trades, OHLCV candles, trending pools, fee tiers, or token-level DEX flow on a chain — including "how deep is the X/Y pool", "what's trading on Uniswap", or a pasted pair address. For CEX prices, order books, and funding use hive-market-research; for whole-token diligence use hive-token-diligence.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
package: "@hiveintelligence/agent-skills"
|
|
7
7
|
category: "dex"
|
|
8
8
|
requires_network: "true"
|
|
9
|
-
version: 1.
|
|
9
|
+
version: 1.4.0
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# hive-dex-pool-analysis — DEX And Pool Analysis
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Analyze on-chain DEX pools and pairs: liquidity, swaps, OHLCV, trends, and
|
|
15
|
+
token-level DEX flow, keeping pool-level and token-level facts clearly
|
|
16
|
+
separate.
|
|
16
17
|
|
|
17
|
-
## Task toolset
|
|
18
|
+
## Task toolset and identifiers
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
Toolset: `onchain_dex_pool_analysis`. Read
|
|
21
|
+
`hive://toolsets/onchain_dex_pool_analysis` before execution; it is
|
|
22
|
+
authoritative for the current output schema, material-call budget, phases,
|
|
23
|
+
fallback condition, and stop conditions.
|
|
20
24
|
|
|
21
|
-
Required
|
|
25
|
+
- Required: chain/network plus pair/pool address, token contract, or both
|
|
26
|
+
token sides.
|
|
27
|
+
- Optional: DEX name, time window, candle interval, trade direction.
|
|
28
|
+
|
|
29
|
+
If the user gives only one token, search candidate pools and prefer the pool
|
|
30
|
+
most relevant by liquidity/volume — and say which pool you chose, because the
|
|
31
|
+
same pair can have several pools with different fee tiers.
|
|
32
|
+
|
|
33
|
+
Before choosing endpoints, select exactly one matching entry from the exact
|
|
34
|
+
workflow's routes[]. Follow its ordered steps, use a fallback only under that
|
|
35
|
+
step's published condition, stop at four material calls, and preserve the
|
|
36
|
+
selected route_id in the typed result. The broad coverageCatalog is discovery
|
|
37
|
+
coverage, not an execution plan.
|
|
22
38
|
|
|
23
39
|
## Procedure
|
|
24
40
|
|
|
25
|
-
|
|
26
|
-
|
|
41
|
+
1. Resolve chain and pool/pair/token identifiers.
|
|
42
|
+
2. Call `search_tools` for pair search, pool info, liquidity, trades, OHLCV,
|
|
43
|
+
and trending-pool capabilities.
|
|
44
|
+
3. Call `get_api_endpoint_schema` for each endpoint before calling it.
|
|
45
|
+
4. Start with pool/pair metadata and liquidity; add trades/OHLCV for flow or
|
|
46
|
+
trend questions.
|
|
47
|
+
5. Report liquidity depth, recent flow, and data freshness.
|
|
48
|
+
|
|
49
|
+
## Bounded calls
|
|
50
|
+
|
|
51
|
+
- Limit trade lists and candle counts.
|
|
52
|
+
- Do not infer token-wide liquidity from one pool without saying so.
|
|
53
|
+
- Keep pool-level and token-level metrics separate.
|
|
54
|
+
|
|
55
|
+
## Worked example
|
|
56
|
+
|
|
57
|
+
User: "How deep is the main PEPE/WETH pool on Ethereum, and which way has
|
|
58
|
+
flow gone today?"
|
|
59
|
+
|
|
60
|
+
1. `search_tools` → `{"query": "dex pair search pool liquidity trades ethereum", "limit": 5}`
|
|
61
|
+
2. Resolve candidate pools for PEPE
|
|
62
|
+
(0x6982508145454Ce325dDbE47a25d4ec3d2311933), pick the deepest PEPE/WETH
|
|
63
|
+
pool, and state the choice.
|
|
64
|
+
3. `get_api_endpoint_schema` then `invoke_api_endpoint` for pool info,
|
|
65
|
+
liquidity, and a bounded trade list (explicit limit, today's window).
|
|
66
|
+
4. Report depth, net flow direction, and freshness with the template below.
|
|
67
|
+
|
|
68
|
+
## Report template
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
## Summary
|
|
72
|
+
[Pool/liquidity/trade-flow read in one or two sentences.]
|
|
27
73
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
74
|
+
## Calls made
|
|
75
|
+
- Toolset: onchain_dex_pool_analysis
|
|
76
|
+
- Endpoint(s): [exact endpoint names]
|
|
77
|
+
- Identifiers: [chain, pair/pool/token addresses]
|
|
32
78
|
|
|
33
|
-
##
|
|
79
|
+
## Evidence
|
|
80
|
+
- Liquidity: [depth, fee tier, venue]
|
|
81
|
+
- Flow: [trades, volume, OHLCV in window]
|
|
82
|
+
- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]
|
|
34
83
|
|
|
35
|
-
|
|
36
|
-
|
|
84
|
+
## Caveats
|
|
85
|
+
[Missing pools, stale candles, thin liquidity, degraded provider.]
|
|
86
|
+
|
|
87
|
+
## Next action
|
|
88
|
+
[Compare pools, widen time window, or add token diligence — only if needed.]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Gotchas
|
|
92
|
+
|
|
93
|
+
- The same token pair can have multiple pools with different fee tiers and
|
|
94
|
+
liquidity.
|
|
95
|
+
- Trending pools are not necessarily safe or liquid.
|
|
96
|
+
- OHLCV data can be unavailable even when pair metadata exists.
|
|
97
|
+
|
|
98
|
+
## Evidence receipt (required)
|
|
99
|
+
|
|
100
|
+
End every Hive-backed answer with a compact receipt built from the `_hive`
|
|
101
|
+
object on each material tool response:
|
|
102
|
+
|
|
103
|
+
- `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`
|
|
104
|
+
- `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result
|
|
105
|
+
digests when present (self-checks, not signatures)
|
|
106
|
+
- `source`, `cache_status`, `truncated`, and any warnings
|
|
107
|
+
- canonical chain/entity identifiers plus block, slot, transaction, or query ids
|
|
108
|
+
present in provider data
|
|
109
|
+
- material provider disagreements and how they were handled
|
|
110
|
+
- checks that were unavailable, gated, stale, truncated, or intentionally not run
|
|
111
|
+
- a `claims[]` citation from each material statement to exact receipt IDs
|
|
112
|
+
- one `coverage[]` entry for every canonical evidence phase, with each gap explained
|
|
113
|
+
|
|
114
|
+
Never turn missing evidence into a clean result, silently merge conflicting
|
|
115
|
+
provider values, or omit a degraded/fallback call from the receipt.
|
|
116
|
+
`observed_at` is Hive's first-observation/original cache-population time, and
|
|
117
|
+
`cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,
|
|
118
|
+
slot, transaction, or candle close for source recency; if absent, mark it
|
|
119
|
+
unknown. Run `validate_task_result` before presenting the typed workflow result;
|
|
120
|
+
it checks structure but cannot authenticate an invented receipt.
|
|
37
121
|
|
|
38
122
|
## Runtime status handling
|
|
39
123
|
|
|
40
124
|
If a DEX/pool endpoint is `degraded`, fall back to pair search or token-pool
|
|
41
125
|
tools and state which exact metric is missing.
|
|
126
|
+
|
|
127
|
+
## Hand-offs
|
|
128
|
+
|
|
129
|
+
- CEX prices, order books, funding, derivatives → `hive-market-research`.
|
|
130
|
+
- Whole-token diligence (holders, risk, metadata) → `hive-token-diligence`.
|
|
131
|
+
- Pool-token purchase risk → `hive-security-risk`.
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
"evals": [
|
|
4
4
|
{
|
|
5
5
|
"id": 1,
|
|
6
|
-
"prompt": "Analyze the main Uniswap pool for
|
|
7
|
-
"expected_output": "Uses onchain_dex_pool_analysis, resolves chain/token/pool, fetches bounded pool/liquidity/trade data,
|
|
6
|
+
"prompt": "Analyze the main Uniswap pool for PEPE (0x6982508145454Ce325dDbE47a25d4ec3d2311933) on Ethereum and summarize liquidity and recent flow.",
|
|
7
|
+
"expected_output": "Uses onchain_dex_pool_analysis, resolves chain/token/pool, fetches bounded pool/liquidity/trade data, separates pool facts from token facts, and ends with a runtime evidence receipt.",
|
|
8
8
|
"files": [],
|
|
9
9
|
"assertions": [
|
|
10
10
|
"Chooses onchain_dex_pool_analysis.",
|
|
11
|
+
"Selects pool_quality or pool_activity from routes[] and preserves route_id.",
|
|
11
12
|
"Resolves pool or asks for enough identifiers.",
|
|
12
|
-
"Caveats pool-specific liquidity."
|
|
13
|
+
"Caveats pool-specific liquidity.",
|
|
14
|
+
"Includes receipt ids and source freshness."
|
|
13
15
|
]
|
|
14
16
|
},
|
|
15
17
|
{
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"query": "how deep is the main PEPE/WETH pool and which way has flow gone today",
|
|
4
|
+
"should_trigger": true
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"query": "show me trending pools on base right now",
|
|
8
|
+
"should_trigger": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"query": "get OHLCV for pair 0x… on arbitrum, 1h candles",
|
|
12
|
+
"should_trigger": true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"query": "which pool has the most real liquidity for token 0x6982508145454Ce325dDbE47a25d4ec3d2311933",
|
|
16
|
+
"should_trigger": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"query": "recent swaps on this pool — any whale sized trades?",
|
|
20
|
+
"should_trigger": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"query": "compare the 0.05% and 0.3% fee tier pools for this pair",
|
|
24
|
+
"should_trigger": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"query": "whats the price of PEPE right now",
|
|
28
|
+
"should_trigger": false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"query": "is this pool's token a honeypot",
|
|
32
|
+
"should_trigger": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"query": "top protocols by TVL on base",
|
|
36
|
+
"should_trigger": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"query": "explain impermanent loss to me",
|
|
40
|
+
"should_trigger": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"query": "check the SOL order book on kraken",
|
|
44
|
+
"should_trigger": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"query": "what LP positions does this wallet hold",
|
|
48
|
+
"should_trigger": false
|
|
49
|
+
}
|
|
50
|
+
]
|
|
@@ -1,45 +1,154 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hive-market-research
|
|
3
|
-
description: Use this skill for live crypto market
|
|
3
|
+
description: Use this skill for any live crypto market question — prices, 24h moves, liquidity, exchange/venue data, OHLC candles, order books, tickers, funding rates, derivatives, trading context — even casual asks like "what's BTC at" or "is ETH pumping". Use it whenever the answer needs current market numbers instead of memory. For on-chain pool depth and DEX trades use hive-dex-pool-analysis; for protocol TVL/fees/yields use hive-defi-research.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
package: "@hiveintelligence/agent-skills"
|
|
7
7
|
category: "market"
|
|
8
8
|
requires_network: "true"
|
|
9
|
-
version: 1.
|
|
9
|
+
version: 1.4.0
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# hive-market-research — Market Research
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Answer live price, liquidity, exchange, OHLC, order-book, derivatives, and
|
|
15
|
+
trading-context questions with sourced, timestamped market data.
|
|
16
16
|
|
|
17
|
-
## Task toolset
|
|
17
|
+
## Task toolset and identifiers
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Toolset: `market_research`. Read `hive://toolsets/market_research` before
|
|
20
|
+
execution; it is authoritative for the current output schema, material-call
|
|
21
|
+
budget, phases, fallback condition, and stop conditions.
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
For tokenized real-world-asset perps (stock/pre-IPO/ETF/index/commodity/FX
|
|
24
|
+
perps — funding, rollover carry, cross-venue markets), route to
|
|
25
|
+
`rwa_perp_analysis` instead and read `hive://toolsets/rwa_perp_analysis`; its
|
|
26
|
+
rows carry `funding_mechanism` (a `funding_plus_borrow` rollover is never
|
|
27
|
+
sign-comparable with a funding transfer), `is_delisted`, and
|
|
28
|
+
`is_price_suspect` fields that must be respected in the answer.
|
|
29
|
+
|
|
30
|
+
- Required: asset (token id, symbol, or contract address) and quote currency
|
|
31
|
+
(usually `usd`).
|
|
32
|
+
- Venue/exchange id when the request is order-book, ticker, or derivatives
|
|
33
|
+
specific.
|
|
34
|
+
- Time window and candle interval for OHLC or trend questions.
|
|
35
|
+
|
|
36
|
+
Ask for missing venue or chain details when the choice changes the answer. For
|
|
37
|
+
general price questions, choose a broad market-data tool and state the source.
|
|
38
|
+
|
|
39
|
+
Before choosing endpoints, select exactly one matching entry from the exact
|
|
40
|
+
workflow's routes[]. Follow its ordered steps, use a fallback only under that
|
|
41
|
+
step's published condition, stop at four material calls, and preserve the
|
|
42
|
+
selected route_id in the typed result. The broad coverageCatalog is discovery
|
|
43
|
+
coverage, not an execution plan.
|
|
23
44
|
|
|
24
45
|
## Procedure
|
|
25
46
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
47
|
+
1. Resolve ambiguous symbols first — call `search_tools` with the asset and
|
|
48
|
+
intent.
|
|
49
|
+
2. Call `get_api_endpoint_schema` for each market endpoint before calling it.
|
|
50
|
+
3. Prefer focused calls: price, ticker, OHLC, order book, or funding data —
|
|
51
|
+
not everything at once.
|
|
52
|
+
4. For derivatives questions, include funding/open-interest context when
|
|
53
|
+
available.
|
|
54
|
+
5. For Hyperliquid perp questions, filter discovery to `Hyperliquid`, inspect
|
|
55
|
+
the typed endpoint schema, and bound time-series calls by time range and
|
|
56
|
+
pagination limits. Continue from the returned timestamp when a funding
|
|
57
|
+
scan reports an incomplete range.
|
|
58
|
+
6. Return freshness with every number, and avoid trading conclusions without
|
|
59
|
+
liquidity context.
|
|
60
|
+
|
|
61
|
+
## Bounded calls
|
|
62
|
+
|
|
63
|
+
- Use small limits for candles and order-book depth unless the user asks for
|
|
64
|
+
more.
|
|
65
|
+
- Avoid fetching all exchanges or all markets for a single-asset question.
|
|
66
|
+
- Bound Hyperliquid funding scans with an explicit time range, `max_points`,
|
|
67
|
+
and `max_pages`. Treat `pointCount` as the range total only when
|
|
68
|
+
`pointCountIsTotal` is true; otherwise continue from `range.nextStartTime`
|
|
69
|
+
and de-duplicate the inclusive boundary.
|
|
70
|
+
- Do not compare data from different timestamps without saying so.
|
|
71
|
+
|
|
72
|
+
## Worked example
|
|
73
|
+
|
|
74
|
+
User: "What's the BTC funding picture across exchanges right now — anything
|
|
75
|
+
crowded?"
|
|
76
|
+
|
|
77
|
+
1. `search_tools` → `{"query": "funding rates derivatives bitcoin exchanges", "limit": 5}`
|
|
78
|
+
2. `get_api_endpoint_schema` for the funding-rate endpoint returned, then
|
|
79
|
+
`invoke_api_endpoint` with schema-valid arguments and a bounded venue list.
|
|
80
|
+
3. Report per-venue funding with the provider timestamp when present. Treat
|
|
81
|
+
`observed_at` as Hive first-observation time and `fetched_at` as retrieval
|
|
82
|
+
completion; flag source recency as unknown when no provider time exists,
|
|
83
|
+
and flag stale or degraded venues,
|
|
84
|
+
and avoid a directional trade call unless asked.
|
|
85
|
+
|
|
86
|
+
If the user says "check the order book" without naming a venue, ask which
|
|
87
|
+
exchange — order-book liquidity is venue-specific.
|
|
88
|
+
|
|
89
|
+
## Report template
|
|
29
90
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
4. Return freshness and avoid trading conclusions without liquidity context.
|
|
91
|
+
```markdown
|
|
92
|
+
## Summary
|
|
93
|
+
[Current market read in one sentence.]
|
|
34
94
|
|
|
35
|
-
##
|
|
95
|
+
## Calls made
|
|
96
|
+
- Toolset: market_research
|
|
97
|
+
- Endpoint(s): [exact endpoint names]
|
|
98
|
+
- Identifiers: [asset, venue, interval, quote]
|
|
36
99
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
100
|
+
## Evidence
|
|
101
|
+
- [Key metrics: price, volume, depth, funding — with venue and provider]
|
|
102
|
+
- Freshness: [Hive observed_at/cache_age_ms plus provider timestamps or candle closes; fetched_at is retrieval completion; source recency unknown if provider time is absent]
|
|
103
|
+
|
|
104
|
+
## Caveats
|
|
105
|
+
[Stale data, missing venue, fallback, degraded provider, thin liquidity.]
|
|
106
|
+
|
|
107
|
+
## Next action
|
|
108
|
+
[Deeper venue, time-window, or liquidity drilldown — only if needed.]
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Gotchas
|
|
112
|
+
|
|
113
|
+
- Symbols collide. Prefer contract addresses, provider ids, or venue ids over
|
|
114
|
+
bare tickers.
|
|
115
|
+
- Order-book liquidity is venue-specific; do not generalize it to the full
|
|
116
|
+
market.
|
|
117
|
+
- Market data can be fresh but still incomplete if a venue/provider is
|
|
118
|
+
degraded.
|
|
119
|
+
|
|
120
|
+
## Evidence receipt (required)
|
|
121
|
+
|
|
122
|
+
End every Hive-backed answer with a compact receipt built from the `_hive`
|
|
123
|
+
object on each material tool response:
|
|
124
|
+
|
|
125
|
+
- `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`
|
|
126
|
+
- `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result
|
|
127
|
+
digests when present (self-checks, not signatures)
|
|
128
|
+
- `source`, `cache_status`, `truncated`, and any warnings
|
|
129
|
+
- canonical chain/entity identifiers plus block, slot, transaction, or query ids
|
|
130
|
+
present in provider data
|
|
131
|
+
- material provider disagreements and how they were handled
|
|
132
|
+
- checks that were unavailable, gated, stale, truncated, or intentionally not run
|
|
133
|
+
- a `claims[]` citation from each material statement to exact receipt IDs
|
|
134
|
+
- one `coverage[]` entry for every canonical evidence phase, with each gap explained
|
|
135
|
+
|
|
136
|
+
Never turn missing evidence into a clean result, silently merge conflicting
|
|
137
|
+
provider values, or omit a degraded/fallback call from the receipt.
|
|
138
|
+
`observed_at` is Hive's first-observation/original cache-population time, and
|
|
139
|
+
`cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,
|
|
140
|
+
slot, transaction, or candle close for source recency; if absent, mark it
|
|
141
|
+
unknown. Run `validate_task_result` before presenting the typed workflow result;
|
|
142
|
+
it checks structure but cannot authenticate an invented receipt.
|
|
40
143
|
|
|
41
144
|
## Runtime status handling
|
|
42
145
|
|
|
43
|
-
Report `ok`, `missing_key`, `plan_required`, `rate_limited`,
|
|
44
|
-
`failing` per tool/provider. If a venue endpoint is degraded, fall back to
|
|
146
|
+
Report `ok`, `invalid_input`, `missing_key`, `plan_required`, `rate_limited`,
|
|
147
|
+
`degraded`, or `failing` per tool/provider. If a venue endpoint is degraded, fall back to
|
|
45
148
|
another public market-data endpoint and state the substitution.
|
|
149
|
+
|
|
150
|
+
## Hand-offs
|
|
151
|
+
|
|
152
|
+
- On-chain pool depth, swaps, OHLCV per pool → `hive-dex-pool-analysis`.
|
|
153
|
+
- Protocol TVL, fees, revenue, yields → `hive-defi-research`.
|
|
154
|
+
- "Is this token safe" rather than "what's the price" → `hive-token-diligence`.
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
{
|
|
5
5
|
"id": 1,
|
|
6
6
|
"prompt": "What's the live BTC price, recent liquidity context, and source freshness?",
|
|
7
|
-
"expected_output": "Routes to market_research, resolves BTC to a provider-supported id, inspects schemas, makes bounded price/liquidity calls, and
|
|
7
|
+
"expected_output": "Routes to market_research, resolves BTC to a provider-supported id, inspects schemas, makes bounded price/liquidity calls, and ends with a runtime evidence receipt.",
|
|
8
8
|
"files": [],
|
|
9
9
|
"assertions": [
|
|
10
10
|
"Chooses market_research.",
|
|
11
|
+
"Selects spot_snapshot or derivatives_positioning from routes[] and follows its ordered calls instead of the coverage catalog.",
|
|
11
12
|
"Uses schema lookup before execution.",
|
|
12
|
-
"Reports provider and freshness."
|
|
13
|
+
"Reports provider and freshness.",
|
|
14
|
+
"Includes receipt ids and cache/fallback status."
|
|
13
15
|
]
|
|
14
16
|
},
|
|
15
17
|
{
|
|
@@ -22,6 +24,17 @@
|
|
|
22
24
|
"Bounds order book depth.",
|
|
23
25
|
"Caveats venue-specific liquidity."
|
|
24
26
|
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": 3,
|
|
30
|
+
"prompt": "Pull eighteen months of BTC funding history from Hyperliquid and tell me whether the returned series covers the full range.",
|
|
31
|
+
"expected_output": "Routes to market_research, discovers the typed Hyperliquid funding endpoint, inspects its schema, uses a bounded time range and pagination controls, and checks completion/continuation metadata before calling the point count a total.",
|
|
32
|
+
"files": [],
|
|
33
|
+
"assertions": [
|
|
34
|
+
"Filters discovery to Hyperliquid and uses the typed provider tool.",
|
|
35
|
+
"Bounds the scan with time and pagination arguments.",
|
|
36
|
+
"Checks pointCountIsTotal or range.complete and reports any continuation."
|
|
37
|
+
]
|
|
25
38
|
}
|
|
26
39
|
]
|
|
27
40
|
}
|