bailian-opd

bailian-opd is a skill for Claude Code, Codex from modelstudioai/cli. It costs 138 tokens per session (2,586 once invoked), scanned A, original, Apache-2.0.

A guided workflow for distilling a smaller student AI model from a teacher model on Alibaba Cloud Bailian. It validates the dataset, checks settings, asks for confirmation, submits the job, and verifies its final state.

In plain words
What is it for?
It helps prepare and run pure Model OPD distillation jobs, where a student model learns from a teacher model’s outputs.
Why use it?
It replaces guesswork around training options and provides checkpoints before a cloud training job is submitted.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is `../bailian-protocol/SKILL.md` and follow it: mandatory version pre-flight.

Good fit It helps prepare and run pure Model OPD distillation jobs, where a student model learns from a teacher model’s outputs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/modelstudioai/cli
agentmods
npx agentmods add skills/modelstudioai/cli/bailian-opd

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bailian-opd

README.md
[![agentmods](https://agentmods.dev/badge/skills/modelstudioai/cli/bailian-opd/github.svg)](https://agentmods.dev/skills/modelstudioai/cli/bailian-opd)
Your own site
<a href="https://agentmods.dev/skills/modelstudioai/cli/bailian-opd"><img src="https://agentmods.dev/badge/skills/modelstudioai/cli/bailian-opd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bailian-opd

Your own site · 80×15
<a href="https://agentmods.dev/skills/modelstudioai/cli/bailian-opd"><img src="https://agentmods.dev/badge/skills/modelstudioai/cli/bailian-opd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.02586
Opus 5.5 $0.00055 $0.01034
Sonnet 5.5 $0.00028 $0.00517
Haiku 4.5 $0.00014 $0.00259

Measured 2d ago against content hash 90c5215cb65e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bailian-opd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/lib.mjs, scripts/opd-preflight.mjs, scripts/opd-submit.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/bailian-opd/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bailian OPD Distillation Workflow

Create a pure Model OPD training job (training_type=pg_opd, top-level teacher_model, no rollout/reward functions, no Function Compute) with the highest possible first-run success rate. Gate logic lives in deterministic scripts under scripts/; the agent orchestrates, presents findings, and obtains consent — it does not re-implement gates or guess flags.

CRITICAL — shared protocol first. Before executing anything, Read ../bailian-protocol/SKILL.md and follow it: mandatory version pre-flight before the first bl call, consent classes, attribution, error reporting, output conventions. If the protocol skill is missing, stop and prompt bl skill init. Business context for OPD flags lives in skill bailian-finetune (its reference/finetune.md) or bl finetune opd --help — never guess flags.

Attribution

Bundled scripts already carry the protocol script attribution (BAILIAN_CALLER_TYPE=script, BAILIAN_CALLER_NAME from --caller-name). For inline bl commands the agent runs itself, use the protocol agent template, e.g.:

BAILIAN_CALLER_TYPE=agent BAILIAN_CALLER_NAME=codex BAILIAN_SKILL_NAME=bailian-opd BAILIAN_SKILL_VERSION=2.10.2 bl finetune opd authorize --authorize --yes

Prerequisites

  • bl installed and up to date (protocol version pre-flight); node >= 18 on PATH.
  • Two logins: API key (bl auth login --api-key) for data/params/create, and Console (bl auth login --console) for the OPD feature authorize probe.
  • OPD is invite-only (邀测): the account whitelist must be enabled. Published student/teacher pairs and sizing: the official OPD docs "模型与训练单元" section (the CLI warns on unpublished pairs).

Workflow (steps 0–7)

0. Protocol pre-flight

Run the protocol version pre-flight; check node --version (>= 18) and bl auth status. Missing Console login blocks only the authorize stage — the preflight report still surfaces everything else.

1. Chain-start authorization

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed 90c5215cb65e
  2. 4d ago Changed 90827cfcb993
  3. 5d ago Changed 15e6637fdb87
  4. 6d ago Changed 975c0fdaf55b
  5. 9d ago First seen · 205 lines · 138 tokens per session scan A 9ae5b9583811

Subscribe to this mod's changes

bailian-opd is a skill published in the GitHub repository modelstudioai/cli (376 stars, last pushed 2d ago), licensed Apache-2.0. It adds 138 tokens to every session and 2,586 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

bailian-opd compared with skills from other repositories

bailian-opd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bailian-opdmodelstudioai/cliSkill3762d agoApache-2.0A138Claude Code, Codex
yao-geo-brand-graphyaojingang/yao-geo-skillsSkill9392mo agoMITA67Claude Code, Codex
qianwen-model-selectorQianWen-AI/qianwen-aiSkill1291mo agoApache-2.0A101Claude Code, Codex
qianwen-textQianWen-AI/qianwen-aiSkill1291mo agoApache-2.0A111Claude Code, Codex
qianwen-visionQianWen-AI/qianwen-aiSkill1291mo agoApache-2.0A118Claude Code, Codex
ai-ml-api-automationranbot-ai/awesome-skillsSkill15yesterdaynoneA30Claude Code, Codex
gemini-nano-bananaaiagenta2z/onekey-gatewaySkill527mo agononeA19Claude Code, Codex