@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 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 reasoning guide for Claude Code, Codex and terminal crypto trading" width="120" />
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>Give Claude Code, Codex, and OpenClaw the judgment to understand your trading instructions — when to call Bitget, how to build the right command, and what to do when something goes wrong.</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="#what-changes-after-installing">What Changes</a> ·
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
- > **Bitget Agent Hub** is Bitget's official open-source AI Agent ecosystem. This repository is `bitget-agent-skill` — the **skill surface** that teaches terminal AI agents when and how to correctly invoke Bitget tools. Ecosystem packages: [agent-skill](https://github.com/Bitget-AI/agent-skill) (this repo), [agent-cli](https://github.com/Bitget-AI/agent-cli), [agent-mcp](https://github.com/Bitget-AI/agent-mcp), [agent-sdk](https://github.com/Bitget-AI/agent-sdk), [bitget-signal](https://github.com/Bitget-AI/bitget-signal), [agent_hub](https://github.com/Bitget-AI/agent_hub).
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
- `@bitget-ai/bitget-agent-skill` is Bitget's official AI trading skill file, giving Claude Code, Codex, and OpenClaw the judgment to use Bitget tools correctly — knowing when to invoke Bitget, how to break your intent into the right multi-step operations, how to handle confirmation before write actions, and what to do when something goes wrong. Pure markdown, runtime-free.
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 the block below into your AI agent — it will handle the entire setup (requires Node.js 20+):
39
+ Paste this into your AI agent (requires Node.js 20+):
41
40
 
42
41
  ```prompt
43
- Please help me install the Bitget trading skill (requires Node.js 20+): 1. Run npx @bitget-ai/bitget-agent-skill --target all to deploy the skill files to my AI tool; 2. Run npm install -g @bitget-ai/bitget-agent-cli to install the bgc CLI globally. Tell me the result when done.
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
- > Both must be installed together: the skill file is the AI's instruction manual, `bgc` is the execution tool — the skill teaches the AI when to call it and how to build commands, `bgc` actually makes the API requests. Without either one, the full flow is incomplete.
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: *"What trading modules does Bitget support?"* If it returns the correct module list (market, trade, account, etc.), the skill is loaded and active.
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
- ## What Changes After Installing
51
+ ## How It Works
53
52
 
54
53
  ```mermaid
55
54
  graph LR
56
- A[You<br/>Natural Language] --> B[Claude Code / Codex<br/>with bitget-agent-skill]
57
- B -->|Generates v3 Command| C[bgc CLI<br/>bitget-agent-cli]
58
- C -->|HMAC-SHA256 Signed| D[Bitget REST API]
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
- Without the skill, `bgc` executes one command at a time. With the skill loaded, the AI can chain your intent into a sequence of operations across modules — check positions, evaluate conditions, place the order, handle the result — all in one go.
63
-
64
- - **Trigger recognition in English and Chinese**: whether you say "buy BTC at market" or「帮我买 BTC」, the AI recognizes it as a Bitget trading instruction and calls the right tool automatically — no need to specify command syntax
65
- - **v3 grammar and full reference**: the skill file includes the `bgc` v3 grammar (`bgc <tool> --action <name>`) and an auto-generated catalog of every operation — the AI knows which intent verb maps to which operation and how to fill in the parameters
66
- - **Multi-step workflow**: "check my positions, and if I have no BTC open a 10x long" — the AI queries first, reasons, then places the order, showing `[CAUTION]` before every write operation and waiting for your confirmation
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
- ## Why a Skill (vs. just installing `bgc`)
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
- The skill adds:
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` | Top-level skill definition with trigger phrases (English + Chinese) so the AI knows when to invoke, plus the v3 grammar, the 14-verb map, and the write-safety workflow. |
90
- | `references/commands.md` | Auto-generated static catalog — every domain, verb, action, and parameter (with enums + descriptions), from the SDK's own `discover` surface. |
91
- | `references/discover-guide.md` | How to navigate the live surface with `bgc discover` (the four rungs, search, `raw`). |
92
- | `references/trading-safety.md` | Close-direction rules (one-way/hedge), TP/SL, `qty` units, cancel-all, and withdrawal safety. |
93
- | `references/auth-setup.md` | How to create a Bitget API key and configure environment variables. |
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 all` deploys to Claude Code, Codex, and OpenClaw simultaneously.
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-agent-skill/` |
127
- | Codex | `~/.codex/skills/bitget-agent-skill/` |
128
- | OpenClaw | `~/.openclaw/skills/bitget-agent-skill/` |
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
- ### Step 3: Set Up Credentials
118
+ **Claude Code**
131
119
 
132
120
  ```bash
133
- export BITGET_API_KEY="your-api-key"
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
- [Create an API key](https://www.bitget.com/api-doc/common/intro) if you don't have one. For demo trading, use a [Demo API Key](https://www.bitget.com/account/demo) instead:
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
- export BITGET_DEMO_API_KEY="your-demo-key"
142
- export BITGET_DEMO_SECRET_KEY="your-demo-secret"
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
- ### Step 4: Restart and Verify
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
- ## Related Tools
148
+ ## Security
153
149
 
154
- | Tool | Relationship |
155
- |---|---|
156
- | [`@bitget-ai/bitget-agent-cli`](https://github.com/Bitget-AI/agent-cli) | Must be installed together: `bgc` is the execution tool, the skill file is the AI's instruction manual — neither works without the other |
157
- | [`@bitget-ai/bitget-agent-mcp`](https://github.com/Bitget-AI/agent-mcp) | Alternative for desktop AI (Claude Desktop, Cursor) — no `bgc` required |
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
- ## Security
157
+ ## Upgrading from 3.x
163
158
 
164
- The skill files themselves:
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
- All actual API calls go through `bgc`, which provides:
170
- - Credentials live only in environment variables (no `.env` file parsing)
171
- - `--read-only` strips all write tools
172
- - `--paper-trading` switches to the demo environment
173
- - Local HMAC-SHA256 request signing
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
- ### "Skill not recognized by AI"
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
- ### "AI has bgc but doesn't understand trading commands"
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
- **Cause:** The skill file is missing — `bgc` is installed but the AI has no instruction manual.
176
+ ### The AI cannot see `guide`, `do_query`, or `do_request_open_api`
191
177
 
192
- **Fix:** Deploy the skill and verify the files landed in the correct location:
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
- ### "bgc: command not found"
180
+ ### Authorization finishes but the AI still says it is not logged in
201
181
 
202
- **Cause:** `bitget-agent-cli` not installed or not on `$PATH`.
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
- **Fix:** `npm install -g @bitget-ai/bitget-agent-cli` then restart your terminal.
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
- # Update all Bitget AI packages
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 automatically place orders after the skill is installed?**
223
- No. For write operations like placing orders or transferring funds, the AI displays a `[CAUTION]` annotation and waits for your confirmation before executing.
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
- **How do I trade without real money?**
226
- Tell your AI "use demo account" or "use paper trading" — it will switch to Bitget's Demo Trading environment automatically. Requires a [Demo API Key](https://www.bitget.com/account/demo).
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
- **What's the difference between this and the MCP server?**
229
- Terminal AI (Claude Code, Codex) → install `bitget-agent-skill` + `bgc`. Desktop AI (Claude Desktop, Cursor) → install `bitget-agent-mcp`. Both enable natural language Bitget trading — they adapt to different AI environments.
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
- **Does the skill file require an API key or network access?**
232
- No. Pure Markdown files with no runtime process. All API calls happen at execution time through `bgc`.
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 — the official open-source AI Agent ecosystem from Bitget.<br/>
254
- Trading Stack · Skill Surface. ⚠️ Trading cryptocurrency carries risk; you are responsible for any orders your AI agent places. Use demo account to practice safely before trading with real funds.<br/>
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
- 3.4.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.4.1",
3
+ "version": "4.0.0",
4
4
  "packageManager": "pnpm@8.14.1",
5
- "description": "Official Bitget AI skill — teaches Claude Code, Codex, and OpenClaw when and how to drive the Bitget Unified Trading Account (UTA / v3) API through the `bgc` CLI from natural language. Run `npx @bitget-ai/bitget-agent-skill` to deploy into your AI tool's skill directory.",
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
- "e2e:real": "node e2e/run.mjs",
24
- "e2e:agent": "node e2e/agent/run.mjs",
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
  }