@bysking/b-code 1.0.3 → 1.0.5

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 (3) hide show
  1. package/README.md +19 -2
  2. package/dist/cli.mjs +289 -286
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -176,8 +176,25 @@ user-invocable: true
176
176
  | `user-invocable` | 需显式写 `true` | 默认可调用,写 `false` 关闭 |
177
177
  | 同名冲突 | 同目录内平铺优先 | — |
178
178
 
179
- 正文里的 `$ARGUMENTS` 会被替换为调用时传入的参数。技能调用优先于普通对话:
180
- `/commit 修复登录 bug` → 命中 `commit` 技能并替换参数。
179
+ **调用参数透传**:`/技能名 参数1 参数2` 的参数会填进技能正文,技能里调用的工具因此能拿到它们。
180
+
181
+ | 占位符 | 含义 |
182
+ | --- | --- |
183
+ | `$ARGUMENTS` | 全部参数(原始字符串) |
184
+ | `$1` `$2` … | 第 n 个参数(越界替换为空) |
185
+
186
+ 参数按空白切分,双引号可包裹含空格的多词参数:`/merge "feature/login fix" main`。
187
+
188
+ ```
189
+ # .claude/skills/merge/SKILL.md
190
+ 把分支 $1 合并到 $2,完整请求: $ARGUMENTS
191
+ ```
192
+
193
+ **正文里一个占位符都没写时,参数会以 `[调用参数] …` 追加到末尾**——避免技能作者忘了写
194
+ `$ARGUMENTS` 导致参数被静默丢弃(技能里的工具就拿不到分支名、路径这类必需值了)。
195
+
196
+ 技能调用优先于普通对话(内置命令如 `/clear` 精确匹配,始终优先):`/commit 修复登录 bug`
197
+ → 命中 `commit` 技能并填入参数。
181
198
 
182
199
  frontmatter 的 `description` 支持块标量多行写法(`>-` 折叠成一行、`|` 保留换行),与 Claude 生态 SKILL.md 兼容。
183
200