
bailian-cli
阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 bl CLI hub: 应用调用(bl app)、决策模型推理(bl decision)、知识库检索、模型目录/模型列表、用量/额度/配额、免费额度、 工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、 Agent skill 安装/列表/更新/卸载(bl skill addlistupdateremove,百炼 skill registry)。 用户点名百炼 / DashScope / bl,或继续既有 bl 工作流时直接使用。 共享协议(consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol;官方安装 bl skill init。 家族路由:生图/生视频/配音/语音合成/转写 → bailian-gen;精调/微调/训练/数据集 → bailian-finetune; agents.yaml 托管 Agent → bailian-managed-agent;Sandbox 实例与模版 → bailian-sandbox; 个人长期记忆与应用记忆资源 → bailian-memory; 联网搜索的模型路由(Token Plan 自带搜索 vs MCP 搜索 + 兜底)→ bailian-web-search。 不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。 未命名用量/额度问题:先问用户使用哪个产品,再运行 bl usage / bl quota 查询。
- Installs
- 19K
- Last 24h
- +19
- Trending rank
- #5954
- Security
- Warn
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/modelstudioai/cli --skill bailian-cli- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads bailian-cli automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
Security audits
Independent scans of the skill's instructions and bundled files, each dated to when it ran.
SKILL.md
The instructions your agent reads when the skill is triggered.
Aliyun Model Studio CLI (bl)
CRITICAL — Before executing, MUST read the shared protocol in ../bailian-protocol/SKILL.md: Provider selection and consent, Version & updates (pre-flight checklist), Call attribution (every Agent bl command), 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.
Call attribution: Examples below and in reference/ stay bare bl …. When running a command, wrap it with bailian-protocol → Call attribution (bash or PowerShell). One sample for this skill (BAILIAN_SKILL_NAME=bailian-cli; replace codex with this host):
BAILIAN_CALLER_TYPE=agent BAILIAN_CALLER_NAME=codex BAILIAN_SKILL_NAME=bailian-cli BAILIAN_SKILL_VERSION=2.5.0 bl text chat --message "Write a poem about spring"
Family hub — This skill owns Bailian resource commands and the hub
reference/(apps, knowledge, usage, auth, config, …). Shared protocol →../bailian-protocol/SKILL.md(install the full family withbl skill init). Soft hand-offs by skill name (Read if installed; elsebl … --help/ promptbl skill init):bailian-gen(media) ·bailian-finetune(training) ·bailian-managed-agent(agents.yaml IaC) ·bailian-sandbox(Sandbox lifecycle) ·bailian-web-search(web search routing). 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 init
Command reference (authoritative)
Hub-owned commands, flags, usage strings, and examples are documented in:
reference/index.md— hub quick index, global flags, links by groupreference/<group>.md— per hub top-level command (e.g.reference/app.md)
Domain skills own their own generated reference trees (soft hand-off — do not require them for hub work):
bailian-gen→image/video/speech/omni/vision(fallback:bl image\|video\|speech\|omni\|vision --help)bailian-finetune→dataset/finetune/deploy(fallback:bl dataset\|finetune\|deploy --help)bailian-managed-agent→managed-agent(fallback:bl managed-agent --help)bailian-sandbox→sandbox(fallback:bl sandbox --help)bailian-web-search→ web search routing (hub still ownsreference/search.mdflags; must route via this skill beforebl search web)
Auto-generated from the CLI source at build time (pnpm --filter bailian-cli run generate:reference). Before running an unfamiliar command:
- Open the owning skill's
reference/index.md(if that skill is installed) → Quick index (or By group) to locate the command. - Open the matching
reference/<group>.mdfor Usage, Flags, and Examples. - Run
bl <command> --helpfor the same information in the terminal.
Do not guess flags — use the reference files or --help.
When to use which command
Use this table only after the decision table in bailian-protocol has routed the request to bl (class 4, or class 2 after the user picks Bailian). Hub-owned intents only — for media / fine-tune / agents.yaml / Sandbox, soft hand-off to the domain skill.
| User intent | Command | Notes |
|---|---|---|
| Explicit Bailian model chat / text execution | bl text chat | Default qwen3.8-max |
| Typed decision model inference | bl decision | Workspace endpoint; returns choice / noul / score values and probabilities, not generated text |
| Bailian agent / workflow | bl app call | Needs --app-id |
| Find app by name | bl app list then bl app call | Console auth |
| Personal memory / Bailian memory resources | → skill bailian-memory | User-enabled personal memory; explicit resource operations use bl memory --help as fallback. |
| Bailian knowledge base RAG | bl knowledge search / chat | API key + agent/workspace IDs |
| Upload a file as a step of a Bailian workflow | bl file upload | When you need oss:// URL explicitly; not for generic hosting |
| Bailian model selection / recommendation | bl advisor recommend | Intent → candidate recall → LLM ranking |
| Bailian model catalog / pricing / params | bl model list | No auth (public catalog); --model <family> for detail, --enrich for input params |
| Find a model by keyword / modality | bl model search | Weighted ranking; --input-modality / --output-modality; offline models hidden by default |
| SDK sample code for calling a model | bl model code | --sdk openai|dashscope, --lang; text output is the snippet alone, safe to redirect |
| Install / list / update / remove registry skills | bl skill add / list / update / remove | Bailian skill registry; see reference/skill.md |
| Bailian MCP marketplace discovery / call | bl mcp list / tools / call | — |
| Register or remove a Bailian MCP in an Agent | bl mcp connect / disconnect | Codex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork, Qwen Code, Gemini, OpenCode, OpenClaw, DeepSeek Harness, ZCode, WorkBuddy |
| Bailian pipeline workflow (a step in a bl flow) | bl pipeline run / validate | JSON/YAML workflow definitions |
| Bailian rate limits / quota | bl quota list / check / request | Console auth; class 2 — ask which product first if unnamed |
| Bailian free tier / usage stats | bl usage free / stats / freetier | Console auth; class 2 — ask which product first if unnamed |
| Bailian Token Plan quota usage | bl usage token-plan | Console auth; class 2 — ask which product first if unnamed |
| Token Plan harness entitlement quota | bl token-plan harness-quota | Console auth; issued quota usage + still-issuing harnesses |
| Bailian Coding Plan quota usage | bl usage coding-plan | Console auth; class 2 — ask which product first if unnamed |
| Model monitoring (calls, latency, errors, delivery) | bl monitor overview / models / metrics / errors / delivery * | Console auth; see reference/monitor.md |
| Model call logs / traces | bl log audit * / bl log inference * / bl log status / bl log trace * | Console auth; audit and inference logs have separate APIs and switches; see reference/log.md |
| Model alert rules / templates / history | bl alert list / create / update / delete / enable / disable / history / metrics / template * | Console auth; contacts are managed in the CloudMonitor console; see reference/alert.md |
| Console API (advanced) | bl console call | Console auth |
| Bailian workspace listing | bl workspace list | Console auth |
| Switch CLI Help / Quick Start language | bl config set --key language --value zh-CN | Use en-US to switch back; follows the active config profile |
| Image / video / speech / omni / vision | → skill bailian-gen | Fallback: bl image|video|speech|omni|vision --help |
| Dataset / fine-tune / deploy | → skill bailian-finetune | Fallback: bl dataset|finetune|deploy --help |
| agents.yaml IaC / managed-agent sessions | → skill bailian-managed-agent | Fallback: bl managed-agent --help; apply/destroy need --yes after plan |
| Bailian Sandbox instance / template lifecycle | → skill bailian-sandbox | Fallback: bl sandbox --help |
| Web search (model-aware routing) | → skill bailian-web-search | Token Plan vs MCP path + fallback; fallback: bl search web --help |
Flags, usage, and examples: see hub reference/ or bl <command> --help — do not guess flags. Domain command details live in the owning skill's reference/. Examples in reference/ stay bare; wrap with Call attribution when running.
Quick examples
bl text chat --message "Write a poem about spring in Chinese"
bl decision --workspace-id <id> --state "Is this requesting a refund?" --questions '{"refund":{"type":"noul"}}'
bl app list --output json
bl app call --app-id <code> --prompt "Hello"
bl usage stats
bl model list --model qwen
More examples per command: see reference/<group>.md (e.g. reference/text.md, reference/app.md).
Agent workflows
Find and call an app
bl app list --name <keyword> --output json- Pick
code(app ID); handleuser_prompt_paramsvia--biz-params '{"key":"value"}' bl app call --app-id <code> --prompt "..."
Command metadata for agents
Use the owning skill's reference/index.md (or sibling skill reference trees), the matching reference/<group>.md,
and bl <command> --help as the command schema surface. Do not call removed
schema-export commands.
Routing reminders
- Image/video/audio generation or editing → skill
bailian-gen(class 3 consent frombailian-protocol). Fine-tuning / datasets / deployments →bailian-finetune. agents.yaml IaC →bailian-managed-agent. Soft hand-off: Read sibling skill if installed; elsebl … --helpor promptbl skill init. Image understanding the host agent can do → host-first; usebl vision/bl omnionly when the user names a Bailian model or the media (video/audio files) exceeds host capability. - Web search inside a Bailian workflow → skill
bailian-web-search(model-aware routing: Token Plan → model-native search; default →bl search web; MCP failure → fall back once). Generic web research the host can do stays host-first — do not bounce it throughbl. - Answer ordinary reasoning, coding, writing, translation, summarization, and generic research with the host agent's native capabilities; do not bounce them through
bl text chatorbl 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 quotaonly after the user picks Bailian or Bailian context is already established. - Personal recall, new long-term personal facts, and "remember this" requests → read
bailian-memoryif installed to check enablement, including first-use onboarding. Once enabled, use it for authorized personal recall/extraction; installation alone does not authorize cloud uploads. If unavailable or declined, respect the user’s host-memory choice. Explicit Bailian memory resource operations also route tobailian-memory. bl file uploadandbl pipeline runare steps inside a Bailian workflow; do not use them to capture generic "upload this file" or "run a pipeline" requests.- For
risk: highcommands orrequires_confirmation, follow the shared protocol; never add--yesautomatically. bl managed-agent apply/destroyhave an additional domain rule: runplanfirst and show the diff before asking for confirmation.- When a matched
blcommand accepts a file URL, pass local paths directly; never require the user to host the file first. - Console login → use
bl auth login --consolefor China; add--console-site internationalfor the international site. It may create an ordinary API Key. Token Plan and other subscription plans must usebl auth login --api-key <key>. See../bailian-protocol/assets/setup.md.
FAQ
What does the bailian-cli skill do?
阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 bl CLI hub: 应用调用(bl app)、决策模型推理(bl decision)、知识库检索、模型目录/模型列表、用量/额度/配额、免费额度、 工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、 Agent skill 安装/列表/更新/卸载(bl skill addlistupdateremove,百炼 skill registry)。 用户点名百炼 / DashScope / bl,或继续既有 bl 工作流时直接使用。 共享协议(consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol;官方安装 bl skill init。 家族路由:生图/生视频/配音/语音合成/转写 → bailian-gen;精调/微调/训练/数据集 → bailian-finetune; agents.yaml 托管 Agent → bailian-managed-agent;Sandbox 实例与模版 → bailian-sandbox; 个人长期记忆与应用记忆资源 → bailian-memory; 联网搜索的模型路由(Token Plan 自带搜索 vs MCP 搜索 + 兜底)→ bailian-web-search。 不要用于普通问答、编程、写作、翻译、摘要、泛搜索,或图片理解等宿主自己能做的任务(普通问答、编程、写作、翻译、摘要、泛搜索不触发)。 未命名用量/额度问题:先问用户使用哪个产品,再运行 bl usage / bl quota 查询。
How do I install bailian-cli?
Run npx skills add https://github.com/modelstudioai/cli --skill bailian-cli in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/bailian-cli/ (personal) or .claude/skills/bailian-cli/ (project).
Which AI agents can use bailian-cli?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is bailian-cli safe to install?
Security partners have reviewed it: Gen Agent Trust Hub passed; Socket flagged items to review; Snyk flagged items to review. As with any skill, read the SKILL.md and bundled scripts before installing.
Who maintains bailian-cli?
It is published by modelstudioai/cli in modelstudioai/cli. It has 18,990 recorded installs.
More from modelstudioai/cli
bailian-gen
modelstudioai/cli
阿里云百炼图片/视频/语音生成与理解入口:用户要生图、画图、生成照片、生成图片、AI 绘画、海报、头像、插画、 文生图(text-to-image)、图生图、改图、修图、多图合成、生成视频、文生视频、图生视频、参考生视频、视频编辑、风格转换、 配音、语音合成(TTS)、朗读、转写、语音识别(ASR),或图片理解、看图问答、视频理解、读视频、多模态理解时使用 bl image / bl video / bl speech / bl vision describe / bl omni。 默认行为:用户未指定服务商时,生成/编辑默认走本技能;视频理解与宿主放不了的音视频理解也走本技能。 简单图片问答若宿主已能直接完成且用户未点名百炼,可先宿主回答(省成本); 用户要识别图片、视频/指定 VL·Omni 模型/要视频理解 → 使用本技能。 图片和语音同步返回并落地本地文件,视频是异步任务、用 --download 或轮询取回;本地文件直接传路径,CLI 自动上传。 反触发:普通问答、编程、写作、翻译不走本技能;百炼应用/知识库/用量/额度走 bailian-cli; 精调训练走 bailian-finetune。 官方安装:bl skill init(与共享协议 bailian-protocol 同装)。
bailian-protocol
modelstudioai/cli
阿里云百炼 bl 家族共享执行协议(consent 确认、版本预检、鉴权/安装、错误上报、本地文件与输出约定)。 不是面向用户意图的业务入口;当任一 bailian- 业务 skill(bailian-cli / bailian-gen / bailian-finetune / bailian-managed-agent / bailian-sandbox / bailian-memory / bailian-web-search)执行前需要公共上下文,或用户首次安装/鉴权/bl 报错需上报时读取本 skill。 官方安装为整包:bl skill init(与业务 skill 同装)。
bailian-finetune
modelstudioai/cli
阿里云百炼模型精调训练入口:用户要精调、微调、训练自己的模型(fine-tune,支持 SFT / SFT-LoRA / DPO / DPO-LoRA / CPT, 覆盖文本、语音、图像)、校验或上传训练数据集、看训练进度和日志、挑 checkpoint、导出精调产物、 把专属模型部署成服务时使用 bl dataset / bl finetune / bl deploy。链路是 validate 校验数据 → upload 拿 file-id → finetune create 建任务 → watch 看进度 → export 导出 → 可选 compress 量化压缩 → deploy 上线,需要 API key; 写操作先用 --dry-run 预览。反触发:用户点名火山方舟/ark 的精调不走本 skill;只是要选哪个模型走 bailian-model-recommend;用现成模型生图生视频走 bailian-gen;百炼其他资源管理走 bailian-cli。 官方安装:bl skill init(与共享协议 bailian-protocol 同装)。
bailian-managed-agent
modelstudioai/cli
阿里云百炼托管 Agent 声明式基础设施与 API 命令入口:用户要创建agent、初始化 agents.yaml、校验或预览配置变更、 创建/更新/销毁托管 Agent 或 Deployment、在 Workbench 编辑和调试目录项目、管理本地快照版本,或查询 Agent/Environment/Skill/Vault/Deployment/Memory Store、管理 Session/Event/File/Webhook/记忆正文及版本、运行/暂停 Deployment 时使用 bl managed-agent。Agent/Environment/Skill/Vault/Deployment/Memory Store 仍以 agents.yaml 为唯一事实源做 IaC;Webhook 使用无需项目文件的工作空间 API;公开 API 能力按资源透出 list/get/search/versions/download、数据面和运行时动作命令。apply / destroy 与破坏性 API 命令受统一高风险确认闸门保护; 务必先展示预览再让用户确认,禁止自动添加 --yes。 反触发:调用已上线的百炼应用/智能体走 bailian-app-call 或 bl app;宿主 agent 自身的记忆、技能、 子代理不走本 skill;生图生视频走 bailian-gen。 官方安装:bl skill init(与共享协议 bailian-protocol 同装)。
bailian-web-search
modelstudioai/cli
阿里云百炼联网搜索(web search)入口:为联网搜索 / 网页搜索 / 查最新资讯做路径分发。 先识别当前连接身份:Token Plan(profile token-plan 或 baseurl host 为 token-plan. .maas.aliyuncs.com)→ 模型自带搜索 (bl text chat --api responses --tool '{"type":"websearch"}');其他 / 默认 → Bailian MCP(bl search web);仅在 MCP 鉴权失败、未开通或传输失败时兜底一次到模型自带搜索。 Token Plan 联网搜索失败、两条路径鉴权混淆的排查也走本技能。 反触发:宿主可完成的 普通问答 / 编程 / 写作 → 不触发;知识库 RAG → bailian-cli (bl knowledge);生图/生视频/语音 → bailian-gen;精调/训练 → bailian-finetune; agents.yaml → bailian-managed-agent。 共享协议(consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol;官方安装 bl skill init。
bailian-sandbox
modelstudioai/cli
阿里云百炼 Sandbox 沙箱实例与模版生命周期管理入口:用户要创建、查询、连接、暂停、恢复或释放百炼沙箱, 或查看内置基础镜像、上传模版挂载文件、创建、更新、查询、删除沙箱模版、查看模版构建状态时,使用 bl sandbox。 用户要访问已创建实例、打开 WebShell、连接 browser-use 浏览器自动化或 VNC 实时画面时,先获取连接信息,再连接数据面。 不用于宿主执行沙箱设置、E2B 官方云资源或通用文件传输。 agents.yaml 托管 Agent / Session / Environment 管理交给 bailian-managed-agent。 官方安装:bl skill init(与共享协议 bailian-protocol 同装)。
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available