skillpp 0.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.
Files changed (208) hide show
  1. package/COMPATIBILITY.md +58 -0
  2. package/LICENSE +21 -0
  3. package/README.md +307 -0
  4. package/README.zh-CN.md +307 -0
  5. package/SKILL.md +490 -0
  6. package/adapters/binance-ai.md +22 -0
  7. package/adapters/claude.md +21 -0
  8. package/adapters/gemini.md +26 -0
  9. package/adapters/gpt.md +28 -0
  10. package/adapters/kimi.md +26 -0
  11. package/adapters/mimo.md +22 -0
  12. package/adapters/openclaw.md +29 -0
  13. package/assets/skillpp-banner.png +0 -0
  14. package/package.json +59 -0
  15. package/pipelines.md +310 -0
  16. package/prompts/newbie-mode.md +48 -0
  17. package/prompts/router-prompt.md +32 -0
  18. package/prompts/universal-system-prompt.md +41 -0
  19. package/registry.md +209 -0
  20. package/rules.md +323 -0
  21. package/schemas/audit.schema.json +67 -0
  22. package/schemas/checkpoint.schema.json +86 -0
  23. package/schemas/handoff.schema.json +82 -0
  24. package/schemas/token.schema.json +36 -0
  25. package/scripts/compatibility-check.mjs +130 -0
  26. package/scripts/selftest.mjs +384 -0
  27. package/scripts/skillpp.mjs +448 -0
  28. package/scripts/validate-skillpp.mjs +140 -0
  29. package/skillpp.manifest.json +714 -0
  30. package/skills/audit-plus/SKILL.md +612 -0
  31. package/skills/binance/binance/CHANGELOG.md +112 -0
  32. package/skills/binance/binance/LICENSE.md +9 -0
  33. package/skills/binance/binance/SKILL.md +69 -0
  34. package/skills/binance/binance/references/algo.md +21 -0
  35. package/skills/binance/binance/references/alpha.md +9 -0
  36. package/skills/binance/binance/references/auth.md +32 -0
  37. package/skills/binance/binance/references/c2c.md +5 -0
  38. package/skills/binance/binance/references/convert.md +19 -0
  39. package/skills/binance/binance/references/copy-trading.md +6 -0
  40. package/skills/binance/binance/references/crypto-loan.md +27 -0
  41. package/skills/binance/binance/references/derivatives-options-streams.md +25 -0
  42. package/skills/binance/binance/references/derivatives-options.md +85 -0
  43. package/skills/binance/binance/references/derivatives-portfolio-margin-pro-streams.md +5 -0
  44. package/skills/binance/binance/references/derivatives-portfolio-margin-pro.md +34 -0
  45. package/skills/binance/binance/references/derivatives-portfolio-margin-streams.md +5 -0
  46. package/skills/binance/binance/references/derivatives-portfolio-margin.md +146 -0
  47. package/skills/binance/binance/references/dual-investment.md +15 -0
  48. package/skills/binance/binance/references/fiat.md +9 -0
  49. package/skills/binance/binance/references/futures-coin-streams.md +29 -0
  50. package/skills/binance/binance/references/futures-coin.md +109 -0
  51. package/skills/binance/binance/references/futures-usds-streams.md +35 -0
  52. package/skills/binance/binance/references/futures-usds.md +144 -0
  53. package/skills/binance/binance/references/gift-card.md +10 -0
  54. package/skills/binance/binance/references/margin-trading-streams.md +6 -0
  55. package/skills/binance/binance/references/margin-trading.md +101 -0
  56. package/skills/binance/binance/references/mining.md +17 -0
  57. package/skills/binance/binance/references/pay.md +5 -0
  58. package/skills/binance/binance/references/rebate.md +5 -0
  59. package/skills/binance/binance/references/simple-earn.md +56 -0
  60. package/skills/binance/binance/references/spot-streams.md +25 -0
  61. package/skills/binance/binance/references/spot.md +114 -0
  62. package/skills/binance/binance/references/staking.md +59 -0
  63. package/skills/binance/binance/references/sub-account.md +67 -0
  64. package/skills/binance/binance/references/vip-loan.md +27 -0
  65. package/skills/binance/binance/references/wallet.md +75 -0
  66. package/skills/binance/fiat/CHANGELOG.md +11 -0
  67. package/skills/binance/fiat/LICENSE.md +9 -0
  68. package/skills/binance/fiat/SKILL.md +169 -0
  69. package/skills/binance/fiat/references/authentication.md +126 -0
  70. package/skills/binance/fiat/references/sapi-endpoints.md +217 -0
  71. package/skills/binance/onchain-pay/.local.md.example +10 -0
  72. package/skills/binance/onchain-pay/CHANGELOG.md +20 -0
  73. package/skills/binance/onchain-pay/LICENSE.md +9 -0
  74. package/skills/binance/onchain-pay/SKILL.md +466 -0
  75. package/skills/binance/onchain-pay/references/authentication.md +92 -0
  76. package/skills/binance/onchain-pay/scripts/sign_and_call.sh +52 -0
  77. package/skills/binance/p2p/CHANGELOG.md +33 -0
  78. package/skills/binance/p2p/LICENSE.md +9 -0
  79. package/skills/binance/p2p/SKILL.md +1082 -0
  80. package/skills/binance/p2p/references/agent-sapi-api.md +795 -0
  81. package/skills/binance/p2p/references/authentication.md +100 -0
  82. package/skills/binance/payment/SKILL.md +824 -0
  83. package/skills/binance/payment/common.py +560 -0
  84. package/skills/binance/payment/payment_skill.py +86 -0
  85. package/skills/binance/payment/receive.py +109 -0
  86. package/skills/binance/payment/references/setup-guide.md +77 -0
  87. package/skills/binance/payment/requirements.txt +4 -0
  88. package/skills/binance/payment/send.py +952 -0
  89. package/skills/binance/payment/send_extension/__init__.py +43 -0
  90. package/skills/binance/payment/send_extension/base.py +48 -0
  91. package/skills/binance/payment/send_extension/c2c.py +193 -0
  92. package/skills/binance/payment/send_extension/pix.py +316 -0
  93. package/skills/binance/square-post/README.md +62 -0
  94. package/skills/binance/square-post/SKILL.md +171 -0
  95. package/skills/binance/square-post/scripts/lib.mjs +175 -0
  96. package/skills/binance/square-post/scripts/post-image.mjs +80 -0
  97. package/skills/binance/square-post/scripts/post-text.mjs +41 -0
  98. package/skills/binance/square-post/scripts/post-video.mjs +110 -0
  99. package/skills/binance/square-post/scripts/save-key.mjs +34 -0
  100. package/skills/binance-web3/binance-agentic-wallet/SKILL.md +150 -0
  101. package/skills/binance-web3/binance-agentic-wallet/references/authentication.md +136 -0
  102. package/skills/binance-web3/binance-agentic-wallet/references/limit-order.md +204 -0
  103. package/skills/binance-web3/binance-agentic-wallet/references/market-order.md +179 -0
  104. package/skills/binance-web3/binance-agentic-wallet/references/prediction.md +489 -0
  105. package/skills/binance-web3/binance-agentic-wallet/references/preflight.md +66 -0
  106. package/skills/binance-web3/binance-agentic-wallet/references/security.md +47 -0
  107. package/skills/binance-web3/binance-agentic-wallet/references/send.md +53 -0
  108. package/skills/binance-web3/binance-agentic-wallet/references/wallet-setting.md +86 -0
  109. package/skills/binance-web3/binance-agentic-wallet/references/wallet-view.md +312 -0
  110. package/skills/binance-web3/binance-agentic-wallet/references/x402-payment.md +259 -0
  111. package/skills/binance-web3/binance-tokenized-securities-info/SKILL.md +613 -0
  112. package/skills/binance-web3/crypto-market-rank/SKILL.md +91 -0
  113. package/skills/binance-web3/crypto-market-rank/references/cli.md +219 -0
  114. package/skills/binance-web3/crypto-market-rank/scripts/cli.mjs +149 -0
  115. package/skills/binance-web3/meme-rush/SKILL.md +72 -0
  116. package/skills/binance-web3/meme-rush/references/cli.md +158 -0
  117. package/skills/binance-web3/meme-rush/scripts/cli.mjs +101 -0
  118. package/skills/binance-web3/query-address-info/SKILL.md +61 -0
  119. package/skills/binance-web3/query-address-info/references/cli.md +56 -0
  120. package/skills/binance-web3/query-address-info/scripts/cli.mjs +132 -0
  121. package/skills/binance-web3/query-token-audit/SKILL.md +162 -0
  122. package/skills/binance-web3/query-token-info/SKILL.md +83 -0
  123. package/skills/binance-web3/query-token-info/references/cli.md +135 -0
  124. package/skills/binance-web3/query-token-info/scripts/cli.mjs +112 -0
  125. package/skills/binance-web3/trading-signal/SKILL.md +66 -0
  126. package/skills/binance-web3/trading-signal/references/cli.md +90 -0
  127. package/skills/binance-web3/trading-signal/scripts/cli.mjs +92 -0
  128. package/skills/four-meme/four-guard/API-Contract-TaxToken.md +277 -0
  129. package/skills/four-meme/four-guard/API-CreateToken.02-02-2026.md +285 -0
  130. package/skills/four-meme/four-guard/API-Documents.03-03-2026.md +789 -0
  131. package/skills/four-meme/four-guard/AgentIdentifier.abi +585 -0
  132. package/skills/four-meme/four-guard/README.md +21 -0
  133. package/skills/four-meme/four-guard/SKILL.md +31 -0
  134. package/skills/four-meme/four-guard/TaxToken.abi +969 -0
  135. package/skills/four-meme/four-guard/TokenIdentifierSample.js_ +81 -0
  136. package/skills/four-meme/four-guard/TokenIdentifierSample.sol +69 -0
  137. package/skills/four-meme/four-guard/TokenManager.lite.abi +836 -0
  138. package/skills/four-meme/four-guard/TokenManager2.lite.abi +2325 -0
  139. package/skills/four-meme/four-guard/TokenManagerHelper3.abi +999 -0
  140. package/skills/four-meme/four-guard/go.mod +36 -0
  141. package/skills/four-meme/four-guard/go.sum +127 -0
  142. package/skills/four-meme/four-guard/main.go +183 -0
  143. package/skills/four-meme/four-meme-ai/SKILL.md +31 -0
  144. package/skills/four-meme/four-meme-ai/references/agent-creator-and-wallets.md +87 -0
  145. package/skills/four-meme/four-meme-ai/references/api-create-token.md +55 -0
  146. package/skills/four-meme/four-meme-ai/references/contract-addresses.md +47 -0
  147. package/skills/four-meme/four-meme-ai/references/create-token-scripts.md +131 -0
  148. package/skills/four-meme/four-meme-ai/references/errors.md +29 -0
  149. package/skills/four-meme/four-meme-ai/references/event-listening.md +75 -0
  150. package/skills/four-meme/four-meme-ai/references/execute-trade.md +31 -0
  151. package/skills/four-meme/four-meme-ai/references/tax-token-query.md +38 -0
  152. package/skills/four-meme/four-meme-ai/references/token-query-api.md +44 -0
  153. package/skills/four-meme/four-meme-ai/references/token-tax-info.md +77 -0
  154. package/skills/four-meme/four-meme-ai/scripts/8004-balance.ts +52 -0
  155. package/skills/four-meme/four-meme-ai/scripts/8004-register.ts +108 -0
  156. package/skills/four-meme/four-meme-ai/scripts/create-token-api.ts +321 -0
  157. package/skills/four-meme/four-meme-ai/scripts/create-token-chain.ts +102 -0
  158. package/skills/four-meme/four-meme-ai/scripts/create-token-instant.ts +106 -0
  159. package/skills/four-meme/four-meme-ai/scripts/execute-buy.ts +198 -0
  160. package/skills/four-meme/four-meme-ai/scripts/execute-sell.ts +150 -0
  161. package/skills/four-meme/four-meme-ai/scripts/get-public-config.ts +25 -0
  162. package/skills/four-meme/four-meme-ai/scripts/get-recent-events.ts +76 -0
  163. package/skills/four-meme/four-meme-ai/scripts/get-tax-token-info.ts +69 -0
  164. package/skills/four-meme/four-meme-ai/scripts/get-token-info.ts +94 -0
  165. package/skills/four-meme/four-meme-ai/scripts/quote-buy.ts +85 -0
  166. package/skills/four-meme/four-meme-ai/scripts/quote-sell.ts +66 -0
  167. package/skills/four-meme/four-meme-ai/scripts/send-token.ts +98 -0
  168. package/skills/four-meme/four-meme-ai/scripts/token-get.ts +31 -0
  169. package/skills/four-meme/four-meme-ai/scripts/token-list.ts +134 -0
  170. package/skills/four-meme/four-meme-ai/scripts/token-rankings.ts +162 -0
  171. package/skills/four-meme/four-meme-ai/scripts/verify-events.ts +47 -0
  172. package/skills/four-meme/four-meme-integration/SKILL.md +374 -0
  173. package/skills/four-meme/four-meme-integration/references/agent-creator-and-wallets.md +87 -0
  174. package/skills/four-meme/four-meme-integration/references/api-create-token.md +55 -0
  175. package/skills/four-meme/four-meme-integration/references/contract-addresses.md +47 -0
  176. package/skills/four-meme/four-meme-integration/references/create-token-scripts.md +131 -0
  177. package/skills/four-meme/four-meme-integration/references/errors.md +29 -0
  178. package/skills/four-meme/four-meme-integration/references/event-listening.md +75 -0
  179. package/skills/four-meme/four-meme-integration/references/execute-trade.md +31 -0
  180. package/skills/four-meme/four-meme-integration/references/tax-token-query.md +38 -0
  181. package/skills/four-meme/four-meme-integration/references/token-query-api.md +44 -0
  182. package/skills/four-meme/four-meme-integration/references/token-tax-info.md +77 -0
  183. package/skills/four-meme/four-meme-integration/scripts/8004-balance.ts +52 -0
  184. package/skills/four-meme/four-meme-integration/scripts/8004-register.ts +108 -0
  185. package/skills/four-meme/four-meme-integration/scripts/create-token-api.ts +321 -0
  186. package/skills/four-meme/four-meme-integration/scripts/create-token-chain.ts +102 -0
  187. package/skills/four-meme/four-meme-integration/scripts/create-token-instant.ts +106 -0
  188. package/skills/four-meme/four-meme-integration/scripts/execute-buy.ts +198 -0
  189. package/skills/four-meme/four-meme-integration/scripts/execute-sell.ts +150 -0
  190. package/skills/four-meme/four-meme-integration/scripts/get-public-config.ts +25 -0
  191. package/skills/four-meme/four-meme-integration/scripts/get-recent-events.ts +76 -0
  192. package/skills/four-meme/four-meme-integration/scripts/get-tax-token-info.ts +69 -0
  193. package/skills/four-meme/four-meme-integration/scripts/get-token-info.ts +94 -0
  194. package/skills/four-meme/four-meme-integration/scripts/quote-buy.ts +85 -0
  195. package/skills/four-meme/four-meme-integration/scripts/quote-sell.ts +66 -0
  196. package/skills/four-meme/four-meme-integration/scripts/send-token.ts +98 -0
  197. package/skills/four-meme/four-meme-integration/scripts/token-get.ts +31 -0
  198. package/skills/four-meme/four-meme-integration/scripts/token-list.ts +134 -0
  199. package/skills/four-meme/four-meme-integration/scripts/token-rankings.ts +162 -0
  200. package/skills/four-meme/four-meme-integration/scripts/verify-events.ts +47 -0
  201. package/skills/skillpp/contract-profiler/SKILL.md +118 -0
  202. package/skills/skillpp/newbie-tutor/SKILL.md +85 -0
  203. package/skills/skillpp/opportunity-board/SKILL.md +87 -0
  204. package/skills/skillpp/risk-fusion/SKILL.md +146 -0
  205. package/skills/skillpp/scam-pattern-lab/SKILL.md +115 -0
  206. package/skills/skillpp/wallet-doctor/SKILL.md +119 -0
  207. package/skills/skillpp/watchtower/SKILL.md +72 -0
  208. package/tests/compatibility/v0.1.0.json +117 -0
@@ -0,0 +1,489 @@
1
+ # Prediction Markets
2
+
3
+ Browse prediction markets, query the user's positions and orders, and trade outcome tokens.
4
+
5
+ A prediction **market** asks a yes/no (or multi-outcome) question that will resolve at some point in the future. Each outcome is represented by an ERC-1155 **outcome token**. Buying an outcome token is betting on that outcome; if the market resolves in your favor, the token can be redeemed for payout.
6
+
7
+ Commands are grouped into three categories: **market/category queries**, **position/order queries**, and **trade commands** (`quote`, `place-order`, `cancel`, `redeem`).
8
+
9
+ ---
10
+
11
+ ## `prediction category list`
12
+
13
+ List available prediction market categories (e.g. crypto, sports, politics).
14
+
15
+ ### Syntax
16
+
17
+ ```bash
18
+ baw prediction category list --json
19
+ ```
20
+
21
+ ### Example
22
+
23
+ ```bash
24
+ baw prediction category list --json
25
+ ```
26
+
27
+ ---
28
+
29
+ ## `prediction market list`
30
+
31
+ List prediction markets, optionally filtered by category and sorted.
32
+
33
+ ### Syntax
34
+
35
+ ```bash
36
+ baw prediction market list [--l1Category <category>] [--l2Category <category>] [--sortBy <sort>] [--orderBy <order>] [--offset <offset>] [--limit <limit>] --json
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ | Parameter | Required | Default | Description |
42
+ |----------------|----------|---------|--------------------------------------------------------------------------------|
43
+ | `--l1Category` | No | — | L1 category filter (e.g. `crypto`, `sports`). From `prediction category list`. |
44
+ | `--l2Category` | No | — | L2 subcategory filter |
45
+ | `--sortBy` | No | — | `RECOMMENDED`, `VOLUME`, `PARTICIPANTS`, `CREATED_TIME`, `END_DATE` |
46
+ | `--orderBy` | No | `DESC` | `ASC` or `DESC` |
47
+ | `--offset` | No | `0` | Pagination offset |
48
+ | `--limit` | No | `20` | Page size, max 100 |
49
+
50
+ ### Example
51
+
52
+ ```bash
53
+ baw prediction market list --json
54
+ baw prediction market list --l1Category crypto --limit 5 --json
55
+ baw prediction market list --sortBy VOLUME --orderBy DESC --json
56
+ ```
57
+
58
+ ---
59
+
60
+ ## `prediction market detail`
61
+
62
+ Get the full detail of a single prediction market by its topic ID.
63
+
64
+ ### Syntax
65
+
66
+ ```bash
67
+ baw prediction market detail --marketTopicId <id> --json
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ | Parameter | Required | Default | Description |
73
+ |-------------------|----------|---------|-----------------|
74
+ | `--marketTopicId` | Yes | — | Market topic ID |
75
+
76
+ ### Example
77
+
78
+ ```bash
79
+ baw prediction market detail --marketTopicId 123456 --json
80
+ ```
81
+
82
+ ---
83
+
84
+ ## `prediction market search`
85
+
86
+ Search prediction markets by keyword.
87
+
88
+ ### Syntax
89
+
90
+ ```bash
91
+ baw prediction market search --query <query> [--limit <limit>] --json
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ | Parameter | Required | Default | Description |
97
+ |-----------|----------|---------|-------------------------------|
98
+ | `--query` | Yes | — | Search keyword, max 200 chars |
99
+ | `--limit` | No | `10` | Max results, max 50 |
100
+
101
+ ### Example
102
+
103
+ ```bash
104
+ baw prediction market search --query "Bitcoin" --json
105
+ baw prediction market search --query "FIFA World Cup" --limit 5 --json
106
+ ```
107
+
108
+ ---
109
+
110
+ ## `prediction market order-book`
111
+
112
+ Get the order book for a specific outcome token.
113
+
114
+ ### Syntax
115
+
116
+ ```bash
117
+ baw prediction market order-book --marketId <id> --tokenId <tokenId> --json
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+ | Parameter | Required | Default | Description |
123
+ |--------------|----------|---------|------------------|
124
+ | `--marketId` | Yes | — | Market ID |
125
+ | `--tokenId` | Yes | — | Outcome token ID |
126
+
127
+ ### Example
128
+
129
+ ```bash
130
+ baw prediction market order-book --marketId 789 --tokenId 123456789 --json
131
+ ```
132
+
133
+ ---
134
+
135
+ ## `prediction market last-trade-price`
136
+
137
+ Get the last trade price for a market.
138
+
139
+ This is a **historical fill price**, not a live market quote — it can be stale if there have been no recent trades, and it does not reflect the current best bid/ask.
140
+
141
+ ### Syntax
142
+
143
+ ```bash
144
+ baw prediction market last-trade-price --marketId <id> --json
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ | Parameter | Required | Default | Description |
150
+ |--------------|----------|---------|-------------|
151
+ | `--marketId` | Yes | — | Market ID |
152
+
153
+ ### Example
154
+
155
+ ```bash
156
+ baw prediction market last-trade-price --marketId 789 --json
157
+ ```
158
+
159
+ ---
160
+
161
+ ## `prediction position list`
162
+
163
+ List the user's active and past prediction positions with PnL summary.
164
+
165
+ ### Syntax
166
+
167
+ ```bash
168
+ baw prediction position list [--tab <tab>] [--offset <offset>] [--limit <limit>] --json
169
+ ```
170
+
171
+ ### Parameters
172
+
173
+ | Parameter | Required | Default | Description |
174
+ |------------|----------|-----------|---------------------------------------------|
175
+ | `--tab` | No | `ONGOING` | Filter: `ONGOING`, `ENDED`, `PENDING_CLAIM` |
176
+ | `--offset` | No | `0` | Pagination offset |
177
+ | `--limit` | No | `20` | Page size, max 100 |
178
+
179
+ `PENDING_CLAIM` surfaces winning positions that have not yet been redeemed — use [`prediction trade redeem`](#prediction-trade-redeem) to claim them.
180
+
181
+ ### Example
182
+
183
+ ```bash
184
+ baw prediction position list --json
185
+ baw prediction position list --tab PENDING_CLAIM --json
186
+ ```
187
+
188
+ ---
189
+
190
+ ## `prediction position token`
191
+
192
+ Look up a single position by its ERC-1155 outcome token ID.
193
+
194
+ ### Syntax
195
+
196
+ ```bash
197
+ baw prediction position token --tokenId <tokenId> --json
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+ | Parameter | Required | Default | Description |
203
+ |-------------|----------|---------|---------------------------|
204
+ | `--tokenId` | Yes | — | ERC-1155 outcome token ID |
205
+
206
+ ### Example
207
+
208
+ ```bash
209
+ baw prediction position token --tokenId 123456789 --json
210
+ ```
211
+
212
+ ---
213
+
214
+ ## `prediction position settled-history`
215
+
216
+ List the user's settled (finalized) prediction positions, with optional win/lose filtering.
217
+
218
+ ### Syntax
219
+
220
+ ```bash
221
+ baw prediction position settled-history [--l1Category <category>] [--filter <filter>] [--offset <offset>] [--limit <limit>] --json
222
+ ```
223
+
224
+ ### Parameters
225
+
226
+ | Parameter | Required | Default | Description |
227
+ |----------------|----------|---------|----------------------------------------------|
228
+ | `--l1Category` | No | — | L1 category filter (e.g. `crypto`, `sports`) |
229
+ | `--filter` | No | `all` | `all`, `win`, `lose` |
230
+ | `--offset` | No | `0` | Pagination offset |
231
+ | `--limit` | No | `20` | Page size, max 100 |
232
+
233
+ ### Example
234
+
235
+ ```bash
236
+ baw prediction position settled-history --json
237
+ baw prediction position settled-history --filter win --json
238
+ baw prediction position settled-history --filter lose --json
239
+ ```
240
+
241
+ ---
242
+
243
+ ## `prediction position pnl`
244
+
245
+ Query detailed PnL records for the user's prediction positions.
246
+
247
+ ### Syntax
248
+
249
+ ```bash
250
+ baw prediction position pnl [--tokenId <tokenId>] [--l1Category <category>] [--offset <offset>] [--limit <limit>] --json
251
+ ```
252
+
253
+ ### Parameters
254
+
255
+ | Parameter | Required | Default | Description |
256
+ |----------------|----------|---------|--------------------------------------------------|
257
+ | `--tokenId` | No | — | Filter by a specific token ID |
258
+ | `--l1Category` | No | — | L1 category filter: `crypto`, `sports`, `all` |
259
+ | `--offset` | No | `0` | Pagination offset |
260
+ | `--limit` | No | `20` | Page size, max 100 |
261
+
262
+ ### Example
263
+
264
+ ```bash
265
+ baw prediction position pnl --json
266
+ baw prediction position pnl --l1Category crypto --json
267
+ baw prediction position pnl --tokenId abc123 --json
268
+ ```
269
+
270
+ ---
271
+
272
+ ## `prediction position portfolio`
273
+
274
+ Get a portfolio-level summary of the user's active prediction positions, including unrealized PnL.
275
+
276
+ ### Syntax
277
+
278
+ ```bash
279
+ baw prediction position portfolio --json
280
+ ```
281
+
282
+ ### Example
283
+
284
+ ```bash
285
+ baw prediction position portfolio --json
286
+ ```
287
+
288
+ ---
289
+
290
+ ## `prediction order history`
291
+
292
+ List the user's historical prediction orders across all statuses.
293
+
294
+ ### Syntax
295
+
296
+ ```bash
297
+ baw prediction order history [--status <status>] [--l1Category <category>] [--orderType <type>] [--offset <offset>] [--limit <limit>] --json
298
+ ```
299
+
300
+ ### Parameters
301
+
302
+ | Parameter | Required | Default | Description |
303
+ |----------------|----------|---------|----------------------------------------------------------------------------------------|
304
+ | `--status` | No | — | `PENDING`, `SUBMITTED`, `FILLED`, `PARTIALLY_FILLED`, `CANCELLED`, `FAILED`, `EXPIRED` |
305
+ | `--l1Category` | No | — | L1 category filter |
306
+ | `--orderType` | No | — | `MARKET` or `LIMIT` |
307
+ | `--offset` | No | `0` | Pagination offset |
308
+ | `--limit` | No | `20` | Page size, max 100 |
309
+
310
+ ### Example
311
+
312
+ ```bash
313
+ baw prediction order history --json
314
+ baw prediction order history --status FILLED --limit 10 --json
315
+ baw prediction order history --orderType LIMIT --json
316
+ ```
317
+
318
+ ### Order Status
319
+
320
+ | Status | Description |
321
+ |--------------------|-----------------------------------------------|
322
+ | `PENDING` | Order created but not yet submitted to vendor |
323
+ | `SUBMITTED` | Order submitted to vendor, awaiting execution |
324
+ | `FILLED` | Order fully filled |
325
+ | `PARTIALLY_FILLED` | Order partially filled |
326
+ | `CANCELLED` | Order cancelled by user or system |
327
+ | `FAILED` | Order failed to execute |
328
+ | `EXPIRED` | Expired due to market ends |
329
+
330
+ ---
331
+
332
+ ## Trading Flow
333
+
334
+ Prediction trading is a **two-step** flow:
335
+
336
+ 1. **Quote** — call [`prediction trade quote`](#prediction-trade-quote) to get a `quoteId` and the expected cost / payout.
337
+ 2. **Confirm with the user** — show them the quote (price, amount, expected payout) and require an explicit "yes" before proceeding. Remind them to DYOR.
338
+ 3. **Place** — call [`prediction trade place-order`](#prediction-trade-place-order) with the `quoteId` from step 1.
339
+
340
+ Quotes expire; if placement fails because the quote is stale, fetch a new quote and try again.
341
+
342
+ ---
343
+
344
+ ## `prediction trade quote`
345
+
346
+ Get a trade quote for an outcome token. Returns a `quoteId` that must be passed to `place-order` within the quote's validity window.
347
+
348
+ ### Syntax
349
+
350
+ ```bash
351
+ baw prediction trade quote --binanceChainId <binanceChainId> --tokenId <tokenId> --marketTopicId <marketTopicId> --side <side> --amount <amount> --orderType <type> [--slippageBps <bps>] [--priceLimit <price>] --json
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ | Parameter | Required | Default | Description |
357
+ |--------------------|----------------|----------------|-------------------------------------------------------------------------------------------------------|
358
+ | `--binanceChainId` | Yes | — | Binance chain ID |
359
+ | `--tokenId` | Yes | — | ERC-1155 outcome token ID |
360
+ | `--side` | Yes | — | `BUY` or `SELL` |
361
+ | `--amount` | Yes | — | Trade amount, human-readable. Unit depends on `--side`: USDT for `BUY`, shares for `SELL`. |
362
+ | `--marketTopicId` | Yes | — | Market topic ID. If `--slippageBps` is omitted, the market's default slippage is fetched via this ID. |
363
+ | `--orderType` | Yes | — | `MARKET` or `LIMIT` |
364
+ | `--slippageBps` | No | market default | Slippage in basis points (e.g. `1200` = 12%) |
365
+ | `--priceLimit` | For LIMIT only | — | Limit price in USDT — required when `--orderType LIMIT` |
366
+
367
+ ### Example
368
+
369
+ ```bash
370
+ # Market BUY quote
371
+ baw prediction trade quote --binanceChainId 56 --tokenId abc123 --marketTopicId 123 --side BUY --amount 1 --orderType MARKET --json
372
+ {
373
+ "success": true,
374
+ "data": {
375
+ "quoteId": "1234567890",
376
+ "tokenId": "abc123",
377
+ "side": "BUY",
378
+ "amountIn": "1",
379
+ "amountOut": "1.021983640081799586",
380
+ "averagePrice": 0.978,
381
+ "lastPrice": 0.978,
382
+ "priceImpact": 0,
383
+ "feeAmount": "0.000460018149807002",
384
+ "minReceive": "0.919831382438179829",
385
+ "expireAt": "2026-05-21T17:30:29+08:00",
386
+ "chainId": "56",
387
+ "orderType": "MARKET",
388
+ "slippageBps": 1000,
389
+ "marketTitle": "No change"
390
+ }
391
+ }
392
+ ```
393
+
394
+ Note on units — `amountIn`, `amountOut`, `feeAmount`, and `minReceive` swap units with `--side`:
395
+
396
+ | Field | `BUY` | `SELL` |
397
+ |--------------|-------------------------------|-----------------------------|
398
+ | `amountIn` | USDT spent | shares sold |
399
+ | `amountOut` | shares received | USDT received |
400
+ | `feeAmount` | shares (provider service fee) | USDT (provider service fee) |
401
+ | `minReceive` | shares (worst-case fill) | USDT (worst-case proceeds) |
402
+
403
+ ---
404
+
405
+ ## `prediction trade place-order`
406
+
407
+ Place an order using a `quoteId` obtained from `prediction trade quote`. This is a **state-changing** command — always confirm with the user first.
408
+
409
+ ### Syntax
410
+
411
+ ```bash
412
+ baw prediction trade place-order --quoteId <quoteId> --slippageBps <bps> [--orderType <type>] [--priceLimit <price>] --json
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+ | Parameter | Required | Default | Description |
418
+ |-----------------|----------------|----------|------------------------------------------------------------------|
419
+ | `--quoteId` | Yes | — | Quote ID returned from `prediction trade quote` |
420
+ | `--slippageBps` | Yes | — | Slippage in basis points (from quote response slippageBps field) |
421
+ | `--orderType` | No | `MARKET` | `MARKET` or `LIMIT` |
422
+ | `--priceLimit` | For LIMIT only | — | Limit price in USDT — required for LIMIT orders |
423
+
424
+ ### Example
425
+
426
+ ```bash
427
+ baw prediction trade place-order --quoteId quote_abc123 --slippageBps 1000 --json
428
+
429
+ baw prediction trade place-order --quoteId quote_abc123 --slippageBps 1000 --orderType LIMIT --priceLimit 0.6 --json
430
+ ```
431
+
432
+ ### Important: placing an order does not mean it is filled
433
+
434
+ A successful response means the order has been **submitted**. For `MARKET` orders, fills usually happen quickly; `LIMIT` orders rest on the book until the trigger price is reached. After placement, tell the user:
435
+
436
+ 1. The order has been submitted.
437
+ 2. They can check its status with [`prediction order history`](#prediction-order-history).
438
+ 3. They should verify execution before assuming the trade is complete.
439
+
440
+ ---
441
+
442
+ ## `prediction trade cancel`
443
+
444
+ Cancel one or more open prediction orders.
445
+
446
+ ### Syntax
447
+
448
+ ```bash
449
+ baw prediction trade cancel --orderIds <ids> --json
450
+ ```
451
+
452
+ ### Parameters
453
+
454
+ | Parameter | Required | Default | Description |
455
+ |--------------|----------|---------|-----------------------------------|
456
+ | `--orderIds` | Yes | — | Comma-separated list of order IDs |
457
+
458
+ ### Example
459
+
460
+ ```bash
461
+ baw prediction trade cancel --orderIds order_123,order_456 --json
462
+ ```
463
+
464
+ ---
465
+
466
+ ## `prediction trade redeem`
467
+
468
+ Redeem (claim) the payout from winning prediction positions once their markets have resolved. Use [`prediction position list`](#prediction-position-list) with `--tab PENDING_CLAIM` to find token IDs that are redeemable.
469
+
470
+ ### Syntax
471
+
472
+ ```bash
473
+ baw prediction trade redeem --tokenIds <ids> [--binanceChainId <binanceChainId>] --json
474
+ ```
475
+
476
+ ### Parameters
477
+
478
+ | Parameter | Required | Default | Description |
479
+ |--------------------|----------|---------|-------------------------------------------|
480
+ | `--tokenIds` | Yes | — | Comma-separated list of winning token IDs |
481
+ | `--binanceChainId` | No | — | Binance chain ID filter |
482
+
483
+ ### Example
484
+
485
+ ```bash
486
+ baw prediction trade redeem --tokenIds token_123,token_456 --json
487
+
488
+ baw prediction trade redeem --tokenIds token_123 --binanceChainId 56 --json
489
+ ```
@@ -0,0 +1,66 @@
1
+ # Preflight Checks
2
+
3
+ At the start of each conversation, run the following checks in order.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Version Check
8
+
9
+ Check whether a newer version of this skill is available. `currentSkillVersion` is the value of `metadata.version` in this skill's SKILL.md frontmatter.
10
+
11
+ ### Syntax
12
+
13
+ ```bash
14
+ baw skill-check --skill-name binance-agentic-wallet --current-version ${currentSkillVersion} --json
15
+ ```
16
+
17
+ ### Response
18
+
19
+ ```json
20
+ {
21
+ "success": true,
22
+ "data": {
23
+ "needUpdateSkill": true,
24
+ "latestSkillVersion": "x.y.z"
25
+ }
26
+ }
27
+ ```
28
+
29
+ - **`needUpdateSkill` = true** → prompt the user: "A new version of the Binance Agentic Wallet skill is available (current: {currentSkillVersion}, latest: {latestSkillVersion}). Would you like to update now?" If the user confirms, install the latest version from https://github.com/binance/binance-skills-hub, then **re-read this file** before continuing to step 2 (the updated skill may require a different CLI version).
30
+ - **`needUpdateSkill` = false**, or the request fails → proceed silently.
31
+
32
+ ---
33
+
34
+ ## 2. CLI Version Check
35
+
36
+ Verify that the `baw` CLI meets the required version. The `requiredCliVersion` is the value of `metadata.requiredCliVersion` in this skill's SKILL.md frontmatter.
37
+
38
+ ### Syntax
39
+
40
+ ```bash
41
+ baw cli-check --required-version ${requiredCliVersion} --json
42
+ ```
43
+
44
+ ### Response
45
+
46
+ ```json
47
+ {
48
+ "success": true,
49
+ "data": {
50
+ "currentCliVersion": "x.y.z",
51
+ "needUpdateCli": false
52
+ }
53
+ }
54
+ ```
55
+
56
+ - **`baw` not found** → install the required version.
57
+ - **`needUpdateCli` = true** → upgrade to the required version.
58
+ - **`needUpdateCli` = false** → no action needed.
59
+
60
+ ### Install / Upgrade the CLI
61
+
62
+ The `baw` CLI is distributed as the npm package `@binance/agentic-wallet`. Use the following command to install or upgrade the required CLI version:
63
+
64
+ ```bash
65
+ npm install -g @binance/agentic-wallet@${requiredCliVersion}
66
+ ```
@@ -0,0 +1,47 @@
1
+ # Security Reference
2
+
3
+ Security pre-check procedures for swap operations.
4
+
5
+ ---
6
+
7
+ ## §1 Swap Security Pre-Check
8
+
9
+ > **Applies to**: `market-order swap` in [market-order.md](market-order.md), `limit-order buy` / `limit-order sell` in [limit-order.md](limit-order.md)
10
+
11
+ Before constructing any swap command, perform the following steps:
12
+
13
+ ### Step 1: Identify the target token
14
+
15
+ - For `market-order swap` and `limit-order buy`: the target is `--toToken`
16
+ - For `limit-order sell`: the target is `--toToken` (already restricted to BNB/USDT/USDC, so skip to Step 4)
17
+ - If the target is a known trusted asset from the **Common Token Addresses** table in SKILL.md → skip to Step 4
18
+
19
+ ### Step 2: Call the Token Audit
20
+
21
+ Use the `query-token-audit` skill to audit the target token. If the user has not installed this skill, recommend they install it from https://github.com/binance/binance-skills-hub
22
+
23
+ Call the Token Security Audit API with the target token's `contractAddress` and `binanceChainId`. See the `query-token-audit` skill documentation for the full API specification, request format, and response fields.
24
+
25
+ **Result validity**: Only proceed to Step 3 when **both** `hasResult: true` AND `isSupported: true`. Otherwise, skip to Unavailable Handling below.
26
+
27
+ ### Step 3: Interpret audit results and present to user
28
+
29
+ Parse the response and present a security summary to the user. Refer to the `query-token-audit` skill documentation for field meanings, risk level definitions, and tax thresholds.
30
+
31
+ - Present all hit risk items (`isHit: true`) with their descriptions
32
+ - Highlight tax rates if abnormal (>5% warning, >10% high risk)
33
+ - Let the user decide whether to proceed
34
+
35
+ ### Step 4: Continue with swap flow
36
+
37
+ If the user decides to proceed, continue with the standard swap flow in the relevant reference file (confirm slippage → build command → execute).
38
+
39
+ ### Unavailable Handling
40
+
41
+ | Scenario | Action |
42
+ |------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
43
+ | Audit API call fails (network / timeout / 5xx) | Warn: "Token security audit is temporarily unavailable." Require explicit user acknowledgment before proceeding. |
44
+ | `hasResult: false` OR `isSupported: false` | Reply: "Security audit data is not available for this token on this chain." Do **NOT** display `riskLevel`, `riskLevelEnum`, or `riskItems` — data is unreliable when either field is false. Suggest the user verify the contract address and chain, or try again later. Require explicit user acknowledgment. |
45
+ | `query-token-audit` skill not installed | Inform the user: "The token audit skill is not installed. Install it for pre-trade security checks from https://github.com/binance/binance-skills-hub." Require explicit user acknowledgment before proceeding without audit. |
46
+
47
+ Never silently skip. The user must always be informed before proceeding.
@@ -0,0 +1,53 @@
1
+ # Send Tokens
2
+
3
+ Transfer tokens to a recipient address.
4
+
5
+ ## `wallet send`
6
+
7
+ ### Syntax
8
+
9
+ ```bash
10
+ baw wallet send --amount <amount> --recipient <recipient> --binanceChainId <binanceChainId> --tokenAddress <tokenAddress> [--gasLevel <gasLevel>] --json
11
+ ```
12
+
13
+ ### Parameters
14
+
15
+ | Parameter | Required | Default | Description |
16
+ |--------------------|----------|---------|-----------------------------------------------------------------------------------------------|
17
+ | `--amount` | Yes | — | Amount in human-readable units (e.g., `1.5`) |
18
+ | `--recipient` | Yes | — | Recipient wallet address (must be in the [address book](#address-book)), ENS is not supported |
19
+ | `--binanceChainId` | Yes | — | Binance chain ID: `56` (BSC), `CT_501` (Solana). For a full list, see `wallet chains` |
20
+ | `--tokenAddress` | Yes | — | Token contract address |
21
+ | `--gasLevel` | No | `HIGH` | Gas level: "LOW", "MEDIUM", or "HIGH" |
22
+
23
+ ### Example
24
+
25
+ ```bash
26
+ # Send 0.02 BNB (native token) to an address
27
+ baw wallet send --amount 0.02 --recipient 0x1234...5678 --binanceChainId 56 --tokenAddress 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE --json
28
+
29
+ # Send 10 USDT to an address
30
+ baw wallet send --amount 10 --recipient 0x1234...5678 --binanceChainId 56 --tokenAddress 0x55d398326f99059fF775485246999027B3197955 --json
31
+ ```
32
+
33
+ ### Response
34
+
35
+ ```json
36
+ {
37
+ "success": true,
38
+ "data": { "txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890" }
39
+ }
40
+ ```
41
+
42
+ ### Important: a tx hash does not mean on-chain confirmation
43
+
44
+ A successful response with a `txHash` means the transaction has been **broadcast** to the network — it does **not** mean it has been confirmed or finalized on-chain. Transactions can still fail after broadcast.
45
+
46
+ After receiving a `txHash`, always tell the user:
47
+ 1. The transaction has been submitted and is **pending** confirmation.
48
+ 2. They can track its status with `wallet tx-history`.
49
+ 3. They should wait for on-chain confirmation before considering the transfer complete.
50
+
51
+ ### Address Book
52
+
53
+ The `--recipient` address **must** be in the address book. To add an address, open Binance App → Wallet → Settings → Address Book.