@bitget-ai/bitget-agent-skill 4.1.0 → 4.1.2
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 +38 -0
- package/VERSION +1 -1
- package/package.json +1 -1
- package/scripts/validate-skills.mjs +13 -2
- package/skills/bitget-agentic/SKILL.md +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ 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.1.2] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Search each action once.** The skill told agents to search first and not
|
|
13
|
+
to rely on memory, and they searched before every order: in the two days
|
|
14
|
+
after `search` went live, 69% of orders had a search for the order action
|
|
15
|
+
in the three minutes before them. That is a round trip of model time each
|
|
16
|
+
time. The skill now says that what `search` returns holds for the rest of
|
|
17
|
+
the conversation, and to search again only for an action not looked up yet.
|
|
18
|
+
- **Fewer calls around an order.** The result of an order carries `order`
|
|
19
|
+
(what was executed, at what price, for what fee), so the skill says not to
|
|
20
|
+
look the order up to report it. When the user names a value, the skill
|
|
21
|
+
says to send `amount` and let the server work out the quantity.
|
|
22
|
+
|
|
23
|
+
## [4.1.1] - 2026-11-25
|
|
24
|
+
|
|
25
|
+
Publish only after the cloud MCP's `search` takes `skill` and the preview of
|
|
26
|
+
`placeOrder` carries `preflight`.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- **The skill reports its version.** It tells the agent to pass
|
|
31
|
+
`skill="4.1.1"` on `search`. The skill is a file on the user's machine, so
|
|
32
|
+
until now nothing showed how many agents follow which version; the MCP
|
|
33
|
+
keeps the value with its record of the call. Nothing else is sent, and the
|
|
34
|
+
result of the search does not change.
|
|
35
|
+
- **Previewing an order checks it.** The preview of `placeOrder` now carries
|
|
36
|
+
`preflight`: the server reads the symbol's precision and minimum, the
|
|
37
|
+
price, and the account's position mode, balance and position, and lists
|
|
38
|
+
what the exchange would refuse. The skill says to correct those problems
|
|
39
|
+
and no longer tells the agent to read the position mode itself before a
|
|
40
|
+
futures order.
|
|
41
|
+
- **One call for the state of the account.** Where the skill says to check
|
|
42
|
+
positions and open orders before a write, it names `getAccountSnapshot`.
|
|
43
|
+
- **`instructed_at`.** When a write carries out a signal or a scheduled
|
|
44
|
+
rule, the skill says to pass the time that instruction was issued.
|
|
45
|
+
|
|
8
46
|
## [4.1.0] - 2026-11-24
|
|
9
47
|
|
|
10
48
|
Publish only after the cloud MCP lists `search`, `read`, and `write`.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.1.
|
|
1
|
+
4.1.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitget-ai/bitget-agent-skill",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"packageManager": "pnpm@8.14.1",
|
|
5
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",
|
|
@@ -209,8 +209,10 @@ function validateSkill(dirName) {
|
|
|
209
209
|
return errors;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
// One version, written in four places
|
|
213
|
-
//
|
|
212
|
+
// One version, written in four places, and a fifth inside the skill's text:
|
|
213
|
+
// the version it tells the agent to report on search (skill="x.y.z"). A
|
|
214
|
+
// release where they disagree publishes a package whose skill reports a
|
|
215
|
+
// different version than npm does.
|
|
214
216
|
function versionErrors(skillDirs) {
|
|
215
217
|
const errors = [];
|
|
216
218
|
const read = (file) => (existsSync(join(ROOT, file)) ? readFileSync(join(ROOT, file), "utf8") : null);
|
|
@@ -235,6 +237,15 @@ function versionErrors(skillDirs) {
|
|
|
235
237
|
else if (found[1] !== version) {
|
|
236
238
|
errors.push(`skills/${dir}/SKILL.md metadata.version is ${found[1]}, VERSION is ${version}`);
|
|
237
239
|
}
|
|
240
|
+
const reported = [...skill.matchAll(/skill="([^"]+)"/g)].map((m) => m[1]);
|
|
241
|
+
if (reported.length === 0) {
|
|
242
|
+
errors.push(`skills/${dir}/SKILL.md does not tell the agent to pass skill="${version}" on search`);
|
|
243
|
+
}
|
|
244
|
+
for (const value of reported) {
|
|
245
|
+
if (value !== version) {
|
|
246
|
+
errors.push(`skills/${dir}/SKILL.md says skill="${value}", VERSION is ${version}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
238
249
|
}
|
|
239
250
|
|
|
240
251
|
const changelog = read("CHANGELOG.md");
|
|
@@ -19,8 +19,8 @@ license: MIT
|
|
|
19
19
|
compatibility: Requires an AI client that can connect remote HTTP MCP servers with OAuth, and network access to agent.bitget.com and bitget.com.
|
|
20
20
|
metadata:
|
|
21
21
|
author: "Bitget"
|
|
22
|
-
version: "4.1.
|
|
23
|
-
updated: "2026-11-
|
|
22
|
+
version: "4.1.2"
|
|
23
|
+
updated: "2026-11-25"
|
|
24
24
|
mcp-server: "https://agent.bitget.com/mcp"
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -46,7 +46,7 @@ Priorities, in order: safety, then a clear account state, then speed.
|
|
|
46
46
|
|
|
47
47
|
## Start here
|
|
48
48
|
|
|
49
|
-
1. **Are the tools available in this chat?** Try `search(query="account balance")`. If the tools are not there, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
|
|
49
|
+
1. **Are the tools available in this chat?** Try `search(query="account balance", skill="4.1.2")`. If the tools are not there, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
|
|
50
50
|
2. **Does the request need login?** Market data does not, so answer it right away. For trading, account, or stock-token company data, check login with one read-only account call:
|
|
51
51
|
|
|
52
52
|
```
|
|
@@ -65,6 +65,10 @@ search(query="BTC price") → name, params, notes, call → read(name, par
|
|
|
65
65
|
search(query="place order") → name, params, notes, call → write(name, params, dry_run=true)
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
**Pass `skill="4.1.2"` on every `search` call.** It is this skill's version; it tells Bitget which skill versions are in use and changes nothing in the result.
|
|
69
|
+
|
|
70
|
+
**Search each action once.** What `search` returns for an action holds for the rest of the conversation. For the next order, the next balance check, the next query of the same kind, call it again from the result you already have, with new values; do not search for it again. Search again only for an action you have not looked up yet in this conversation.
|
|
71
|
+
|
|
68
72
|
**Search first, with the plain words of the thing:** "account balance", "open positions", "BTC candles", "stop loss", "funding rate", "NVDA company overview". Do not guess a name or a parameter, and do not rely on what you remember of Bitget's API: what an action takes is in the search result, and it is the server's current definition.
|
|
69
73
|
|
|
70
74
|
Each result gives:
|
|
@@ -94,9 +98,9 @@ If the balance is insufficient, the user deposits from the main account on the B
|
|
|
94
98
|
|
|
95
99
|
Writes move real funds, so each one takes three steps:
|
|
96
100
|
|
|
97
|
-
1. **Preview** with `write(name, params, dry_run=true)`. If the preview carries `warnings`, correct the call first.
|
|
101
|
+
1. **Preview** with `write(name, params, dry_run=true)`. If the preview carries `warnings`, correct the call first. When the user names a value ("100 USDT of BTC"), send `amount` instead of `qty` and let the server convert it. The preview of an order also carries `preflight`: the server has read the symbol's precision and minimum, the current price, and this account's position mode, balance and open position, and lists under `problems` what the exchange would refuse as written. Correct every problem before going on; do not read those things yourself first.
|
|
98
102
|
2. **Show a confirmation card:** symbol, side, size with its unit, price type, account, mainnet, liquidation price when available, and "Confirm execution?". The unit of `qty` is in the action's `notes`: "0.01 BTC" and "0.01 USDT" are different orders.
|
|
99
|
-
3. **Execute** with `write(name, params)` only after the user clearly replies "yes" or "confirm"; add `confirm=true` when the action is high-risk. "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call.
|
|
103
|
+
3. **Execute** with `write(name, params)` only after the user clearly replies "yes" or "confirm"; add `confirm=true` when the action is high-risk. "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call. The result of an order carries `order`: what was executed, at what price and for what fee. Report that to the user; there is no need to look the order up. When the write carries out a signal, an alert or a scheduled rule, also pass `instructed_at`: the time that instruction was issued.
|
|
100
104
|
|
|
101
105
|
The server refuses high-risk writes (cancel all, close all, countdown cancel-all, set leverage, repay, holding mode, account mode) without `confirm: true`.
|
|
102
106
|
|
|
@@ -104,13 +108,13 @@ The server refuses high-risk writes (cancel all, close all, countdown cancel-all
|
|
|
104
108
|
|
|
105
109
|
- Check positions before closing one.
|
|
106
110
|
- After a risk-type error, do not add size.
|
|
107
|
-
-
|
|
111
|
+
- A futures order is written differently in one-way and hedge position mode. The preview says which mode the account is in and whether the order fits it.
|
|
108
112
|
- Batch place, cancel, or modify (`batchOrder`, `batchCancel`, `batchModifyOrders`): pass `params` as a JSON array of order objects.
|
|
109
113
|
- When rate limited, retry later. Do not re-authorize.
|
|
110
114
|
|
|
111
115
|
## Account rules
|
|
112
116
|
|
|
113
|
-
- **Several agents can be connected to one Agentic account.** Each one authorizes separately, and connecting another does not disconnect the ones already there. The user may also be trading by hand. So check positions and open orders on the exchange before a write; do not rely on what you remember, and do not assume an order you did not place is a mistake.
|
|
117
|
+
- **Several agents can be connected to one Agentic account.** Each one authorizes separately, and connecting another does not disconnect the ones already there. The user may also be trading by hand. So check positions and open orders on the exchange before a write (`read(name="getAccountSnapshot")` returns balance, positions and open orders in one call); do not rely on what you remember, and do not assume an order you did not place is a mistake.
|
|
114
118
|
- **This client holds one login.** Authorizing it for a different account switches this client to that account. Anything it was watching on the old account stops, so warn the user before you switch and never switch the login silently.
|
|
115
119
|
- If the user wants one agent to manage several accounts, point them to the [product feedback group](https://telegram.me/+o1tYqQ_lXxllYjgy). Use the same link for product-level questions this skill cannot answer.
|
|
116
120
|
- **Disconnecting is done here, by you.** When the user clearly asks to disconnect or log out of Bitget, say what will happen (this agent's authorization ends; open orders and positions stay on the account; other agents connected to it keep working), then call:
|