bilibili-publisher

bilibili-publisher is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 26 tokens per session (982 once invoked), scanned A, original, Apache-2.0.

A command-line client for Bilibili, a Chinese video and content platform, covering videos, column articles, and short updates.

In plain words
What is it for?
Upload and submit videos, save or publish column-article drafts, and publish updates with text and images.
Why use it?
It provides one workflow for different Bilibili publishing tasks and uses dry-run mode so requests can be reviewed before sending. Some website interfaces may change and require checking first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Upload and submit videos, save or publish column-article drafts, and publish updates with text and images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/bilibili-publisher
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill bilibili-publisher
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

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 bilibili-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/bilibili-publisher/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/bilibili-publisher)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/bilibili-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/bilibili-publisher/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 bilibili-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/bilibili-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/bilibili-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 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.00026 $0.00982
Opus 5 $0.00013 $0.00491
Sonnet 5 $0.00005 $0.00196
Haiku 4.5 $0.00003 $0.00098

Measured 12d ago against content hash ac8c151f3a1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

bilibili-publisher 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/bilibili_publisher.py, tests/test_bilibili_publisher.py), 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.

skills/writing/video/bilibili-publisher/SKILL.md · 102 lines

How it starts

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

B 站 Publisher

B 站发布客户端,支持两种模式:

  1. 官方开放平台 API —— 视频上传/投稿,需申请 AppKey
  2. Web 内部 API —— 专栏文章/动态发布,仅需 Cookie

功能

  • video-upload —— 视频文件上传(演示流程,实际需分片上传 + 断点续传)
  • video-submit —— 视频投稿提交(官方 API)
  • article-save —— 专栏草稿保存(Web 内部 API)
  • article-publish —— 专栏文章发布(Web 内部 API)
  • dynamic-post —— 动态发布(Web 内部 API)

安全设计

  • 默认 dry-run:所有写操作默认只打印请求计划,不联网;加 --execute 才真正发送。
  • 凭据隔离
    • 官方 API:BILI_ACCESS_KEYBILI_SECRET_KEY 环境变量
    • Web API:BILI_COOKIE 环境变量或 --cookie-file

使用示例

# 专栏草稿保存
export BILI_COOKIE="your_cookie_here"
python bilibili_publisher.py article-save --execute \
  --title "我的专栏文章" \
  --content "# 标题\n正文内容..." \
  --summary "文章摘要" \
  --category 0 \
  --tags "Python,AI" \
  --images "https://example.com/img1.png"

# 专栏发布
python bilibili_publisher.py article-publish --execute <article_id>

# 动态发布
python bilibili_publisher.py dynamic-post --execute \
  --content "发个动态 #话题#" \
  --images "https://example.com/img1.png,https://example.com/img2.png"

端点核对(首次使用必做)

Web 内部 API 无官方文档,端点可能随时变更。首次使用前请在浏览器 DevTools 核对。

当前端点(需核对):

  • 视频上传凭证: GET https://member.bilibili.com/x/web-interface/upload/pre
  • 视频分片上传: POST https://member.bilibili.com/x/web-interface/upload/chunk
  • 视频完成上传: POST https://member.bilibili.com/x/web-interface/upload/complete
  • 视频投稿: POST https://member.bilibili.com/x/web-interface/archive/add
  • 专栏草稿: POST https://api.bilibili.com/x/article/add
  • 专栏发布: POST https://api.bilibili.com/x/article/publish
  • 动态发布: POST https://api.bilibili.com/x/dynamic/publish

认证

官方 API

  • BILI_ACCESS_KEY + BILI_SECRET_KEY — 需自行实现签名鉴权

Web 内部 API

  • BILI_COOKIE — 包含 SESSDATAbili_jctDedeUserID 等字段
  • --cookie-file 指定文件路径
export BILI_COOKIE="SESSDATA=xxx; bili_jct=xxx; DedeUserID=xxx; ..."
# 或
python bilibili_publisher.py article-save --cookie-file ~/.bili_cookie ...

退出码

  • 0 成功
  • 1 API 错误或参数错误

依赖

  • Python 3.8+
  • 标准库
  • publish_common(打包后与技能目录平级的 _common/publish_common.py;仓库内位于 skills/writing/_common/

Read the full file on GitHub · 102 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 102 lines · 26 tokens per session scan A ac8c151f3a1d

Subscribe to this mod's changes

bilibili-publisher is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 26 tokens to every session and 982 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

js-reverse-automation

A workflow for examining JavaScript in a real browser to find where login data, API requests, form fields, or responses are encrypted or signed. It then produces code and connection documentation for using that logic elsewhere.

Fausto-404/js-reverse-automation--skill · 48 tokens

yao-chatgpt-crawler

Use when a user provides ChatGPT web AI-search keywords, repeat count, target entity, entity type, OpenCLI profile, and crawl interval preference, then needs repeated crawls aggregated into JSON plus a Kami HTML GEO report. Not for generic crawling, ChatGPT API chat, SEO writing, or one-off answers.

yaojingang/yao-geo-skills · 71 tokens

yao-doubao-crawler

Use when a user needs repeated Doubao AI-search collection from web or Android Appium into compatible JSON plus Markdown/Excel/HTML GEO reports. Requires keywords/questions and repeat count; target entity/type are required only for target-vs-competitor diagnosis. Not for generic scraping, Doubao API chat, hidden API…

yaojingang/yao-geo-skills · 85 tokens

browser-harness-authoring

Use when mapping a repeatable website workflow into a verified Hermes skill so later runs can follow known steps instead of rediscovering the site. Surveys browser compatibility, semantic targets, failure modes, recovery paths, decision gates, and expiry using dummy data and no irreversible submissions.

AtlasOmnia/hermes-custom-pack · 60 tokens

reddit-browse-and-post

Let an agent read Reddit by default, and publish only after the user explicitly opts in and approves the exact post. Everything here is account-agnostic: the user supplies credentials through environment variables or a browser login, never through chat.

AtlasOmnia/hermes-custom-pack · 54 tokens

laohan-xiazai

A content-retrieval toolkit for downloading or extracting material from more than 30 online platforms, including video, audio, subtitles, comments, and web pages.

hanzhcn/laohan-skills · 360 tokens