@bitget-ai/bitget-agent-skill 3.0.0 → 3.1.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 CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  ---
29
29
 
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).
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
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
33
 
@@ -62,7 +62,7 @@ graph LR
62
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
63
 
64
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 all 109 operations — the AI knows which intent verb maps to which operation and how to fill in the parameters
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
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
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
68
68
 
@@ -70,12 +70,12 @@ Without the skill, `bgc` executes one command at a time. With the skill loaded,
70
70
 
71
71
  ## Why a Skill (vs. just installing `bgc`)
72
72
 
73
- The CLI alone gives the AI 16 intent verbs over the Unified Trading Account (109 operations) but no semantics — the assistant doesn't know **when** to reach for Bitget, **which** verb to use, or **how** to drive it safely.
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.
74
74
 
75
75
  The skill adds:
76
76
 
77
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 auto-generated from the SDK.
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
79
  - **Operational guidance** for write-safety (`--dry-run` / `--confirm`), close-direction rules, demo trading, error categories, and auth setup.
80
80
 
81
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.
@@ -86,9 +86,9 @@ Result: you say *"buy 0.1 BTC at market on Bitget"* and it actually works — th
86
86
 
87
87
  | File | Purpose |
88
88
  |---|---|
89
- | `SKILL.md` | Top-level skill definition with trigger phrases (English + Chinese) so the AI knows when to invoke, plus the v3 grammar, the 16-verb map, and the write-safety workflow. |
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
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`, hidden modules). |
91
+ | `references/discover-guide.md` | How to navigate the live surface with `bgc discover` (the four rungs, search, `raw`). |
92
92
  | `references/trading-safety.md` | Close-direction rules (one-way/hedge), TP/SL, `qty` units, cancel-all, and withdrawal safety. |
93
93
  | `references/auth-setup.md` | How to create a Bitget API key and configure environment variables. |
94
94
  | `references/demo-trading.md` | How to use `--paper-trading` for safe rehearsal. |
@@ -250,6 +250,6 @@ MIT-licensed and free to use.
250
250
 
251
251
  ---
252
252
 
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/>
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
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
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>
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "packageManager": "pnpm@8.14.1",
5
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.",
6
6
  "type": "module",
@@ -73,7 +73,7 @@ bgc discover --search withdraw
73
73
 
74
74
  ## Widening the surface
75
75
 
76
- By default the CLI exposes `--modules all` at the **intent** surface (the 16 curated
76
+ By default the CLI exposes `--modules all` at the **intent** surface (the 14 curated
77
77
  verbs). Two ways to see more:
78
78
 
79
79
  - **Hidden to-B modules** (`broker`, `inst_loan`) are NOT in `all` — name them
package/skills/SKILL.md CHANGED
@@ -46,7 +46,7 @@ transfers, withdrawals) needs API credentials as environment variables. See
46
46
  bgc <tool> [--action <name>] [--<param> <value> ...] [global flags]
47
47
  ```
48
48
 
49
- - **One verb per call.** There are 16 intent verbs (e.g. `market`, `order`,
49
+ - **One verb per call.** There are 14 intent verbs (e.g. `market`, `order`,
50
50
  `position`, `account_overview`, `transfer_funds`, `withdraw`).
51
51
  - **`--action`** picks the intent for an action-routed verb
52
52
  (`bgc order --action place`, `bgc position --action closeAll`).
@@ -90,7 +90,7 @@ On error, branch on `error.category`: `auth`/`param` → fix the request and res
90
90
  `balance`/`risk` → surface to the user (cannot self-heal); `rate`/`network` → back
91
91
  off and retry; `config` → check account mode / credentials. See `references/error-codes.md`.
92
92
 
93
- ## The 16 verbs
93
+ ## The 14 verbs
94
94
 
95
95
  | Domain | Verb | Use for |
96
96
  |--------|------|---------|
@@ -108,8 +108,6 @@ off and retry; `config` → check account mode / credentials. See `references/er
108
108
  | subaccount | `subaccount` | Create/list sub-accounts, manage their API keys & assets |
109
109
  | loan | `loan` | Crypto loans: borrow, repay, orders, collateral |
110
110
  | tax | `tax` | Tax/transaction records |
111
- | broker | `broker` | *(hidden, to-B)* Broker sub-accounts & API keys — opt in: `--modules broker` |
112
- | instloan | `inst_loan` | *(hidden, to-B)* Institutional loans — opt in: `--modules instloan` |
113
111
 
114
112
  Use `discover` for the actions and exact params of any verb.
115
113