@bitget-ai/bitget-agent-skill 3.4.1 → 4.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.
- package/CHANGELOG.md +34 -0
- package/README.md +110 -123
- package/VERSION +1 -1
- package/package.json +7 -11
- package/scripts/install.js +123 -130
- package/scripts/validate-skills.mjs +240 -0
- package/skills/bitget-agentic/SKILL.md +122 -0
- package/skills/bitget-agentic/references/authorization.md +95 -0
- package/skills/bitget-agentic/references/first-time-setup.md +85 -0
- package/skills/bitget-agentic/references/legacy-migration.md +38 -0
- package/skills/bitget-agentic/references/troubleshooting.md +34 -0
- package/references/auth-setup.md +0 -54
- package/references/commands.md +0 -2387
- package/references/demo-trading.md +0 -58
- package/references/discover-guide.md +0 -112
- package/references/error-codes.md +0 -118
- package/references/trading-safety.md +0 -163
- package/scripts/gen-references.js +0 -266
- package/skills/agentic/SKILL.md +0 -345
- package/skills/agentic-connect/SKILL.md +0 -146
- package/skills/uta/SKILL.md +0 -189
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ All notable changes to `bitget-agent-skill` are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.0.0] - 2026-11-16
|
|
9
|
+
|
|
10
|
+
The local API-key edition is discontinued, and the package is restructured to
|
|
11
|
+
follow the Agent Skills specification (https://agentskills.io/specification).
|
|
12
|
+
It now ships one skill, `bitget-agentic`, for the Bitget cloud MCP
|
|
13
|
+
(`https://agent.bitget.com/mcp`).
|
|
14
|
+
|
|
15
|
+
### Removed (BREAKING)
|
|
16
|
+
- **UTA skill** (`skills/uta/SKILL.md`, installed as `bitget-agent-skill`) — the skill that drove the `bgc` CLI with `BITGET_API_KEY` environment variables.
|
|
17
|
+
- **`references/`** at the package root — `commands.md`, `discover-guide.md`, `trading-safety.md`, `error-codes.md`, `auth-setup.md`, `demo-trading.md`. All documented the `bgc` path.
|
|
18
|
+
- **`scripts/gen-references.js`**, the `gen-references` script, and the `@bitget-ai/bitget-agent-sdk` dev dependency it needed.
|
|
19
|
+
- **`e2e/`** — the suite exercised only the UTA skill against `bgc`.
|
|
20
|
+
- **`bitget-agentic-connect` as a separate skill.** Its content is now `references/first-time-setup.md` inside `bitget-agentic`. A one-time guide no longer stays loaded in every chat, and the two skills no longer compete for the same requests.
|
|
21
|
+
- **The `--skill` installer flag.** It is still accepted and ignored so that commands in older guides keep working; `--skill uta` prints a notice and exits.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- **Skill layout.** `skills/agentic/` is now `skills/bitget-agentic/`, so the folder matches the skill `name` as the specification requires. `SKILL.md` went from about 6,100 tokens to about 1,700; detail the agent needs only sometimes moved into four reference files that load on demand: `first-time-setup.md`, `authorization.md`, `legacy-migration.md`, `troubleshooting.md`.
|
|
25
|
+
- **Frontmatter is portable.** Only `name`, `description`, `license`, `compatibility`, and `metadata` are used. `metadata` is a flat map of strings; the nested `requires` and `packages` blocks are gone (`requires.bins` listed `node` and `npx`, which are needed to install the skill, not to use it).
|
|
26
|
+
- **Description.** Rewritten in the third person as "what it does, when to use it, when not to", 897 characters against a limit of 1,024 (it was 1,148). It now also covers general Bitget trading, account, and market-data requests, since the cloud MCP is the only supported path. The operational rules it used to carry are in the body.
|
|
27
|
+
- **Content.** Each rule is stated once, with its reason. Sections refer to each other by title, not by number. The skill is in English throughout and uses one term for each thing ("cloud MCP", "Agentic account", "legacy MCP config", "discontinued local tools"). Tools are introduced by their qualified names (`bitget-mcp-server:guide`).
|
|
28
|
+
- **Supported clients** are a table of client, `client_id`, and how it is set. The redirect URIs and server-side flags from the old JSON block were removed; the agent cannot act on them.
|
|
29
|
+
- **Discontinued local tools.** `bgc`, the SDK with API-key environment variables, and the old UTA skill must not be installed, recommended, or run.
|
|
30
|
+
- **"Account list full"** in first-time setup now matches the rest of the skill: delete unused accounts and create a new one; do not pick an account created by the old SDK or npm tools.
|
|
31
|
+
- **Installer.** It copies the whole skill folder, references included, and replaces the folder on each run. New `cursor` target (`~/.cursor/skills`). The `codex` target now installs to `~/.agents/skills`, where current Codex reads user skills, and refreshes an existing copy in `~/.codex/skills`. It reports the obsolete `bitget-agent-skill` and `bitget-agentic-connect` folders without deleting them.
|
|
32
|
+
- **README and `llms.txt`** rewritten for the cloud MCP and the single-skill layout, with an "Upgrading from 3.x" section.
|
|
33
|
+
- Records the switch of the skill to English (2.2.6, 2026-11-10), which had no changelog entry. The skill's own version now follows the package version.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
- **`scripts/validate-skills.mjs`** (`npm run validate`) — checks `skills/` against the specification: name format and folder match, description length, portable frontmatter fields, flat string metadata, body size, links that resolve, and every reference file linked from `SKILL.md`. The build and `npm publish` run it.
|
|
37
|
+
- **`evals/`** — trigger and behavior scenarios for the skill. There is no bundled runner yet.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
- The installer exits non-zero when any target fails to install.
|
|
41
|
+
|
|
8
42
|
## [3.4.1] - 2026-10-30
|
|
9
43
|
|
|
10
44
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/logo.png" alt="Bitget Agent Skill — AI
|
|
2
|
+
<img src="assets/logo.png" alt="Bitget Agent Skill — connect AI agents to a Bitget Agentic account through the cloud MCP" width="120" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">bitget-agent-skill — Official Bitget AI Trading Skill</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>
|
|
8
|
+
<strong>Teach your AI agent to connect the Bitget cloud MCP, authorize a Bitget Agentic account in the browser, and trade or query from natural language — with no API keys on your machine.</strong>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
@@ -17,225 +17,213 @@
|
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
19
|
<a href="#quick-start">Quick Start</a> ·
|
|
20
|
-
<a href="#
|
|
21
|
-
<a href="#why-a-skill-vs-just-installing-bgc">Why a Skill</a> ·
|
|
20
|
+
<a href="#how-it-works">How It Works</a> ·
|
|
22
21
|
<a href="#installation">Installation</a> ·
|
|
22
|
+
<a href="#connect-the-cloud-mcp">Connect</a> ·
|
|
23
23
|
<a href="#security">Security</a> ·
|
|
24
|
+
<a href="#upgrading-from-3x">Upgrading from 3.x</a> ·
|
|
24
25
|
<a href="#troubleshooting">Troubleshooting</a> ·
|
|
25
26
|
<a href="#faq">FAQ</a>
|
|
26
27
|
</p>
|
|
27
28
|
|
|
28
29
|
---
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
`@bitget-ai/bitget-agent-skill` ships the skill files for the **Bitget cloud MCP** at `https://agent.bitget.com/mcp`. The skill tells your AI agent how to connect that MCP, how to start browser authorization for a Bitget Agentic account, which tools to call, and how to handle writes and failures safely. The files are plain Markdown: no runtime, no API keys, no network access.
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
**Is this for you?** You're already using Claude Code, Codex, or OpenClaw and want it to actually understand your trading instructions — not just have the tool but lack the reasoning to use it — install this.
|
|
33
|
+
> **4.0.0 removed the local API-key edition.** The `bgc`-based skill, its `references/` docs, and the `BITGET_API_KEY` setup are no longer supported. See [Upgrading from 3.x](#upgrading-from-3x).
|
|
35
34
|
|
|
36
35
|
---
|
|
37
36
|
|
|
38
37
|
## Quick Start
|
|
39
38
|
|
|
40
|
-
Paste
|
|
39
|
+
Paste this into your AI agent (requires Node.js 20+):
|
|
41
40
|
|
|
42
41
|
```prompt
|
|
43
|
-
Please
|
|
42
|
+
Please set up Bitget for me: 1. Run npx @bitget-ai/bitget-agent-skill@latest --target all and read the installed SKILL.md; 2. Follow it to connect the MCP https://agent.bitget.com/mcp and open the authorization page. Tell me when it is done.
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
A browser window opens for you to log in to Bitget and approve. You never copy an API key.
|
|
47
46
|
|
|
48
|
-
**Verify it worked.** Ask your AI: *"
|
|
47
|
+
**Verify it worked.** Ask your AI: *"Show my Bitget Agentic account assets."* If it returns your balances, you are connected.
|
|
49
48
|
|
|
50
49
|
---
|
|
51
50
|
|
|
52
|
-
##
|
|
51
|
+
## How It Works
|
|
53
52
|
|
|
54
53
|
```mermaid
|
|
55
54
|
graph LR
|
|
56
|
-
A[You<br/>
|
|
57
|
-
B -->|
|
|
58
|
-
C
|
|
55
|
+
A[You<br/>natural language] --> B[AI agent<br/>with this skill]
|
|
56
|
+
B -->|guide / do_query / do_request_open_api| C[Bitget cloud MCP<br/>agent.bitget.com/mcp]
|
|
57
|
+
C --> D[Bitget]
|
|
59
58
|
style B fill:#28a745,stroke:#333,stroke-width:2px,color:#fff
|
|
60
59
|
```
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
67
|
-
- **Paper trading and error handling**: tell the AI "use demo account" to switch to Bitget's sandbox automatically; when API errors occur, the AI knows whether to retry or surface the issue to you — instead of getting stuck
|
|
61
|
+
- **Three tools.** The MCP exposes `guide` (find what is available), `do_query` (market and reference data), and `do_request_open_api` (trading and account actions).
|
|
62
|
+
- **Market data needs no login.** Trading, account, and Reality / rToken actions need you to authorize once in the browser.
|
|
63
|
+
- **Login is an OAuth token held by your AI client's MCP connection.** It is not an API key, and it is not written into the skill files.
|
|
64
|
+
- **Writes are previewed first.** The skill has the AI preview a write with `dry_run`, show you a confirmation card, and only execute after you agree. High-risk actions such as cancel-all, close-all, set leverage, and repay also require an explicit `confirm` on the server.
|
|
65
|
+
- **Out of scope by design.** Withdrawals, transfers between main account and sub-account, and main-account security settings are not available through the MCP.
|
|
68
66
|
|
|
69
67
|
---
|
|
70
68
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
The CLI alone gives the AI 14 intent verbs over the Unified Trading Account (89 operations) but no semantics — the assistant doesn't know **when** to reach for Bitget, **which** verb to use, or **how** to drive it safely.
|
|
69
|
+
## What Ships in the Package
|
|
74
70
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
- A **trigger description** so Claude Code / Codex / OpenClaw automatically invokes the skill on any Bitget-relevant request — including casual phrasings (*"buy 0.1 BTC at market"*) and Chinese (*"查看我的持仓"*).
|
|
78
|
-
- The **v3 grammar** (`bgc <tool> --action <name> --<param> <value>`) and a **discover-first** workflow, plus a complete catalog of every verb, action, and parameter.
|
|
79
|
-
- **Operational guidance** for write-safety (`--dry-run` / `--confirm`), close-direction rules, demo trading, error categories, and auth setup.
|
|
80
|
-
|
|
81
|
-
Result: you say *"buy 0.1 BTC at market on Bitget"* and it actually works — the assistant composes `bgc order --action place --category SPOT --symbol BTCUSDT --side buy --orderType market --qty 0.1`, previews it with `--dry-run`, confirms with you, then runs it.
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## What Ships in the Skill
|
|
71
|
+
One skill, `bitget-agentic`, following the [Agent Skills](https://agentskills.io) format. The agent loads `SKILL.md` when a request matches and opens a reference file only when it needs one.
|
|
86
72
|
|
|
87
73
|
| File | Purpose |
|
|
88
74
|
|---|---|
|
|
89
|
-
| `SKILL.md` |
|
|
90
|
-
| `references/
|
|
91
|
-
| `references/
|
|
92
|
-
| `references/
|
|
93
|
-
| `references/
|
|
94
|
-
| `references/demo-trading.md` | How to use `--paper-trading` for safe rehearsal. |
|
|
95
|
-
| `references/error-codes.md` | The v3 error payload, category-driven recovery, and the curated Bitget code table. |
|
|
75
|
+
| `SKILL.md` | The three tools, where to start, the `guide` → execute workflow, write safety, and account rules. |
|
|
76
|
+
| `references/first-time-setup.md` | Install the skill, register the MCP in each client, and check that the tools are available. |
|
|
77
|
+
| `references/authorization.md` | Opening authorization in each client, supported clients, Codex notes, network and proxy. |
|
|
78
|
+
| `references/legacy-migration.md` | Detecting an old local Bitget MCP setup and what to tell the user. |
|
|
79
|
+
| `references/troubleshooting.md` | A failure table, and how to remove an old account. |
|
|
96
80
|
|
|
97
81
|
---
|
|
98
82
|
|
|
99
83
|
## Installation
|
|
100
84
|
|
|
101
|
-
### Step 1: Install the CLI
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
npm install -g @bitget-ai/bitget-agent-cli
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
> Why `-g`? `bgc` is a persistent CLI your AI calls dozens of times per session — it must be on `$PATH`. This skill, by contrast, is a one-shot deploy: `npx` copies markdown into your AI tool's skill directory and exits. `npx` always pulls the latest version, so subsequent runs auto-upgrade you.
|
|
108
|
-
|
|
109
|
-
### Step 2: Deploy the Skill File
|
|
110
|
-
|
|
111
85
|
```bash
|
|
112
86
|
# Default — Claude Code only
|
|
113
|
-
npx @bitget-ai/bitget-agent-skill
|
|
87
|
+
npx @bitget-ai/bitget-agent-skill@latest
|
|
114
88
|
|
|
115
89
|
# All supported AI tools
|
|
116
|
-
npx @bitget-ai/bitget-agent-skill --target all
|
|
90
|
+
npx @bitget-ai/bitget-agent-skill@latest --target all
|
|
91
|
+
|
|
92
|
+
# Specific tools
|
|
93
|
+
npx @bitget-ai/bitget-agent-skill@latest --target codex,cursor
|
|
117
94
|
|
|
118
95
|
# Choose interactively
|
|
119
|
-
npx @bitget-ai/bitget-agent-skill --interactive
|
|
96
|
+
npx @bitget-ai/bitget-agent-skill@latest --interactive
|
|
120
97
|
```
|
|
121
98
|
|
|
122
|
-
`--target
|
|
99
|
+
`--target` accepts `claude`, `codex`, `cursor`, `openclaw`, a comma-separated list, or `all`.
|
|
123
100
|
|
|
124
101
|
| Target | Skill location |
|
|
125
102
|
|---|---|
|
|
126
|
-
| Claude Code | `~/.claude/skills/bitget-
|
|
127
|
-
| Codex | `~/.
|
|
128
|
-
|
|
|
103
|
+
| Claude Code | `~/.claude/skills/bitget-agentic/` |
|
|
104
|
+
| Codex | `~/.agents/skills/bitget-agentic/` |
|
|
105
|
+
| Cursor | `~/.cursor/skills/bitget-agentic/` |
|
|
106
|
+
| OpenClaw | `~/.openclaw/skills/bitget-agentic/` |
|
|
107
|
+
|
|
108
|
+
The installer replaces the whole `bitget-agentic` folder on each run. If an earlier version left a copy in `~/.codex/skills/`, it refreshes that copy too. `--skill` from older guides is still accepted and ignored.
|
|
109
|
+
|
|
110
|
+
For an AI client without a skills directory, ask the agent to run the installer and read the `SKILL.md` path it prints.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Connect the Cloud MCP
|
|
115
|
+
|
|
116
|
+
There is one address: `https://agent.bitget.com/mcp`. Your AI agent normally does this step for you by following the skill.
|
|
129
117
|
|
|
130
|
-
|
|
118
|
+
**Claude Code**
|
|
131
119
|
|
|
132
120
|
```bash
|
|
133
|
-
|
|
134
|
-
export BITGET_SECRET_KEY="your-secret-key"
|
|
135
|
-
export BITGET_PASSPHRASE="your-passphrase"
|
|
121
|
+
claude mcp add -s user bitget-mcp-server --transport http https://agent.bitget.com/mcp
|
|
136
122
|
```
|
|
137
123
|
|
|
138
|
-
|
|
124
|
+
**Cursor** — merge into `~/.cursor/mcp.json`:
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"mcpServers": {
|
|
129
|
+
"bitget-mcp-server": {
|
|
130
|
+
"url": "https://agent.bitget.com/mcp",
|
|
131
|
+
"auth": { "CLIENT_ID": "cursor" }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Codex** (0.147 or later)
|
|
139
138
|
|
|
140
139
|
```bash
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
export BITGET_DEMO_PASSPHRASE="your-demo-passphrase"
|
|
140
|
+
codex mcp add bitget-mcp-server --url https://agent.bitget.com/mcp --oauth-client-id codex
|
|
141
|
+
codex mcp login bitget-mcp-server
|
|
144
142
|
```
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Close and reopen your AI tool, then ask: *"What Bitget trading capabilities do you have?"*
|
|
144
|
+
Authorization is limited to the clients listed in `references/authorization.md` inside the skill. Codex has a few callback details worth reading there before you start.
|
|
149
145
|
|
|
150
146
|
---
|
|
151
147
|
|
|
152
|
-
##
|
|
148
|
+
## Security
|
|
153
149
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
| [`@bitget-ai/bitget-signal`](https://github.com/Bitget-AI/bitget-signal) | Market analysis skills — no API key needed. This skill handles trading execution; `bitget-signal` handles market analysis. Complementary, can be installed side by side |
|
|
150
|
+
- **No API keys on your machine.** You approve access in the browser; the skill never asks you to create, paste, or store a key.
|
|
151
|
+
- **The skill files are inert.** Plain Markdown with no runtime process and no network access.
|
|
152
|
+
- **Scoped to an Agentic sub-account.** Withdrawals and main ↔ sub-account transfers are not exposed to the agent.
|
|
153
|
+
- **You can revoke at any time.** On the Bitget website go to "Sub-account management" → "Disconnect Agent". Clear open orders first.
|
|
159
154
|
|
|
160
155
|
---
|
|
161
156
|
|
|
162
|
-
##
|
|
157
|
+
## Upgrading from 3.x
|
|
163
158
|
|
|
164
|
-
|
|
165
|
-
- No API key required — pure Markdown
|
|
166
|
-
- No network access — no runtime process
|
|
167
|
-
- No credential storage — keys are passed via environment variables to `bgc`
|
|
159
|
+
Versions up to 3.4.1 also shipped a local edition that drove the `bgc` CLI with `BITGET_API_KEY` environment variables. That edition is discontinued and was removed in 4.0.0.
|
|
168
160
|
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
161
|
+
1. Install the current skill: `npx @bitget-ai/bitget-agent-skill@latest --target all`.
|
|
162
|
+
2. Remove the old skill directories. The installer prints their paths if it finds them: `bitget-agent-skill/` (the local API-key skill) and `bitget-agentic-connect/` (the first-time guide, now part of `bitget-agentic`) under `~/.claude/skills/`, `~/.codex/skills/`, and `~/.openclaw/skills/`.
|
|
163
|
+
3. Remove `BITGET_API_KEY`, `BITGET_SECRET_KEY`, and `BITGET_PASSPHRASE` from your shell profile, and remove any local Bitget MCP entry from your AI client's MCP config, including the old `@bitget-ai/bitget-agent-mcp` stdio server.
|
|
164
|
+
4. Connect the cloud MCP as above and authorize.
|
|
165
|
+
|
|
166
|
+
When you authorize for the first time, create a **new** Agentic account. Accounts created by the old SDK or npm tools cannot be selected on the new authorization page.
|
|
174
167
|
|
|
175
168
|
---
|
|
176
169
|
|
|
177
170
|
## Troubleshooting
|
|
178
171
|
|
|
179
|
-
###
|
|
180
|
-
|
|
181
|
-
**Cause:** Skill file not deployed or AI tool not restarted.
|
|
182
|
-
|
|
183
|
-
**Fix:**
|
|
184
|
-
1. Re-deploy: `npx @bitget-ai/bitget-agent-skill --target all`
|
|
185
|
-
2. Restart your AI tool completely
|
|
186
|
-
3. Verify: ask *"What Bitget trading modules are available?"*
|
|
172
|
+
### The AI does not seem to know the skill
|
|
187
173
|
|
|
188
|
-
|
|
174
|
+
Re-run the installer, then restart your AI tool. Check that `SKILL.md` exists in the location shown in [Installation](#installation).
|
|
189
175
|
|
|
190
|
-
|
|
176
|
+
### The AI cannot see `guide`, `do_query`, or `do_request_open_api`
|
|
191
177
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
| AI Tool | Expected Location |
|
|
195
|
-
|---|---|
|
|
196
|
-
| Claude Code | `~/.claude/skills/bitget-agent-skill/SKILL.md` |
|
|
197
|
-
| Codex | `~/.codex/skills/bitget-agent-skill/SKILL.md` |
|
|
198
|
-
| OpenClaw | `~/.openclaw/skills/bitget-agent-skill/SKILL.md` |
|
|
178
|
+
The MCP is not registered in this client, or an old local Bitget MCP is still in the config and shadows the new one. Register the address as in [Connect the Cloud MCP](#connect-the-cloud-mcp) and remove the old entry.
|
|
199
179
|
|
|
200
|
-
###
|
|
180
|
+
### Authorization finishes but the AI still says it is not logged in
|
|
201
181
|
|
|
202
|
-
|
|
182
|
+
Ask the AI to run a read-only account call such as `getAccountAssets`. In Cursor, check that `auth.CLIENT_ID` is exactly `cursor`. If the authorization page cannot reach bitget.com, turn on your proxy and try again.
|
|
203
183
|
|
|
204
|
-
|
|
184
|
+
`references/troubleshooting.md` in the skill contains the full failure table the AI follows.
|
|
205
185
|
|
|
206
186
|
---
|
|
207
187
|
|
|
208
188
|
## Updates
|
|
209
189
|
|
|
210
190
|
```bash
|
|
211
|
-
|
|
212
|
-
npx @bitget-ai/bitget-agent-installer upgrade-all --target all
|
|
213
|
-
|
|
214
|
-
# Or update just this skill
|
|
215
|
-
npx @bitget-ai/bitget-agent-skill@latest
|
|
191
|
+
npx @bitget-ai/bitget-agent-skill@latest --target all
|
|
216
192
|
```
|
|
217
193
|
|
|
218
194
|
---
|
|
219
195
|
|
|
220
196
|
## FAQ
|
|
221
197
|
|
|
222
|
-
**Will the AI
|
|
223
|
-
|
|
198
|
+
**Will the AI place orders on its own after I install this?**
|
|
199
|
+
The skill instructs the AI to preview every write, show you a confirmation card, and wait for your clear "yes" before executing.
|
|
224
200
|
|
|
225
|
-
**
|
|
226
|
-
|
|
201
|
+
**Do I need an API key?**
|
|
202
|
+
No. Access is granted through browser authorization and can be revoked on the Bitget website.
|
|
227
203
|
|
|
228
|
-
**
|
|
229
|
-
|
|
204
|
+
**Does the skill file need network access?**
|
|
205
|
+
No. It is Markdown. All requests are made by your AI client to the cloud MCP.
|
|
230
206
|
|
|
231
|
-
**
|
|
232
|
-
No.
|
|
207
|
+
**Can I still use `bgc` and the local API-key skill?**
|
|
208
|
+
No. That edition is no longer supported. See [Upgrading from 3.x](#upgrading-from-3x).
|
|
233
209
|
|
|
234
210
|
**Is it free?**
|
|
235
211
|
MIT-licensed and free to use.
|
|
236
212
|
|
|
237
213
|
---
|
|
238
214
|
|
|
215
|
+
## Developing the Skill
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
npm run validate
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
checks `skills/` against the Agent Skills specification: the name matches its folder, the description is within 1,024 characters, the frontmatter uses only portable fields, the body stays under the size limits, and every reference file is linked from `SKILL.md`. The build and `npm publish` run the same check.
|
|
222
|
+
|
|
223
|
+
`evals/` holds the scenarios the skill is expected to handle. Run them before and after changing the skill.
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
239
227
|
## Contributing
|
|
240
228
|
|
|
241
229
|
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/Bitget-AI/agent-skill/issues)
|
|
@@ -250,6 +238,5 @@ MIT-licensed and free to use.
|
|
|
250
238
|
|
|
251
239
|
---
|
|
252
240
|
|
|
253
|
-
<sub>Part of the **[Bitget Agent Hub](https://github.com/Bitget-AI/agent_hub)** ecosystem
|
|
254
|
-
|
|
255
|
-
Foundation: [agent-sdk](https://github.com/Bitget-AI/agent-sdk) · Execution: [agent-cli](https://github.com/Bitget-AI/agent-cli) · Desktop: [agent-mcp](https://github.com/Bitget-AI/agent-mcp) · Market signals: [bitget-signal](https://github.com/Bitget-AI/bitget-signal)</sub>
|
|
241
|
+
<sub>Part of the **[Bitget Agent Hub](https://github.com/Bitget-AI/agent_hub)** ecosystem.<br/>
|
|
242
|
+
⚠️ Trading cryptocurrency carries risk; you are responsible for any orders your AI agent places.</sub>
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.0
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitget-ai/bitget-agent-skill",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"packageManager": "pnpm@8.14.1",
|
|
5
|
-
"description": "Official Bitget AI skill — teaches Claude Code, Codex,
|
|
5
|
+
"description": "Official Bitget AI skill — teaches Claude Code, Codex, Cursor, OpenClaw and other AI agents to connect the Bitget cloud MCP (https://agent.bitget.com/mcp), authorize a Bitget Agentic account with browser OAuth, and trade or query from natural language. No local API keys. Run `npx @bitget-ai/bitget-agent-skill` to deploy into your AI tool's skill directory.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"bin": {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"skills",
|
|
13
|
-
"references",
|
|
14
13
|
"scripts",
|
|
15
14
|
"CHANGELOG.md",
|
|
16
15
|
"README.md",
|
|
@@ -18,11 +17,9 @@
|
|
|
18
17
|
"VERSION"
|
|
19
18
|
],
|
|
20
19
|
"scripts": {
|
|
21
|
-
"gen-references": "node scripts/gen-references.js",
|
|
22
20
|
"install-skill": "node scripts/install.js",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"prepublishOnly": "node scripts/gen-references.js"
|
|
21
|
+
"validate": "node scripts/validate-skills.mjs",
|
|
22
|
+
"prepublishOnly": "node scripts/validate-skills.mjs"
|
|
26
23
|
},
|
|
27
24
|
"engines": {
|
|
28
25
|
"node": ">=20.0.0"
|
|
@@ -37,13 +34,12 @@
|
|
|
37
34
|
"trading",
|
|
38
35
|
"crypto",
|
|
39
36
|
"ai-agent",
|
|
40
|
-
"natural-language"
|
|
37
|
+
"natural-language",
|
|
38
|
+
"mcp",
|
|
39
|
+
"oauth"
|
|
41
40
|
],
|
|
42
41
|
"publishConfig": {
|
|
43
42
|
"access": "public",
|
|
44
43
|
"registry": "https://registry.npmjs.org/"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@bitget-ai/bitget-agent-sdk": "^3.0.0"
|
|
48
44
|
}
|
|
49
45
|
}
|