docs(cli): update skill installation command from add --name all to init

- Replace `bl skill add --name all` with `bl skill init` across documentation
- Update installation instructions in README, INSTALL, and agent skill guides
- Modify code references in update checker and UI components
- Adjust documentation links and cross-references accordingly
- Revise command examples in protocol and asset files
- Update versioning and setup instructions to reflect new command
- Modify HTML UI rendering for skill installation guidance
- Change internal command constants and execution calls
This commit is contained in:
clh02467605
2026-08-07 17:56:30 +08:00
parent d6cb075629
commit 9ae5dc924d
24 changed files with 58 additions and 57 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ packages/core/src/auth/ # apiKey / console credential 解析与落盘
packages/core/src/client/ # HTTP client / endpoints / console gateway packages/core/src/client/ # HTTP client / endpoints / console gateway
``` ```
Skill / 命令手册随 `skills/bailian-*/``bl skill add --name all` 安装(整包装齐,含共享协议 `bailian-protocol`)。业务 skill`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)执行前读 `skills/bailian-protocol/`;不要依赖 frontmatter `companions`(安装器不强制)。`tools/generate-reference.ts`**`packages/cli/src/commands.ts`** 按一级命令归属表分流写入各 `skills/<skill>/reference/`(纳入 git);`tools/sync-skill-metadata.ts``packages/cli/package.json` 同步各 `skills/*/SKILL.md``metadata.version`。两者由根脚本 `pnpm run sync:skill-assets``.vite-hooks/pre-commit` 执行。hub `bailian-cli` 的路由表不复述领域命令明细SKILL 文案 / 安装约定 / hand-off 见 [docs/agents/skill-change.md](docs/agents/skill-change.md)。 Skill / 命令手册随 `skills/bailian-*/``bl skill init` 安装(装齐 registry 中全部 `bailian-*`,含共享协议 `bailian-protocol`)。业务 skill`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)执行前读 `skills/bailian-protocol/`;不要依赖 frontmatter `companions`(安装器不强制)。`tools/generate-reference.ts`**`packages/cli/src/commands.ts`** 按一级命令归属表分流写入各 `skills/<skill>/reference/`(纳入 git);`tools/sync-skill-metadata.ts``packages/cli/package.json` 同步各 `skills/*/SKILL.md``metadata.version`。两者由根脚本 `pnpm run sync:skill-assets``.vite-hooks/pre-commit` 执行。hub `bailian-cli` 的路由表不复述领域命令明细SKILL 文案 / 安装约定 / hand-off 见 [docs/agents/skill-change.md](docs/agents/skill-change.md)。
约定: 约定:
+2 -2
View File
@@ -54,10 +54,10 @@ npm install -g bailian-cli
安装 skillsCLI 内置,无需 Git / npx skills 安装 skillsCLI 内置,无需 Git / npx skills
```bash ```bash
bl skill add --name all bl skill init
``` ```
**Supported** `--name all` 一次装齐整套 `bailian-*`(含共享协议 `bailian-protocol`)。 **Supported** `bl skill init` 一次装齐 registry 中全部 `bailian-*`(含共享协议 `bailian-protocol`)。
**Advanced / 按需子集:** **Advanced / 按需子集:**
+1 -1
View File
@@ -86,7 +86,7 @@ Please read https://bailian.aliyun.com/cli/install.md and install the Aliyun Mod
```bash ```bash
npm install -g bailian-cli npm install -g bailian-cli
npx skills add modelstudioai/cli --all -g bl skill init
``` ```
> Requires Node.js >= 18.17. > Requires Node.js >= 18.17.
+1 -1
View File
@@ -85,7 +85,7 @@ _专为 AI Agent 打造每个命令均可作为结构化工具调用。_
```bash ```bash
npm install -g bailian-cli npm install -g bailian-cli
npx skills add modelstudioai/cli --all -g bl skill init
``` ```
> 需要预先安装 Node.js >= 18.17。 > 需要预先安装 Node.js >= 18.17。
+8 -7
View File
@@ -11,16 +11,17 @@
## 统一口径(安装) ## 统一口径(安装)
1. **Supported install** `bl skill add --name all`(整包装齐,含 `bailian-protocol` 1. **Supported install** `bl skill init`(装齐 registry 中全部 `bailian-*`,含 `bailian-protocol`
2. **`bailian-protocol` 是共享协议 skill**,业务 skill 执行前应 Read 它 2. **`bailian-protocol` 是共享协议 skill**,业务 skill 执行前应 Read 它
3. **不要**在 frontmatter 写 `companions`也不要对外说「companions = 安装器硬依赖」 3. **不要**在 frontmatter 写 `companions`也不要对外说「companions = 安装器硬依赖」
4. 子集安装:`bl skill add --name bailian-protocol,<skill>`;漏装 protocol 会导致相对路径 Read 失败 4. 子集安装:`bl skill add --name bailian-protocol,<skill>`;漏装 protocol 会导致相对路径 Read 失败
5. **`bl skill add --all`** 安装 registry 全量(含 `spark-video` 等非 bailian 技能);一键安装 / `bl update``skill init`,不要用 `--all`
## 概念图 ## 概念图
```text ```text
bailian-protocol ← 共享协议consent / 鉴权 / 版本 / 错误上报) bailian-protocol ← 共享协议consent / 鉴权 / 版本 / 错误上报)
▲ 靠 `bl skill add --name all` 与业务 skill 同装;非安装器强制 companions ▲ 靠 `bl skill init` 与业务 skill 同装;非安装器强制 companions
┌───────┴────────┬────────────────┬──────────────────┐ ┌───────┴────────┬────────────────┬──────────────────┐
bailian-gen bailian-finetune bailian-managed-agent bailian-gen bailian-finetune bailian-managed-agent
@@ -37,8 +38,8 @@ bailian-gen bailian-finetune bailian-managed-agent
### A. 分层边界 ### A. 分层边界
- [ ] **整包装齐**:安装/升级文案主推 `bl skill add --name all`;业务 skill **不**声明 `companions` - [ ] **整包装齐**:安装/升级文案主推 `bl skill init`;业务 skill **不**声明 `companions`
- [ ] **协议读取**CRITICAL / references 可链 `../bailian-protocol/…`;若读不到 → 停止执行 `bl`,提示 `bl skill add --name all` - [ ] **协议读取**CRITICAL / references 可链 `../bailian-protocol/…`;若读不到 → 停止执行 `bl`,提示 `bl skill init`
- [ ] **软 hand-off**:兄弟业务 skill **只写 skill 名**;已安装则 Read未安装则 `bl … --help` 或提示整包安装;**不要**把 `../bailian-gen/…` 等写成执行前提 - [ ] **软 hand-off**:兄弟业务 skill **只写 skill 名**;已安装则 Read未安装则 `bl … --help` 或提示整包安装;**不要**把 `../bailian-gen/…` 等写成执行前提
- [ ] **Hub vs 领域**`bailian-cli` 的「When to use which command」只列 hub 拥有的意图;媒体 / 精调 / managed-agent 各留 hand-off 行,**不抄**领域默认模型与子命令明细 - [ ] **Hub vs 领域**`bailian-cli` 的「When to use which command」只列 hub 拥有的意图;媒体 / 精调 / managed-agent 各留 hand-off 行,**不抄**领域默认模型与子命令明细
- [ ] **渐进披露**SKILL 写意图路由与领域硬规则flags / usage / examples 以 `reference/``bl <command> --help` 为准,表后保留「勿猜 flag」指向句 - [ ] **渐进披露**SKILL 写意图路由与领域硬规则flags / usage / examples 以 `reference/``bl <command> --help` 为准,表后保留「勿猜 flag」指向句
@@ -46,9 +47,9 @@ bailian-gen bailian-finetune bailian-managed-agent
### B. 文案与落款一致性 ### B. 文案与落款一致性
- [ ] 领域 skillgen / finetune / managed-agent路由或命令表后有指向 `reference/` 的句;文末 `## references`protocol + reference与家族对齐 - [ ] 领域 skillgen / finetune / managed-agent路由或命令表后有指向 `reference/` 的句;文末 `## references`protocol + reference与家族对齐
- [ ] description 含 WHAT + WHEN + 反触发;安装说明指向 `bl skill add --name all`,不写 companions 必装 - [ ] description 含 WHAT + WHEN + 反触发;安装说明指向 `bl skill init`,不写 companions 必装
- [ ] Quick examples 只演示本 skill 职责hub 不示范 `bl image` / `bl video` 等) - [ ] Quick examples 只演示本 skill 职责hub 不示范 `bl image` / `bl video` 等)
- [ ] 若改了安装方式:同步 `README.md` / `README.zh.md` / `INSTALL.md` / `skills/*/README*` / `skills/bailian-protocol/assets/setup.md` 中的 `bl skill add …` 示例(改 `INSTALL.md` 时按 [install-doc-change.md](install-doc-change.md) 同步静态页) - [ ] 若改了安装方式:同步 `README.md` / `README.zh.md` / `INSTALL.md` / `skills/*/README*` / `skills/bailian-protocol/assets/setup.md` 中的 `bl skill init` / `bl skill add …` 示例(改 `INSTALL.md` 时按 [install-doc-change.md](install-doc-change.md) 同步静态页)
### C. 归属与生成 ### C. 归属与生成
@@ -61,7 +62,7 @@ bailian-gen bailian-finetune bailian-managed-agent
```sh ```sh
pnpm run sync:skill-assets pnpm run sync:skill-assets
# 已发布版本试装 # 已发布版本试装
bl skill add --name all bl skill init
``` ```
抽查:打开 `skills/bailian-cli/SKILL.md` 确认无领域子命令明细表、无 `companions`;打开对应领域 skill 确认有「勿猜 flag」与 hand-off。 抽查:打开 `skills/bailian-cli/SKILL.md` 确认无领域子命令明细表、无 `companions`;打开对应领域 skill 确认有「勿猜 flag」与 hand-off。
+1 -1
View File
@@ -86,7 +86,7 @@ Please read https://bailian.aliyun.com/cli/install.md and install the Aliyun Mod
```bash ```bash
npm install -g bailian-cli npm install -g bailian-cli
npx skills add modelstudioai/cli --all -g bl skill init
``` ```
> Requires Node.js >= 18.17. > Requires Node.js >= 18.17.
+1 -1
View File
@@ -85,7 +85,7 @@ _专为 AI Agent 打造每个命令均可作为结构化工具调用。_
```bash ```bash
npm install -g bailian-cli npm install -g bailian-cli
npx skills add modelstudioai/cli --all -g bl skill init
``` ```
> 需要预先安装 Node.js >= 18.17。 > 需要预先安装 Node.js >= 18.17。
@@ -128,8 +128,8 @@ function countFiles(dir: string, budget = 500): number {
} }
/** /**
* Skill directories to scan, keyed by the module that owns them. `bl skill * Skill directories to scan, keyed by the module that owns them. `bl skill init` /
* add --name all` fans skills out into each installed agent, so the same skill can * `bl skill add` fans skills out into each installed agent, so the same skill can
* live in several of these roots at once. * live in several of these roots at once.
*/ */
function skillRoots(home: string): Array<{ source: string; dir: string }> { function skillRoots(home: string): Array<{ source: string; dir: string }> {
@@ -1444,7 +1444,7 @@ export const PAGE_HTML = `<!doctype html>
function renderSkills() { function renderSkills() {
var body = document.getElementById('skillsBody'); var body = document.getElementById('skillsBody');
var pager = document.getElementById('skillsPager'); var pager = document.getElementById('skillsPager');
if (!SKILLS.length) { pager.innerHTML = ''; renderEmpty(body, 'No skills installed.', 'Install with <code>bl skill add --name all</code>'); return; } if (!SKILLS.length) { pager.innerHTML = ''; renderEmpty(body, 'No skills installed.', 'Install with <code>bl skill init</code>'); return; }
var list = SKILLS.filter(function (s) { return skillMatches(s, SKILL_Q); }); var list = SKILLS.filter(function (s) { return skillMatches(s, SKILL_Q); });
if (!list.length) { pager.innerHTML = ''; renderEmpty(body, 'No skills match "' + SKILL_Q + '".', ''); return; } if (!list.length) { pager.innerHTML = ''; renderEmpty(body, 'No skills match "' + SKILL_Q + '".', ''); return; }
var info = pageSlice(list, SKILL_PAGE, getPageSize('skills')); SKILL_PAGE = info.page; var info = pageSlice(list, SKILL_PAGE, getPageSize('skills')); SKILL_PAGE = info.page;
+1 -1
View File
@@ -20,7 +20,7 @@ import {
type AnsiStyles, type AnsiStyles,
} from "bailian-cli-runtime"; } from "bailian-cli-runtime";
const SKILL_INSTALL_CMD = "bl skill add --name all"; const SKILL_INSTALL_CMD = "bl skill init";
function updateAgentSkill(color: AnsiStyles): void { function updateAgentSkill(color: AnsiStyles): void {
process.stderr.write("\nUpdating agent skill...\n"); process.stderr.write("\nUpdating agent skill...\n");
+2 -2
View File
@@ -299,11 +299,11 @@ export async function performAutoUpdate(
try { try {
process.stderr.write(` ${dim}Syncing agent skill...${reset}\n`); process.stderr.write(` ${dim}Syncing agent skill...${reset}\n`);
execSync(`bl skill add --name all`, { stdio: "inherit" }); execSync(`bl skill init`, { stdio: "inherit" });
process.stderr.write(` ${green}✓ Agent skill updated.${reset}\n\n`); process.stderr.write(` ${green}✓ Agent skill updated.${reset}\n\n`);
} catch (err) { } catch (err) {
process.stderr.write(` ${yellow}⚠ Agent skill sync failed: ${errorMessage(err)}${reset}\n`); process.stderr.write(` ${yellow}⚠ Agent skill sync failed: ${errorMessage(err)}${reset}\n`);
process.stderr.write(` ${yellow} Run manually: bl skill add --name all${reset}\n\n`); process.stderr.write(` ${yellow} Run manually: bl skill init${reset}\n\n`);
} }
pendingNotification = null; pendingNotification = null;
+2 -2
View File
@@ -4,11 +4,11 @@
Agent skill for **Alibaba Cloud Model Studio CLI** (`bl`) resource hub — apps, memory, RAG, usage/quota, MCP, and hub `reference/`. Agent skill for **Alibaba Cloud Model Studio CLI** (`bl`) resource hub — apps, memory, RAG, usage/quota, MCP, and hub `reference/`.
- Shared protocol: `bailian-protocol` (install via `bl skill add --name all`) - Shared protocol: `bailian-protocol` (install via `bl skill init`)
- Soft hand-offs (optional skills): `bailian-gen` · `bailian-finetune` · `bailian-managed-agent` - Soft hand-offs (optional skills): `bailian-gen` · `bailian-finetune` · `bailian-managed-agent`
```bash ```bash
bl skill add --name all bl skill init
``` ```
For CLI installation, authentication, and examples, see the [main README](../../README.md). For CLI installation, authentication, and examples, see the [main README](../../README.md).
+2 -2
View File
@@ -4,11 +4,11 @@
**阿里云百炼 CLI**`bl`)的资源管理 Agent 技能 — 应用、记忆、RAG、用量/额度、MCP以及 hub `reference/` **阿里云百炼 CLI**`bl`)的资源管理 Agent 技能 — 应用、记忆、RAG、用量/额度、MCP以及 hub `reference/`
- 共享协议:`bailian-protocol`(通过 `bl skill add --name all` 与整家族同装) - 共享协议:`bailian-protocol`(通过 `bl skill init` 与整家族同装)
- 软 hand-off可选`bailian-gen` · `bailian-finetune` · `bailian-managed-agent` - 软 hand-off可选`bailian-gen` · `bailian-finetune` · `bailian-managed-agent`
```bash ```bash
bl skill add --name all bl skill init
``` ```
CLI 的安装、认证和使用示例请查看[主 README](../../README.zh.md)。 CLI 的安装、认证和使用示例请查看[主 README](../../README.zh.md)。
+6 -6
View File
@@ -10,7 +10,7 @@ description: >-
工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、 工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、
Agent skill 安装/列表/更新/卸载bl skill add|list|update|remove百炼 skill registry Agent skill 安装/列表/更新/卸载bl skill add|list|update|remove百炼 skill registry
用户点名百炼 / DashScope / `bl`,或继续既有 `bl` 工作流时直接使用。 用户点名百炼 / DashScope / `bl`,或继续既有 `bl` 工作流时直接使用。
共享协议consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol官方安装 `bl skill add --name all` 共享协议consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol官方安装 `bl skill init`
家族路由:生图/生视频/配音/语音合成/转写 → bailian-gen精调/微调/训练/数据集 → bailian-finetune 家族路由:生图/生视频/配音/语音合成/转写 → bailian-gen精调/微调/训练/数据集 → bailian-finetune
agents.yaml 托管 Agent → bailian-managed-agent。 agents.yaml 托管 Agent → bailian-managed-agent。
不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。 不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。
@@ -19,14 +19,14 @@ description: >-
# Aliyun Model Studio CLI (`bl`) # Aliyun Model Studio CLI (`bl`)
**CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Provider selection and consent, Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. If that protocol file is missing, stop and run `bl skill add --name all`; do not guess auth/consent.** **CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Provider selection and consent, Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. If that protocol file is missing, stop and run `bl skill init`; do not guess auth/consent.**
> **Family hub** — This skill owns Bailian resource commands and the hub `reference/` (apps, knowledge, usage, auth, config, …). > **Family hub** — This skill owns Bailian resource commands and the hub `reference/` (apps, knowledge, usage, auth, config, …).
> Shared protocol → [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md) (install the full family with `bl skill add --name all`). > Shared protocol → [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md) (install the full family with `bl skill init`).
> Soft hand-offs by skill name (Read if installed; else `bl … --help` / prompt `bl skill add --name all`): `bailian-gen` (media) · `bailian-finetune` (training) · `bailian-managed-agent` (agents.yaml IaC). > Soft hand-offs by skill name (Read if installed; else `bl … --help` / prompt `bl skill init`): `bailian-gen` (media) · `bailian-finetune` (training) · `bailian-managed-agent` (agents.yaml IaC).
> Do not invoke it for ordinary reasoning, coding, writing, translation, summarization, generic research, or image understanding the host agent can complete directly. > Do not invoke it for ordinary reasoning, coding, writing, translation, summarization, generic research, or image understanding the host agent can complete directly.
> >
> **Install (supported):** `bl skill add --name all` > **Install (supported):** `bl skill init`
## Command reference (authoritative) ## Command reference (authoritative)
@@ -113,7 +113,7 @@ schema-export commands.
## Routing reminders ## Routing reminders
- Image/video/audio generation or editing → skill `bailian-gen` (class 3 consent from `bailian-protocol`). Fine-tuning / datasets / deployments → `bailian-finetune`. agents.yaml IaC → `bailian-managed-agent`. Soft hand-off: Read sibling skill if installed; else `bl … --help` or prompt `bl skill add --name all`. Image understanding the host agent can do → host-first; use `bl vision` / `bl omni` only when the user names a Bailian model or the media (video/audio files) exceeds host capability. - Image/video/audio generation or editing → skill `bailian-gen` (class 3 consent from `bailian-protocol`). Fine-tuning / datasets / deployments → `bailian-finetune`. agents.yaml IaC → `bailian-managed-agent`. Soft hand-off: Read sibling skill if installed; else `bl … --help` or prompt `bl skill init`. Image understanding the host agent can do → host-first; use `bl vision` / `bl omni` only when the user names a Bailian model or the media (video/audio files) exceeds host capability.
- Answer ordinary reasoning, coding, writing, translation, summarization, and generic research with the host agent's native capabilities; do not bounce them through `bl text chat` or `bl search web`. - Answer ordinary reasoning, coding, writing, translation, summarization, and generic research with the host agent's native capabilities; do not bounce them through `bl text chat` or `bl search web`.
- Usage / quota / credits questions that do not name a product → ask which product (Bailian or another AI service) first; run `bl usage` / `bl quota` only after the user picks Bailian or Bailian context is already established. - Usage / quota / credits questions that do not name a product → ask which product (Bailian or another AI service) first; run `bl usage` / `bl quota` only after the user picks Bailian or Bailian context is already established.
- "Remember this" and memory requests default to the host agent's own memory; `bl memory *` is only for Bailian app memory resources. - "Remember this" and memory requests default to the host agent's own memory; `bl memory *` is only for Bailian app memory resources.
+4 -4
View File
@@ -11,12 +11,12 @@ description: >-
upload 拿 file-id → finetune create 建任务 → watch 看进度 → export 导出 → deploy 上线,需要 API key upload 拿 file-id → finetune create 建任务 → watch 看进度 → export 导出 → deploy 上线,需要 API key
写操作先用 `--dry-run` 预览。反触发:用户点名火山方舟/ark 的精调不走本 skill只是要选哪个模型走 写操作先用 `--dry-run` 预览。反触发:用户点名火山方舟/ark 的精调不走本 skill只是要选哪个模型走
bailian-model-recommend用现成模型生图生视频走 bailian-gen百炼其他资源管理走 bailian-cli。 bailian-model-recommend用现成模型生图生视频走 bailian-gen百炼其他资源管理走 bailian-cli。
官方安装:`bl skill add --name all`(与共享协议 bailian-protocol 同装)。 官方安装:`bl skill init`(与共享协议 bailian-protocol 同装)。
--- ---
# Bailian fine-tuning pipeline (`bl dataset` / `bl finetune` / `bl deploy`) # Bailian fine-tuning pipeline (`bl dataset` / `bl finetune` / `bl deploy`)
**CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. Command details are authoritative in [`reference/`](reference/index.md) (dataset / finetune / deploy) and `bl <command> --help` — do not guess flags. The whole pipeline requires an API key. If that protocol file is missing, stop and run `bl skill add --name all`; do not guess auth/consent.** **CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. Command details are authoritative in [`reference/`](reference/index.md) (dataset / finetune / deploy) and `bl <command> --help` — do not guess flags. The whole pipeline requires an API key. If that protocol file is missing, stop and run `bl skill init`; do not guess auth/consent.**
## End-to-end workflow (follow in order) ## End-to-end workflow (follow in order)
@@ -63,7 +63,7 @@ bl deploy text create --model my-qwen-sft --name my-svc
## Common hand-offs ## Common hand-offs
软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill add --name all` 软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill init`
- After deployment, try the model or generate content → skill `bailian-gen` (media) or `bl text chat` (fallback: `bl image\|video\|text --help`). - After deployment, try the model or generate content → skill `bailian-gen` (media) or `bl text chat` (fallback: `bl image\|video\|text --help`).
- Unsure which base model to pick → `bailian-model-recommend` / `bl advisor recommend`. - Unsure which base model to pick → `bailian-model-recommend` / `bl advisor recommend`.
@@ -71,5 +71,5 @@ bl deploy text create --model my-qwen-sft --name my-svc
## references ## references
- [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill add --name all`) - [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill init`)
- [reference/](reference/index.md) — command details - [reference/](reference/index.md) — command details
+4 -4
View File
@@ -13,12 +13,12 @@ description: >-
图片和语音同步返回并落地本地文件,视频是异步任务、用 `--download` 或轮询取回本地文件直接传路径CLI 自动上传。 图片和语音同步返回并落地本地文件,视频是异步任务、用 `--download` 或轮询取回本地文件直接传路径CLI 自动上传。
反触发:宿主自己能做的图片理解、普通问答、编程、写作、翻译不走本技能;百炼应用/知识库/用量/额度走 bailian-cli 反触发:宿主自己能做的图片理解、普通问答、编程、写作、翻译不走本技能;百炼应用/知识库/用量/额度走 bailian-cli
精调训练走 bailian-finetune。 精调训练走 bailian-finetune。
官方安装:`bl skill add --name all`(与共享协议 bailian-protocol 同装)。 官方安装:`bl skill init`(与共享协议 bailian-protocol 同装)。
--- ---
# Bailian media generation (`bl image` / `bl video` / `bl speech` / `bl omni`) # Bailian media generation (`bl image` / `bl video` / `bl speech` / `bl omni`)
**CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Provider selection and consent (one-time ask templates), Version & updates (pre-flight checklist), and CLI errors: report an issue. Command details are authoritative in [`reference/`](reference/index.md) and `bl <command> --help` — do not guess flags. If that protocol file is missing, stop and run `bl skill add --name all`; do not guess auth/consent.** **CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Provider selection and consent (one-time ask templates), Version & updates (pre-flight checklist), and CLI errors: report an issue. Command details are authoritative in [`reference/`](reference/index.md) and `bl <command> --help` — do not guess flags. If that protocol file is missing, stop and run `bl skill init`; do not guess auth/consent.**
## Consent (short version; full rules in bailian-protocol) ## Consent (short version; full rules in bailian-protocol)
@@ -76,7 +76,7 @@ If one or more `bl` commands actually ran, proactively add a one-line summary in
## Common hand-offs ## Common hand-offs
软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill add --name all` 软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill init`
- Generation failed and it is not a usage/auth/content-filter issue → follow the issue-reporting flow in `bailian-protocol` ([`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md#cli-errors-report-an-issue)) and ask once whether to report. - Generation failed and it is not a usage/auth/content-filter issue → follow the issue-reporting flow in `bailian-protocol` ([`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md#cli-errors-report-an-issue)) and ask once whether to report.
- Managing Bailian apps / knowledge bases / usage → skill `bailian-cli` (fallback: `bl app\|knowledge\|usage --help`). - Managing Bailian apps / knowledge bases / usage → skill `bailian-cli` (fallback: `bl app\|knowledge\|usage --help`).
@@ -84,5 +84,5 @@ If one or more `bl` commands actually ran, proactively add a one-line summary in
## references ## references
- [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill add --name all`) - [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill init`)
- [reference/](reference/index.md) — command details - [reference/](reference/index.md) — command details
+4 -4
View File
@@ -11,12 +11,12 @@ description: >-
apply / destroy 变更远端资源且必须带 `--yes`,务必先 plan 给用户看 diff 再让其确认。 apply / destroy 变更远端资源且必须带 `--yes`,务必先 plan 给用户看 diff 再让其确认。
反触发:调用已上线的百炼应用/智能体走 bailian-app-call 或 `bl app`;宿主 agent 自身的记忆、技能、 反触发:调用已上线的百炼应用/智能体走 bailian-app-call 或 `bl app`;宿主 agent 自身的记忆、技能、
子代理不走本 skill生图生视频走 bailian-gen。 子代理不走本 skill生图生视频走 bailian-gen。
官方安装:`bl skill add --name all`(与共享协议 bailian-protocol 同装)。 官方安装:`bl skill init`(与共享协议 bailian-protocol 同装)。
--- ---
# Bailian managed agent IaC (`bl managed-agent`) # Bailian managed agent IaC (`bl managed-agent`)
**CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Version & updates (pre-flight checklist) and CLI errors: report an issue. Command details are authoritative in [`reference/managed-agent.md`](reference/managed-agent.md) and `bl managed-agent --help` — do not guess flags. If that protocol file is missing, stop and run `bl skill add --name all`; do not guess auth/consent.** **CRITICAL — Before executing, MUST read the shared protocol in [`../bailian-protocol/SKILL.md`](../bailian-protocol/SKILL.md): Version & updates (pre-flight checklist) and CLI errors: report an issue. Command details are authoritative in [`reference/managed-agent.md`](reference/managed-agent.md) and `bl managed-agent --help` — do not guess flags. If that protocol file is missing, stop and run `bl skill init`; do not guess auth/consent.**
## Safety guardrail (the most important rule) ## Safety guardrail (the most important rule)
@@ -60,7 +60,7 @@ Flags, usage, and examples: see [`reference/`](reference/index.md) or `bl <comma
## Common hand-offs ## Common hand-offs
软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill add --name all` 软 hand-off按 skill **名**;已安装则 Read否则 `--help` / 提示 `bl skill init`
- Call an already published Bailian app/assistant → `bailian-app-call`, or skill `bailian-cli` (`bl app list` / `call`; fallback: `bl app --help`). - Call an already published Bailian app/assistant → `bailian-app-call`, or skill `bailian-cli` (`bl app list` / `call`; fallback: `bl app --help`).
- Choosing the model referenced in agents.yaml → `bailian-model-recommend`. - Choosing the model referenced in agents.yaml → `bailian-model-recommend`.
@@ -68,5 +68,5 @@ Flags, usage, and examples: see [`reference/`](reference/index.md) or `bl <comma
## references ## references
- [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill add --name all`) - [bailian-protocol](../bailian-protocol/SKILL.md) — shared protocol (install via `bl skill init`)
- [reference/](reference/index.md) — command details - [reference/](reference/index.md) — command details
+2 -2
View File
@@ -5,10 +5,10 @@ Shared execution protocol for the **bailian-\*** Agent Skill family (consent, ve
Business skills (`bailian-cli`, `bailian-gen`, `bailian-finetune`, `bailian-managed-agent`) read this skill before running `bl`. **Supported install** is the full family: Business skills (`bailian-cli`, `bailian-gen`, `bailian-finetune`, `bailian-managed-agent`) read this skill before running `bl`. **Supported install** is the full family:
```bash ```bash
bl skill add --name all bl skill init
``` ```
Use `bl skill add --name all`. Subset installs should explicitly include `bailian-protocol` when needed. Use `bl skill init`. Subset installs should explicitly include `bailian-protocol` when needed.
For CLI installation and command examples, see the [main README](../../README.md). For CLI installation and command examples, see the [main README](../../README.md).
+2 -2
View File
@@ -5,10 +5,10 @@
业务 skill`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)在跑 `bl` 前应读取本 skill。**官方安装**为整包: 业务 skill`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)在跑 `bl` 前应读取本 skill。**官方安装**为整包:
```bash ```bash
bl skill add --name all bl skill init
``` ```
请使用 `bl skill add --name all`。子集安装时如需要请显式带上 `bailian-protocol` 请使用 `bl skill init`。子集安装时如需要请显式带上 `bailian-protocol`
CLI 安装与命令示例见[主 README](../../README.zh.md)。 CLI 安装与命令示例见[主 README](../../README.zh.md)。
+4 -4
View File
@@ -8,7 +8,7 @@ description: >-
阿里云百炼 `bl` 家族共享执行协议consent 确认、版本预检、鉴权/安装、错误上报、本地文件与输出约定)。 阿里云百炼 `bl` 家族共享执行协议consent 确认、版本预检、鉴权/安装、错误上报、本地文件与输出约定)。
不是面向用户意图的业务入口;当任一 bailian-* 业务 skillbailian-cli / bailian-gen / 不是面向用户意图的业务入口;当任一 bailian-* 业务 skillbailian-cli / bailian-gen /
bailian-finetune / bailian-managed-agent执行前需要公共上下文或用户首次安装/鉴权/`bl` 报错需上报时读取本 skill。 bailian-finetune / bailian-managed-agent执行前需要公共上下文或用户首次安装/鉴权/`bl` 报错需上报时读取本 skill。
官方安装为整包:`bl skill add --name all`(与业务 skill 同装)。 官方安装为整包:`bl skill init`(与业务 skill 同装)。
--- ---
# Bailian shared protocol (`bailian-protocol`) # Bailian shared protocol (`bailian-protocol`)
@@ -18,7 +18,7 @@ description: >-
> **Installsupported** 整包装齐,含本 skill 与全部业务 skill > **Installsupported** 整包装齐,含本 skill 与全部业务 skill
> >
> ```bash > ```bash
> bl skill add --name all > bl skill init
> ``` > ```
> >
> 子集安装请显式带上 `bailian-protocol`(例如 `bl skill add --name bailian-protocol,bailian-gen`),否则业务 skill 的相对路径 Read 会失败。 > 子集安装请显式带上 `bailian-protocol`(例如 `bl skill add --name bailian-protocol,bailian-gen`),否则业务 skill 的相对路径 Read 会失败。
@@ -44,7 +44,7 @@ After approval, treat Bailian as selected for the current task. Do not ask again
## Family routing & hand-offs ## Family routing & hand-offs
业务路由(**软 hand-off**:按 skill **名**路由;已安装则 Read 其 `SKILL.md`,未安装则用 `bl <cmd> --help`,或提示整包安装 业务路由(**软 hand-off**:按 skill **名**路由;已安装则 Read 其 `SKILL.md`,未安装则用 `bl <cmd> --help`,或提示整包安装
`bl skill add --name all` `bl skill init`
| Intent | Skill | Fallback | | Intent | Skill | Fallback |
| ------------------------------------- | ----------------------- | ----------------------------------------------- | | ------------------------------------- | ----------------------- | ----------------------------------------------- |
@@ -55,7 +55,7 @@ After approval, treat Bailian as selected for the current task. Do not ask again
**共享协议** vs **软 hand-off** **共享协议** vs **软 hand-off**
- `bailian-protocol`:靠 `bl skill add --name all` 与业务 skill 同装CRITICAL 可用相对路径 `../bailian-protocol/…`。读不到则停止跑 `bl`,提示整包安装。 - `bailian-protocol`:靠 `bl skill init` 与业务 skill 同装CRITICAL 可用相对路径 `../bailian-protocol/…`。读不到则停止跑 `bl`,提示整包安装。
- 其它 bailian-\* 业务 skill只按名字提及**不要**写死 `../bailian-*/SKILL.md` 当执行前提。 - 其它 bailian-\* 业务 skill只按名字提及**不要**写死 `../bailian-*/SKILL.md` 当执行前提。
## Version & updates (after provider selection, before the first `bl` command) ## Version & updates (after provider selection, before the first `bl` command)
@@ -114,7 +114,7 @@ Offer reporting when **none** of EXCLUDE applies **and** any of the following ho
### Before offering to report ### Before offering to report
1. Align versions: [SKILL.md → Version & updates](../SKILL.md#version--updates-after-provider-selection-before-the-first-bl-command) — run `bl update` and `bl skill add --name all` if mismatched. 1. Align versions: [SKILL.md → Version & updates](../SKILL.md#version--updates-after-provider-selection-before-the-first-bl-command) — run `bl update` and `bl skill init` if mismatched.
2. Confirm `bl auth status` is healthy (for commands that need auth). 2. Confirm `bl auth status` is healthy (for commands that need auth).
3. Retry once with `--verbose` if stderr was thin. 3. Retry once with `--verbose` if stderr was thin.
+1 -1
View File
@@ -15,7 +15,7 @@ inspect config keys. Day-to-day command routing lives in the business skills
# Recommended binary install (no Node), or: npm install -g bailian-cli # Recommended binary install (no Node), or: npm install -g bailian-cli
curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash
# Install the full bailian-* skill family (includes bailian-protocol) # Install the full bailian-* skill family (includes bailian-protocol)
bl skill add --name all bl skill init
# Advanced / subset (comma-separated names; include bailian-protocol when needed) # Advanced / subset (comma-separated names; include bailian-protocol when needed)
# bl skill add --name bailian-protocol,bailian-gen # bl skill add --name bailian-protocol,bailian-gen
+4 -4
View File
@@ -16,7 +16,7 @@
3. Compare the two versions (ignore the `bl` prefix; compare only `X.Y.Z`): 3. Compare the two versions (ignore the `bl` prefix; compare only `X.Y.Z`):
- If `metadata.version``bl --version`, refresh skills before doing anything else: - If `metadata.version``bl --version`, refresh skills before doing anything else:
```bash ```bash
bl skill add --name all bl skill init
``` ```
- Do not trust a stale `reference/` when versions mismatch — flags may be wrong. - Do not trust a stale `reference/` when versions mismatch — flags may be wrong.
4. Check the latest published CLI version: 4. Check the latest published CLI version:
@@ -26,7 +26,7 @@
5. If the installed `bl` is **older** than the latest npm version, **STOP** the current task and **ask the user** (report skill version, installed CLI version, and npm latest): 5. If the installed `bl` is **older** than the latest npm version, **STOP** the current task and **ask the user** (report skill version, installed CLI version, and npm latest):
> A newer version of bl is available (current: X.Y.Z, latest: A.B.C). Upgrade before continuing? > A newer version of bl is available (current: X.Y.Z, latest: A.B.C). Upgrade before continuing?
- **Do NOT auto-upgrade silently** — the user decides. - **Do NOT auto-upgrade silently** — the user decides.
- If the user agrees: run `bl update`, then continue. (`bl update` upgrades `bailian-cli` via npm and, on success, also runs `bl skill add --name all` to keep skills in lockstep across all agent apps.) - If the user agrees: run `bl update`, then continue. (`bl update` upgrades `bailian-cli` via npm and, on success, also runs `bl skill init` to keep skills in lockstep across all agent apps.)
- If the user declines: continue with the current version and note it in the summary. - If the user declines: continue with the current version and note it in the summary.
- If `npm view` / `bl update` fails (offline, registry blocked, permission): continue with the current `bl` and tell the user it could not be updated. - If `npm view` / `bl update` fails (offline, registry blocked, permission): continue with the current `bl` and tell the user it could not be updated.
6. Only proceed with the user's actual task after the above is resolved. 6. Only proceed with the user's actual task after the above is resolved.
@@ -41,10 +41,10 @@ If `bl --version` fails, install the CLI and skills:
# Recommended — no Node required # Recommended — no Node required
curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash
# Or: npm install -g bailian-cli # Or: npm install -g bailian-cli
bl skill add --name all bl skill init
``` ```
Do not install a single business skill alone — use `--name all` so `bailian-protocol` is present. Do not install a single business skill alone — use `bl skill init` so `bailian-protocol` is present.
## Mention it in the task summary ## Mention it in the task summary
+1 -1
View File
@@ -7,7 +7,7 @@
* Ownership of each top-level command group is declared in `GROUP_OWNER_SKILL` below. * Ownership of each top-level command group is declared in `GROUP_OWNER_SKILL` below.
* Unmapped groups fall back to `bailian-cli` (hub) so new commands never block generation. * Unmapped groups fall back to `bailian-cli` (hub) so new commands never block generation.
* *
* Committed to git; consumed by bailian-* Agent Skills (`bl skill add --name all`). * Committed to git; consumed by bailian-* Agent Skills (`bl skill init`).
* *
* Run: pnpm --filter bailian-cli run generate:reference * Run: pnpm --filter bailian-cli run generate:reference
* Also run via `pnpm run sync:skill-assets` or the repo pre-commit hook. * Also run via `pnpm run sync:skill-assets` or the repo pre-commit hook.