dattb-bds-skills 1.0.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.
Files changed (40) hide show
  1. package/.claude-plugin/plugin.json +13 -0
  2. package/README.md +385 -0
  3. package/bin/cli.js +1009 -0
  4. package/birdeye-mcp/index.js +338 -0
  5. package/birdeye-mcp/package-lock.json +1053 -0
  6. package/birdeye-mcp/package.json +18 -0
  7. package/package.json +30 -0
  8. package/skills/birdeye-alert-agent/SKILL.md +318 -0
  9. package/skills/birdeye-holder-analysis/SKILL.md +51 -0
  10. package/skills/birdeye-holder-analysis/references/caveats.md +35 -0
  11. package/skills/birdeye-holder-analysis/references/operation-map.md +113 -0
  12. package/skills/birdeye-market-data/SKILL.md +64 -0
  13. package/skills/birdeye-market-data/references/caveats.md +41 -0
  14. package/skills/birdeye-market-data/references/operation-map.md +289 -0
  15. package/skills/birdeye-realtime-streams/SKILL.md +69 -0
  16. package/skills/birdeye-realtime-streams/references/caveats.md +56 -0
  17. package/skills/birdeye-realtime-streams/references/reconnection-handling.md +25 -0
  18. package/skills/birdeye-realtime-streams/references/stream-map.md +338 -0
  19. package/skills/birdeye-realtime-streams/references/subscription-patterns.md +257 -0
  20. package/skills/birdeye-research-assistant/SKILL.md +228 -0
  21. package/skills/birdeye-router/SKILL.md +152 -0
  22. package/skills/birdeye-security-analysis/SKILL.md +54 -0
  23. package/skills/birdeye-security-analysis/references/caveats.md +38 -0
  24. package/skills/birdeye-security-analysis/references/operation-map.md +78 -0
  25. package/skills/birdeye-security-analysis/references/risk-flags.md +123 -0
  26. package/skills/birdeye-smart-money/SKILL.md +51 -0
  27. package/skills/birdeye-smart-money/references/caveats.md +38 -0
  28. package/skills/birdeye-smart-money/references/operation-map.md +109 -0
  29. package/skills/birdeye-smart-money/references/signal-patterns.md +116 -0
  30. package/skills/birdeye-token-discovery/SKILL.md +57 -0
  31. package/skills/birdeye-token-discovery/references/caveats.md +39 -0
  32. package/skills/birdeye-token-discovery/references/operation-map.md +168 -0
  33. package/skills/birdeye-token-screener-builder/SKILL.md +248 -0
  34. package/skills/birdeye-transaction-flow/SKILL.md +52 -0
  35. package/skills/birdeye-transaction-flow/references/caveats.md +47 -0
  36. package/skills/birdeye-transaction-flow/references/operation-map.md +220 -0
  37. package/skills/birdeye-wallet-dashboard-builder/SKILL.md +185 -0
  38. package/skills/birdeye-wallet-intelligence/SKILL.md +59 -0
  39. package/skills/birdeye-wallet-intelligence/references/caveats.md +50 -0
  40. package/skills/birdeye-wallet-intelligence/references/operation-map.md +163 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "birdeye",
3
+ "description": "Multi-chain DeFi analytics with Birdeye — token prices, wallet analysis, smart money tracking, real-time streams, and research tools",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "Birdeye Partners",
7
+ "url": "https://birdeye.so"
8
+ },
9
+ "homepage": "https://docs.birdeye.so",
10
+ "repository": "https://github.com/birdeye-so/birdeye-skills",
11
+ "license": "MIT",
12
+ "keywords": ["birdeye", "solana", "ethereum", "defi", "blockchain", "analytics", "web3"]
13
+ }
package/README.md ADDED
@@ -0,0 +1,385 @@
1
+ # Birdeye Skills
2
+
3
+ AI-native skill system for Birdeye's multi-chain DeFi analytics API — structured as a 3-tier router/domain/workflow architecture.
4
+
5
+ Supports Claude Code, Cursor, OpenAI Codex CLI, and ChatGPT/OpenAI API.
6
+
7
+ ---
8
+
9
+ ## Quick Start
10
+
11
+ ### Option 1: Claude Code plugin (recommended)
12
+
13
+ ```bash
14
+ npx skills add birdeye-so/birdeye-skills -g --yes
15
+ ```
16
+
17
+ Installs all 13 skills globally to `~/.claude/skills/` in one command — no clone needed.
18
+
19
+ ### Option 2: npm / npx
20
+
21
+ ```bash
22
+ # Install globally (Claude Code personal)
23
+ npx birdeye-skills install --all
24
+
25
+ # Install to a project
26
+ npx birdeye-skills install --all --project /path/to/app
27
+
28
+ # Cursor
29
+ npx birdeye-skills install --cursor --all
30
+ npx birdeye-skills install --cursor --all --project /path/to/app
31
+
32
+ # OpenAI Codex CLI
33
+ npx birdeye-skills install --codex --all --project /path/to/app
34
+
35
+ # ChatGPT / OpenAI API (bundle to file)
36
+ npx birdeye-skills install --bundle
37
+ ```
38
+
39
+ ### Option 3: Shell script (no Node.js required)
40
+
41
+ ```bash
42
+ git clone https://github.com/birdeye-so/birdeye-skills.git
43
+ cd birdeye-skills
44
+
45
+ ./install.sh # Claude Code personal
46
+ ./install.sh --project /path/to/app # Claude Code project
47
+ ./install.sh --cursor # Cursor global (~/.cursor/rules)
48
+ ./install.sh --cursor --project /path/to/app # Cursor project
49
+ ./install.sh --codex --project /path/to/app # Codex AGENTS.md
50
+ ./install.sh --bundle # Bundled prompt file
51
+ ./install.sh --domain # Domain skills only (9)
52
+ ./install.sh birdeye-market-data # Single skill
53
+ ```
54
+
55
+ ---
56
+
57
+ ## MCP Integration
58
+
59
+ ### Official Birdeye MCP Server (API calls)
60
+
61
+ Birdeye provides an official remote MCP server (Beta) exposing 21 API endpoints as MCP tools — the AI can call Birdeye API directly, no manual curl needed.
62
+
63
+ **API Key**: Login to https://bds.birdeye.so → Usages → Security → Generate key
64
+
65
+ **Docs**: https://docs.birdeye.so/docs/birdeye-ai
66
+
67
+ ```json
68
+ {
69
+ "mcpServers": {
70
+ "birdeye-mcp": {
71
+ "command": "npx",
72
+ "args": [
73
+ "-y",
74
+ "mcp-remote@0.1.38",
75
+ "https://mcp.birdeye.so/mcp",
76
+ "--header",
77
+ "x-api-key:${API_KEY}"
78
+ ],
79
+ "env": {
80
+ "API_KEY": "<YOUR_BIRDEYE_API_KEY>"
81
+ }
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ | Platform | Config file |
88
+ |---|---|
89
+ | Claude Code (project) | `.mcp.json` |
90
+ | Claude Code (personal) | `~/.claude/settings.json` |
91
+ | Cursor | `.cursor/mcp.json` |
92
+ | Windsurf | `~/.codeium/windsurf/mcp_config.json` |
93
+ | GitHub Copilot | `.vscode/mcp.json` |
94
+ | Gemini CLI | `~/.gemini/settings.json` |
95
+ | OpenAI Codex | `~/.codex/config.toml` |
96
+
97
+ The npm CLI auto-configures MCP when installing with `--api-key`:
98
+
99
+ ```bash
100
+ npx birdeye-skills install --all --project . --api-key YOUR_KEY
101
+ ```
102
+
103
+ ### Fallback: Docs Companion MCP
104
+
105
+ If the official MCP is unavailable (outage, no API key, offline), add this local fallback — powered by the official [Birdeye OpenAPI spec](https://assets.birdeye.so/bds/docs/openapi_docs.json) fetched and cached locally.
106
+
107
+ ```bash
108
+ cd birdeye-mcp && npm install
109
+ ```
110
+
111
+ ```json
112
+ {
113
+ "mcpServers": {
114
+ "birdeye-api-docs": {
115
+ "command": "node",
116
+ "args": ["/path/to/birdeye-skills/birdeye-mcp/index.js"]
117
+ }
118
+ }
119
+ }
120
+ ```
121
+
122
+ | Tool | Purpose |
123
+ |---|---|
124
+ | `birdeye_list_endpoints` | List all 75+ endpoints grouped by domain |
125
+ | `birdeye_search_endpoints` | Search endpoints by keyword |
126
+ | `birdeye_get_endpoint_info` | Get params, types, required flags, and docs URL |
127
+
128
+ Spec is fetched once and cached at `~/.birdeye/openapi-cache.json` (refreshed every 24h). Falls back to stale cache if offline.
129
+
130
+ ---
131
+
132
+ ## Usage
133
+
134
+ Once installed, just describe what you want — the router dispatches automatically:
135
+
136
+ ```
137
+ "Get the current price of SOL"
138
+ → birdeye-router → birdeye-market-data → GET /defi/price
139
+
140
+ "Find trending tokens on Solana"
141
+ → birdeye-router → birdeye-token-discovery → GET /defi/token_trending
142
+
143
+ "Analyze this token for security risks: <address>"
144
+ → birdeye-router → birdeye-security-analysis → GET /defi/token_security
145
+
146
+ "Build a token screener with smart money signals"
147
+ → birdeye-router → birdeye-token-screener-builder (workflow)
148
+
149
+ "Generate a research report for this token"
150
+ → birdeye-router → birdeye-research-assistant (workflow)
151
+ ```
152
+
153
+ ---
154
+
155
+ ## Updating Skills
156
+
157
+ Skills have a **7-day TTL**. The router skill checks `~/.birdeye/skills-config.json` and prompts you to update when skills are stale.
158
+
159
+ ```bash
160
+ # Pull latest from npm and reinstall
161
+ npx birdeye-skills@latest install --all
162
+
163
+ # Or via shell script
164
+ git pull && ./install.sh
165
+
166
+ # Check TTL status
167
+ npx birdeye-skills check
168
+
169
+ # List installed skills and versions
170
+ npx birdeye-skills list
171
+ ```
172
+
173
+ ### Adding a New API Endpoint
174
+
175
+ 1. Identify which domain skill it belongs to (see table below)
176
+ 2. Edit `skills/<skill>/references/operation-map.md` — add the endpoint
177
+ 3. Edit `skills/<skill>/references/caveats.md` if needed
178
+ 4. Bump `version` in `skills/<skill>/SKILL.md` frontmatter
179
+ 5. Reinstall: `npx birdeye-skills install --all` or `./install.sh`
180
+
181
+ ```bash
182
+ npx birdeye-skills docs sync # Shows the full guide
183
+ ```
184
+
185
+ ---
186
+
187
+ ## Architecture
188
+
189
+ ```
190
+ Tier 1: Router
191
+ └── birdeye-router Intent dispatcher
192
+
193
+ Tier 2: Domain Skills (API-focused)
194
+ ├── birdeye-market-data Price, OHLCV, stats, historical data
195
+ ├── birdeye-token-discovery Token lists, search, trending, meme
196
+ ├── birdeye-transaction-flow Trades, transfers, balance changes
197
+ ├── birdeye-wallet-intelligence Portfolio, PnL, top traders
198
+ ├── birdeye-holder-analysis Holder distribution, concentration
199
+ ├── birdeye-security-analysis Token security, risk assessment
200
+ ├── birdeye-smart-money Smart money tracking, signals
201
+ └── birdeye-realtime-streams WebSocket subscriptions (9 channels)
202
+
203
+ Tier 3: Workflow Skills (Multi-domain)
204
+ ├── birdeye-wallet-dashboard-builder Portfolio monitors, whale trackers
205
+ ├── birdeye-token-screener-builder Token screeners, alpha finders
206
+ ├── birdeye-alert-agent Real-time alerting pipelines
207
+ └── birdeye-research-assistant Research reports, token briefs
208
+ ```
209
+
210
+ ## API Group → Skill Mapping
211
+
212
+ | API Group | Skill | Endpoints |
213
+ |---|---|---|
214
+ | Price & OHLCV | birdeye-market-data | 12 |
215
+ | Stats | birdeye-market-data | 13 |
216
+ | Alltime & History | birdeye-market-data | 2 |
217
+ | Token/Market List | birdeye-token-discovery | 5 |
218
+ | Creation & Trending | birdeye-token-discovery | 2 |
219
+ | Meme | birdeye-token-discovery | 2 |
220
+ | Search & Utils | birdeye-token-discovery | 2 |
221
+ | Transactions | birdeye-transaction-flow | 10 |
222
+ | Balance & Transfer | birdeye-transaction-flow | 7 |
223
+ | Blockchain | birdeye-transaction-flow | 2 |
224
+ | Wallet, Networth & PnL | birdeye-wallet-intelligence | 14 |
225
+ | Holder | birdeye-holder-analysis | 3 |
226
+ | Security | birdeye-security-analysis | 1 |
227
+ | Smart Money | birdeye-smart-money | 1 |
228
+ | WebSockets | birdeye-realtime-streams | 9 channels |
229
+ | **Total** | | **85+ endpoints** |
230
+
231
+ ## Supported Chains
232
+
233
+ Solana, Ethereum, BSC, Arbitrum, Optimism, Polygon, Avalanche, Base, zkSync, Sui
234
+
235
+ ---
236
+
237
+ ## Cross-Platform Support
238
+
239
+ | Platform | Command | Output |
240
+ |---|---|---|
241
+ | **Claude Code** (plugin) | `npx skills add birdeye-so/birdeye-skills -g --yes` | `~/.claude/skills/` |
242
+ | **Claude Code** (personal) | `npx birdeye-skills install --all` | `~/.claude/skills/` |
243
+ | **Claude Code** (project) | `npx birdeye-skills install --all --project DIR` | `DIR/.claude/skills/` |
244
+ | **Cursor** (global) | `npx birdeye-skills install --cursor --all` | `~/.cursor/rules/` |
245
+ | **Cursor** (project) | `npx birdeye-skills install --cursor --all --project DIR` | `DIR/.cursor/rules/` |
246
+ | **OpenAI Codex CLI** | `npx birdeye-skills install --codex --all --project DIR` | `DIR/AGENTS.md` |
247
+ | **ChatGPT / OpenAI API** | `npx birdeye-skills install --bundle` | `birdeye-system-prompt.md` |
248
+
249
+ ---
250
+
251
+ ## Repo Structure
252
+
253
+ ```
254
+ birdeye-skills/
255
+ .claude-plugin/
256
+ plugin.json # Claude Code plugin metadata
257
+ skills/
258
+ birdeye-router/
259
+ SKILL.md
260
+ birdeye-market-data/
261
+ SKILL.md
262
+ references/
263
+ operation-map.md # Endpoint paths, params, docs URL, key fields
264
+ caveats.md # Common mistakes and edge cases
265
+ preflight.md # Pre-request checklist (optional)
266
+ templates.md # Code templates (optional)
267
+ birdeye-token-discovery/
268
+ birdeye-transaction-flow/
269
+ birdeye-wallet-intelligence/
270
+ birdeye-holder-analysis/
271
+ birdeye-security-analysis/
272
+ birdeye-smart-money/
273
+ birdeye-realtime-streams/
274
+ birdeye-wallet-dashboard-builder/
275
+ birdeye-token-screener-builder/
276
+ birdeye-alert-agent/
277
+ birdeye-research-assistant/
278
+ bin/
279
+ cli.js # npm CLI (npx birdeye-skills)
280
+ birdeye-mcp/
281
+ index.js # Fallback MCP server (OpenAPI-powered, no build step)
282
+ package.json
283
+ install.sh # Shell installer (no Node.js required)
284
+ package.json # npm package (name: birdeye-skills)
285
+ ```
286
+
287
+ ---
288
+
289
+ ## CLI Reference
290
+
291
+ ```
292
+ npx birdeye-skills <command> [options]
293
+
294
+ Commands:
295
+ install [options] Install skills
296
+
297
+ Platform (default: all agents):
298
+ (none) Claude + Cursor + Codex global (default)
299
+ --claude Claude Code only (~/.claude/skills/)
300
+ --cursor Cursor only (~/.cursor/rules/)
301
+ --codex Codex CLI only (~/.codex/AGENTS.md)
302
+ --bundle [file] ChatGPT / OpenAI API (system prompt file)
303
+
304
+ Skill selection:
305
+ --all All 13 skills (default)
306
+ --domain Router + 8 domain skills
307
+ --workflow 4 workflow skills
308
+ <skill-name> Single skill
309
+
310
+ Target:
311
+ --project DIR Install to project directory (scoped)
312
+ --path DIR Custom directory
313
+
314
+ MCP:
315
+ --api-key KEY Set API key in MCP config
316
+ --skip-mcp Skip MCP config generation
317
+
318
+ update Reinstall skills from recorded install config
319
+ pull Fetch latest from npm and reinstall
320
+ check Check TTL and version status
321
+ list Show installed skills
322
+ info <skill-name> Show skill details
323
+ docs sync Guide for adding new API endpoints
324
+ cache clear Clear install metadata
325
+
326
+ Examples:
327
+ npx birdeye-skills install --all # All agents (global)
328
+ npx birdeye-skills install --all --project . # All agents (project)
329
+ npx birdeye-skills install --all --project . --api-key KEY # With MCP key
330
+ npx birdeye-skills install --claude --all # Claude only
331
+ npx birdeye-skills install --cursor --all # Cursor only (global)
332
+ npx birdeye-skills install --codex --all --project . # Codex (project)
333
+ npx birdeye-skills install --bundle # ChatGPT bundle
334
+ npx birdeye-skills@latest install --all # Update to latest
335
+ npx birdeye-skills check # Check TTL status
336
+ ```
337
+
338
+ ## Rate Limits by Tier
339
+
340
+ | Tier | Rate Limit | WebSocket |
341
+ |---|---|---|
342
+ | Standard | 1 rps | No |
343
+ | Lite / Starter | 15 rps | No |
344
+ | Premium | 50 rps / 1000 rpm | No |
345
+ | Business | 100 rps / 1500 rpm | Yes |
346
+ | Enterprise | Custom | Yes |
347
+
348
+ **Wallet API**: 30 rpm hard limit regardless of tier.
349
+
350
+ See [`SYSTEM-PROMPTS.md`](./SYSTEM-PROMPTS.md) for detailed integration architecture.
351
+
352
+ ---
353
+
354
+ ## For Developers
355
+
356
+ ### Test CLI locally with npm link
357
+
358
+ ```bash
359
+ git clone https://github.com/birdeye-so/birdeye-skills
360
+ cd birdeye-skills
361
+
362
+ # Link the package globally (no npm publish needed)
363
+ npm link
364
+
365
+ # Now use the CLI anywhere
366
+ birdeye-skills install --all
367
+ birdeye-skills list
368
+ birdeye-skills check
369
+
370
+ # When done testing
371
+ npm unlink -g dattb-birdeye-skills
372
+ ```
373
+
374
+ Edit files under `skills/` or `bin/cli.js`, then re-run commands immediately — no build step needed.
375
+
376
+ ### Test the fallback MCP locally
377
+
378
+ ```bash
379
+ cd birdeye-mcp && npm install
380
+
381
+ # Smoke test — should hang silently (waiting for MCP stdio)
382
+ node index.js
383
+ ```
384
+
385
+ Add to MCP config with the absolute path to `birdeye-mcp/index.js`.