bilibili
Read and publish 专栏 articles on Bilibili (bilibili.com) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats…
от AceDataCloud★ 17 звёзд на GitHub
Установить bilibili в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
bilibili — read & publish 专栏 via your own cookies
Drives the user's real Bilibili 专栏 (article) account through the same
api.bilibili.com web endpoints the site uses, authenticated by the login
cookie they captured with the ACE extension. No browser, no third-party deps —
urllib + hashlib (the article-list read endpoint needs WBI signing, done
with stdlib).
The connector injects the cookie jar as an env var:
BILIBILI_COOKIES— a JSON array of cookies. Secret — never echo or print it. It includesSESSDATA(auth) andbili_jct(the CSRF token used for writes).
Image downloads honor standard HTTP_PROXY / HTTPS_PROXY and NO_PROXY.
A configured proxy must enforce public destinations when resolving hostnames;
without one, the script performs its existing local DNS checks.
CLI
The skill ships scripts/bilibili.py — self-contained, stdlib only.
# $SKILL_DIR can point at another skill loaded this turn — anchor on our own
# script, and re-run this at the top of every Bash block (fresh shell each time).
BILI="$SKILL_DIR/scripts/bilibili.py"; [ -f "$BILI" ] || BILI=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/bilibili.py' 2>/dev/null | head -1)
[ -f "$BILI" ] || { echo "bilibili script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$BILI" whoami # who is logged in (mid, name)
python3 "$BILI" articles --limit 20 # my 专栏 articles + stats
python3 "$BILI" article <cvid> # one article's stats (cv id)
python3 "$BILI" drafts --limit 50 # list saved drafts (aid + title)
python3 "$BILI" status --limit 10 # review state of recent submissions
python3 "$BILI" categories # 分类 names accepted by --category
Stats come straight from Bilibili: view (阅读), like (点赞), reply (评论),
favorite (收藏), coin (投币).
Verify the connection first
BILI="$SKILL_DIR/scripts/bilibili.py"; [ -f "$BILI" ] || BILI=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/bilibili.py' 2>/dev/null | head -1)
python3 "$BILI" whoami
# → {"mid": 10000000, "name": "...", "level": 4}
On a not-logged-in / auth error the cookie is expired — have the user reconnect at https://studio.acedata.cloud/console/connectors. Do not loop-retry.
Publishing — GATED (dry-run unless trailing --confirm)
publish writes to the user's real account. 专栏 content is HTML. Without a
trailing --confirm it dry-runs. --confirm is honored only as the last
argument. Always show the dry-run, get an explicit "yes", then re-run.
BILI="$SKILL_DIR/scripts/bilibili.py"; [ -f "$BILI" ] || BILI=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/bilibili.py' 2>/dev/null | head -1)
python3 "$BILI" publish --title "标题" --content-file a.html # dry-run
python3 "$BILI" publish --title "标题" --content-file a.html --draft-only --confirm # save a draft
python3 "$BILI" publish --title "标题" --content-file a.html --confirm # save draft + submit (publish)
python3 "$BILI" publish --title "标题" --content-file a.html --category 数码 --confirm # pick the 分类
--draft-onlysaves a draft (no submit) — safe; finish/publish in the editor. Prefer it when the user has not clearly asked to go public: a submitted article enters a review queue this CLI cannot withdraw it from.- The submit (go public) step is frequently rate-limited by Bilibili risk-control (HTTP 412). When that happens the CLI reports the saved draft + edit URL so the user can publish from the web editor.
--categorypicks the 分类 (default 数码, which suits technical posts). Runcategoriesfor the accepted names. The result echoes the 分类 actually used ascategory/category_id— report it when it wasn't the user's pick.
Publishing is not instant — it enters a review queue
A successful submit returns state: -2 (待审核) and pending_review: true.
The returned url 404s for everyone until Bilibili approves it (usually
minutes to hours). Tell the user it is pending; do not claim it is live, and do
not re-submit. Check later with status, which is the only view that shows
pending/rejected articles (the public list omits them):
python3 "$BILI" status --limit 5 # state_desc: 待审核 / 已发布 / 未通过 (+ reason)
Other states are not pending and will never go live on their own — the CLI
returns them with ok: false and published: false (-1 未通过 rejected, -3
锁定, -4 已删除). Read state_desc, tell the user plainly, and check status
for the reason rather than re-submitting.
The id in the publish result is the article id (use cv<id>), which is a
different number from draft_aid. Only ever share the url field. If Bilibili
returned no article id, url and id are null and id_unverified: true is
set — there is nothing shareable yet, so find the article with status instead
of constructing a link from draft_aid.
Managing drafts (the 999-d
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/bilibili.py
FAQ
Что делает скилл bilibili?
Read and publish 专栏 articles on Bilibili (bilibili.com) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats, inspect one article, and publish a new article. Use when the user mentions Bilibili / B站 / 专栏, "我的B站专栏", reading article stats (阅读/点赞), or publishing/投稿 a 专栏 article.
Как установить скилл bilibili?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bilibili запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…