Aliyun Bailian AI Expert
theneoai/awesome-skills
阿里云百炼Model Studio:可视化RAG搭建、企业知识库问答、AI应用开发。Use when building RAG applications, enterprise knowledge bases, or AI chatbots.
Manages Alibaba Cloud Bailian knowledge bases with the bl command line: create bases, upload documents, deploy search services, fix chunks and handle data center files.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add modelstudioai/cli --skill bailian-kb -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install modelstudioai/cli bailian-kb --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .claude/skills/bailian-kb && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .claude/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kbType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add modelstudioai/cli --skill bailian-kb -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install modelstudioai/cli bailian-kb --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .agents/skills/bailian-kb && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .agents/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelstudioai/cli --skill bailian-kb -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install modelstudioai/cli bailian-kb --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .cursor/skills/bailian-kb && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .cursor/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/modelstudioai/cli.git --path packages/bailian-kb-dsh/skills/bailian-kb--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add modelstudioai/cli --skill bailian-kb -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install modelstudioai/cli bailian-kb --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .gemini/skills/bailian-kb && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .gemini/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install modelstudioai/cli bailian-kbInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add modelstudioai/cli --skill bailian-kb -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .github/skills/bailian-kb && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .github/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelstudioai/cli --skill bailian-kb -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install modelstudioai/cli bailian-kb --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/bailian-kb-dsh/skills/bailian-kb .opencode/skills/bailian-kb && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bailian-kb" agent skill from https://github.com/modelstudioai/cli/tree/main/packages/bailian-kb-dsh/skills/bailian-kb into .opencode/skills/bailian-kb/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-kb", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bailian-kbManages Alibaba Cloud Bailian knowledge bases with the bl command line: create bases, upload documents, deploy search services, fix chunks and handle data center files.
Bailian knowledge base management happens through the bl command from bailian-cli, and the skill is written in Chinese. Day-to-day lookups are not done here: the agent uses the native kb_search tool for evidence and kb_chat for finished answers, and bl search or chat is kept for debugging a service after deployment, for example against a beta draft version.
Commands are grouped by intent: creating, listing, renaming, deleting and monitoring knowledge bases; uploading local documents, checking parse status, tagging and deleting them; importing in bulk from OSS; creating, updating and deploying search or Q&A services; adding, editing and deleting chunks to correct or hide content; and managing data center categories, files and collections.
Setup comes first. bailian-cli is installed with npm and needs Node.js 18.17 or newer, authentication uses a DASHSCOPE_API_KEY, and the workspace ID comes from a flag, an environment variable or the CLI config. The list of deployed retrieval services is injected by a plugin and refreshed about every 30 minutes, so a service just created with bl may be missing from it. If no listed service fits the question, the agent says so instead of guessing an agent ID.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8bbbbc7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
DASHSCOPE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bailian Knowledge Base Manager loads about 1.5k tokens when it runs. Until then it costs about 112 tokens; SKILL.md has 355 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from modelstudioai/cli at commit 8bbbbc7, republished under its Apache-2.0 licence (© modelstudioai). 355 words, ~1,508 tokens.
.claude/skills/bailian-kb/SKILL.md (or your agent's skills folder).检索面与管理面的分工:查知识用 kb_search(取证据)/ kb_chat(成品问答)原生工具;本 skill 只覆盖管理长尾——知识库全生命周期、文档、检索服务、Chunk、数据中心。
本 skill 不负责判断何时该检索。可用检索服务的清单(含 agent_id)由插件自动注入到会话上下文里,kb_search / kb_chat 直接取用;不需要为了检索先加载本 skill。
bl 新建或部署的服务不会立刻出现在清单里。不用等刷新——命令输出里刚拿到的 agent_id 直接可用;bl knowledge service list --scene search --name <关键词>;bl knowledge list --help。若报 Unknown command 或 bl 未安装,执行
npm install -g bailian-cli(需 Node.js ≥ 18.17);已安装但命令缺失时先 bl update 升级。
安装失败时把错误原样报告给用户,不要静默跳过。DASHSCOPE_API_KEY(环境变量,或 bl auth login --api-key sk-xxx,或 bl config set --key api_key --value sk-xxx)。--workspace-id 参数 > 环境变量 BAILIAN_WORKSPACE_ID > bl config set --key workspace_id --value ws-xxx。| 用户意图 | 命令 | 备注 |
|---|---|---|
| 查知识 / 问答(日常检索) | 原生工具 kb_search / kb_chat | 不走 bl |
| 建库 / 查看 / 改名 / 删库 / 监控 | bl knowledge create/list/info/update/delete/stats | bl knowledge create --help |
| 上传本地文档、看解析状态、删文档、打标签 | bl knowledge doc upload/list/status/delete/tag | bl knowledge doc upload --help |
| 从 OSS 批量导入 | bl knowledge doc import-oss | Bucket 需预先授权服务角色 |
| 创建 / 部署 / 调参检索(问答)服务 | bl knowledge service create/update/deploy/… | bl knowledge service --help |
| 修正错误切片、屏蔽某段内容 | bl knowledge chunk add/list/update/delete | bl knowledge chunk --help |
| 数据中心类目 / 文件 / 集合管理 | bl knowledge category/file/collection … | bl knowledge category --help |
| CLI 配置、升级 | bl config show/set、bl update | bl config --help |
| 部署后验证、调试草稿版服务 | bl knowledge search/chat --agent-version beta | bl knowledge search --help |
bl knowledge doc upload --file ./docs/ --workspace-id ws-xxx # 1. 上传本地文件/目录 → 得 fileId
bl knowledge create --name my-kb --description '产品文档' --doc-id <fileId> --wait # 2. 建库并导入 → 得 index-id (pipelineId)
bl knowledge service create --name my-search --scene search --index-id <index-id> # 3. 建检索服务 → 得 agent-id(draft)
bl knowledge service deploy --agent-id <agent-id> --yes # 4. 发布服务(此后可被默认版本调用)
bl knowledge service list --scene search --status deployed # 5. 确认服务可见部署完成后用原生工具 kb_search 带该 agent_id 验证检索;若要在部署前调试草稿配置,用 bl knowledge search --agent-id <id> --agent-version beta。
已有文件再入库的简写:bl knowledge doc upload --file ./a.md --index-id <index-id> --wait(上传+导入一步完成)。
| ID | 来源 | 用在哪 |
|---|---|---|
index-id | knowledge create 返回的 pipelineId / knowledge list | 所有 knowledge/doc/chunk 命令的 --index-id |
fileId | doc upload / doc import-oss 返回 | 数据中心命令(file get/delete、knowledge create --doc-id、doc tag) |
doc_id(库内文档 ID) | doc list 输出 | doc delete、chunk add/update 的 --doc-id;可能带 workspace 后缀,≠ fileId |
job-id | 导入命令返回的 ingestionId | doc status(必须同时给 --index-id 和 --job-id) |
| chunk id | chunk list 输出的 metadata._id | chunk update/delete 的 --chunk-id |
agent-id | service create/list | service *、kb_search/kb_chat、bl knowledge search/chat |
执行不熟悉的命令前,跑 bl <命令> --help 查看完整 Usage / Flags / Notes / Examples。不要猜 flag。
全部命令支持 --output json(结构化输出)、--dry-run(预览请求)、--quiet、--verbose。
执行以下操作前须向用户确认,脚本化时才用 --yes 跳过交互确认:
knowledge delete:不可逆,库和全部索引内容永久删除(数据中心源文件保留)。file delete:不可逆,且引用该文件的知识库文档索引会失效;只想从单个库移除用 doc delete。chunk delete:不可逆。service deploy:发布影响线上调用方;service delete 后 agent_id 不可再用(软删、幂等)。collection create:没有删除 API,创建集合要慎重。service create --name 的名称是模型判断"这个服务能查什么"的主要依据(服务描述暂未随列表接口返回)。检索服务1 这类无语义的名字会让后续检索无法路由;写成 产品文档检索、HR制度问答 这种能看出覆盖内容的名字。同时填 --description(≤1000 字符),列表接口返回该字段后即可自动生效。--agent-version beta。改已发布版本的配置:先改 beta 草稿(service update),验证后 service deploy 发新版本。knowledge create、doc upload --index-id、doc status)优先带 --wait 轮询到终态,避免手工轮询;文档解析失败(如 PARSE_FAILED)会以非零退出码透传错误。chunk add 有 10 QPS 限流,批量脚本注意节流;响应不带 chunk id,需要 chunk list 反查。service list 必须带 --scene chat|search,两个场景要分别查询。© modelstudioai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/bailian-kb-dsh/skills/bailian-kb of modelstudioai/cli.
Open the folder on GitHubat commit 8bbbbc7
Bailian Knowledge Base Manager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bailian Knowledge Base Manager this skillmodelstudioai/cli | 541 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Aliyun Bailian AI Experttheneoai/awesome-skills | 183 | — | ~3.8k | Automated safety check: Pass | MIT | |
| Cortexdb Memory Openclawliliang-cn/cortexdb | 273 | — | ~1.6k | Automated safety check: Pass | MIT | |
| TeamAI Team SyncTencent/teamai-cli | 5.1k | — | ~632 | Automated safety check: Pass | Custom licence | |
| AWS Cloudformation Bedrockgiuseppe-trisciuoglio/developer-kit | 355 | — | ~3.2k | Automated safety check: Notes | MIT | |
| Knowledge Queryevolution-foundation/evo-nexus | 544 | — | ~804 | Automated safety check: Notes | Custom licence |
theneoai/awesome-skills
阿里云百炼Model Studio:可视化RAG搭建、企业知识库问答、AI应用开发。Use when building RAG applications, enterprise knowledge bases, or AI chatbots.
liliang-cn/cortexdb
Give a Node.js agent (such as OpenClaw) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client npm package.
Tencent/teamai-cli
Make every team AI native — TeamAI syncs a team's AI skills, rules, docs and env across AI coding tools. Use when the task operates on team-shared AI…
giuseppe-trisciuoglio/developer-kit
Provides AWS CloudFormation patterns for Amazon Bedrock resources including agents, knowledge bases, data sources, guardrails, prompts, flows, and inference profiles.
evolution-foundation/evo-nexus
Hybrid search (vector + BM25 via RRF + metadata boost) against the pgvector Knowledge base, with optional RAG synthesis.
andrewyng/context-hub
Guides building Tavily integrations for web search, URL extraction, site crawling and AI-assisted research in Python or JavaScript agent and RAG projects.
modelstudioai/cli
Chinese-language entry point into Alibaba Cloud Bailian's image, video and speech generation and understanding, routed through separate image, video, speech and vision commands.
modelstudioai/cli
Shared execution protocol for the Alibaba Cloud Bailian bl skill family, covering consent, version checks, authentication and install, issue reporting and output conventions.
modelstudioai/cli
Hub for the bl CLI of Alibaba Cloud Model Studio (Bailian): app calls, knowledge bases, model catalog, usage and quota, workspaces, MCP market, auth and skill installs.
modelstudioai/cli
Drives fine-tuning on Alibaba Cloud Model Studio with the bl CLI: validate and upload data, create a job, watch it, export results and deploy the model.
modelstudioai/cli
Manages Alibaba Cloud Bailian managed agents as infrastructure as code with the bl managed-agent command, previewing every change before apply or destroy.
modelstudioai/cli
Decides whether a web search in Alibaba Cloud Bailian (Model Studio) workflows uses the model's built-in search or the Bailian MCP, based on the connection type.
Works with
Categories
Manages Alibaba Cloud Bailian knowledge bases with the bl command line: create bases, upload documents, deploy search services, fix chunks and handle data center files. Bailian knowledge base management happens through the bl command from bailian-cli, and the skill is written in Chinese. Day-to-day lookups are not done here: the agent uses the native kb_search tool for evidence and kb_chat for finished answers, and bl search or chat is kept for debugging a service after deployment, for example against a beta draft version.
Bailian Knowledge Base Manager fits situations like: creating or deleting a Bailian knowledge base from the command line; uploading or importing documents from a local folder or OSS; deploying or tuning a retrieval or Q&A service and then verifying it; correcting wrong chunks or hiding a passage in a knowledge base.
Run `npx skills add modelstudioai/cli --skill bailian-kb -a claude-code`. Or copy the skill folder (packages/bailian-kb-dsh/skills/bailian-kb in modelstudioai/cli) into .claude/skills/bailian-kb in your project. Claude Code loads it when a task matches its description.
Run `npx skills add modelstudioai/cli --skill bailian-kb -a codex`. Or copy the skill folder (packages/bailian-kb-dsh/skills/bailian-kb in modelstudioai/cli) into .agents/skills/bailian-kb in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modelstudioai/cli --skill bailian-kb -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bailian-kb, .gemini/skills/bailian-kb, .github/skills/bailian-kb and .opencode/skills/bailian-kb in your project.
Going by SKILL.md and its folder, Bailian Knowledge Base Manager needs the command-line tools its instructions call (npm) and credentials named DASHSCOPE_API_KEY. Our summary lists: bl (bailian-cli), installed with npm, which needs Node.js 18.17 or newer; A DASHSCOPE_API_KEY; A Bailian workspace ID.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Bailian Knowledge Base Manager is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Bailian Knowledge Base Manager: Aliyun Bailian AI Expert (theneoai/awesome-skills, 183 stars), Cortexdb Memory Openclaw (liliang-cn/cortexdb, 273 stars), TeamAI Team Sync (Tencent/teamai-cli, 5.1k stars) and AWS Cloudformation Bedrock (giuseppe-trisciuoglio/developer-kit, 355 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
modelstudioai (a GitHub organization) maintains it in modelstudioai/cli, which has 541 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 30, 2026.
Source: modelstudioai/cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.