Agent skill

Bilibili

by sigcli in sigcli/sigcli

Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos.

MITAuto-check passed

Install Bilibili

skills CLI
$ npx skills add sigcli/sigcli --skill bilibili -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sigcli/sigcli bilibili --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sigcli/sigcli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bilibili .claude/skills/bilibili && rm -rf skills-src

Use ~/.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/

Facts

Skill name
bilibili
GitHub stars
293
Used in
1 other repo
Token cost
~2.8k tokens
SKILL.md length
848 words
Files
31 (incl. scripts, references)
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos.

  • Works in 5 steps: Read /references/provider-config.yaml → Append the provider block to… → Ask the user: "Do you need a proxy to… → …
  • The user mentions Bilibili
  • SKILL.md covers Skill Directory, Setup (run FIRST — every time,…, Running Scripts and Scripts Reference, plus 4 more sections
  • Runs Python scripts from its folder

What it does

Bilibili is an agent skill from sigcli/sigcli. Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos. Use this skill whenever the user mentions Bilibili, B站, wants to browse Bilibili content, search Bilibili videos, read Bilibili comments, look up Bilibili users, or interact with Bilibili content. Also trigger when the user pastes a Bilibili URL (e.g. bilibili.com/video/BV...) or mentions a BV ID.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 33 other files, including scripts and reference files (for example `references/provider-config.yaml`, `scripts/bilibili_client.py` and `scripts/bilibili_coin.py`).

It works with Bilibili. The repository describes itself as: The authentication CLI & Proxy for AI agents. Give agents access, not your credentials. The licence is MIT.

When your agent uses it

  • The user mentions Bilibili
  • Wants to browse Bilibili content
  • Search Bilibili videos
  • Read Bilibili comments

Example prompts

  • “/bilibili”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Read /references/provider-config.yaml
  2. Append the provider block to ~/.sig/config.yaml under providers
  3. Ask the user: "Do you need a proxy to access this site?" — if yes, add networkProxy: under the provider in config.yaml
  4. Run sig login bilibili (with --network-proxy if proxy was specified)
  5. Verify: run sig status bilibili again — must show valid: true before proceeding

What it can do on your machine

Read from SKILL.md and the folder at commit 9ba8b35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 15 files in scripts/ (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bilibili loads about 2.8k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 848 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

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.

Safety

Auto-check passed

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); the scripts in this folder are not scanned.

SKILL.md

The full file from sigcli/sigcli at commit 9ba8b35, republished under its MIT licence (© sigcli). 848 words, ~2,797 tokens.

Download SKILL.mdSave it as .claude/skills/bilibili/SKILL.md (or your agent's skills folder). This skill also uses 30 other files; get the full folder from GitHub.
name
bilibili
description
Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos. Use this skill whenever the user mentions Bilibili, B站, wants to browse Bilibili content, search Bilibili videos, read Bilibili comments, look up Bilibili users, or interact with Bilibili content. Also trigger when the user pastes a Bilibili URL (e.g. bilibili.com/video/BV...) or mentions a BV ID.

Bilibili

Browse trending videos, view video details, read comments, search content, view user profiles, and interact with Bilibili (B站).

Skill Directory

<SKILL_DIR> is the directory containing this SKILL.md file. Determine it ONCE at the start and reuse it.

Setup (run FIRST — every time, before any operation)

You MUST complete this setup before running any script. Do NOT skip this step.

bash
sig status bilibili 2>&1

Check the JSON output fields configured and valid:

  • configured: false → run Provider Setup below. Do NOT proceed without completing it.
  • valid: false (but configured: true) → run sig login bilibili, then re-check.
  • valid: true → detect proxy (see below), then execute the user's request.
Provider Setup
  1. Read <SKILL_DIR>/references/provider-config.yaml
  2. Append the provider block to ~/.sig/config.yaml under providers:
  3. Ask the user: "Do you need a proxy to access this site?" — if yes, add networkProxy: <url> under the provider in config.yaml
  4. Run sig login bilibili (with --network-proxy <url> if proxy was specified)
  5. Verify: run sig status bilibili again — must show valid: true before proceeding
Proxy Detection (after provider is valid)
bash
grep -A15 "^\s*bilibili:" ~/.sig/config.yaml | grep networkProxy | awk '{print $2}'

If this outputs a URL, prefix ALL python3 commands with HTTPS_PROXY=<url> HTTP_PROXY=<url>. If using socks5, convert to socks5h for python (e.g. socks5://... → socks5h://...). If empty, no proxy needed.

Running Scripts

All scripts require setup to be completed first (see above).

Read operations — use sig run to inject cookie (enables authenticated features):

bash
sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_hot.py --cookie "$SIG_BILIBILI_COOKIE" --limit 10'

Write operations — require sig run (cookie is mandatory):

bash
sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_like.py --cookie "$SIG_BILIBILI_COOKIE" --aid 123456'

Env var: SIG_BILIBILI_COOKIE

On auth error (401/403): run sig login bilibili automatically (no user prompt), then retry.

Scripts Reference

All scripts are in this skill's scripts/ directory. Run via Bash tool.

Read Operations
ScriptPurposeAuth
bilibili_video.pyVideo details by BVNone
bilibili_hot.pyHot/trending videosNone
bilibili_popular.pyPopular videosNone
bilibili_ranking.pyRanking by categoryNone
bilibili_search.pySearch videos/usersNone
bilibili_comments.pyVideo commentsNone
bilibili_user.pyUser profile + vidsNone
bilibili_dynamic.pyDynamic feed (动态)Required
bilibili_me.pyCurrent user profileRequired
bilibili_history.pyWatch historyRequired
bilibili_subtitle.pyVideo subtitlesNone
Write Operations
ScriptPurposeAuth
bilibili_like.pyLike/unlike a videoRequired
bilibili_coin.pyGive coins to videoRequired
bilibili_favorite.pyFavorite/unfavoriteRequired
bilibili_video.py
--bvid ID             Video BV ID (e.g. BV1xx411c7mD) (required)
bilibili_hot.py
--limit N             Max videos to return (default: 20)
--page N              Page number (default: 1)
--limit N             Max videos to return (default: 20)
--page N              Page number (default: 1)
bilibili_ranking.py
--category NAME       Category: all, anime, music, dance, game, tech, knowledge, life, food, animal, car, fashion, entertainment, movie, tv (default: all)
--limit N             Max videos to return (default: 20)
bilibili_search.py
--keyword TEXT        Search keyword (required)
--type TYPE           Search type: video, user (default: video)
--page N              Page number (default: 1)
--limit N             Max results (default: 20)
bilibili_comments.py
--bvid ID             Video BV ID (required)
--limit N             Max comments to return (default: 20)
--page N              Page number (default: 1)
bilibili_user.py
--mid N               User mid (numeric ID) (required)
--include-videos      Include recent videos (flag)
bilibili_dynamic.py
--cookie COOKIE       Bilibili session cookie (required)
--limit N             Max items to return (default: 20)
--offset TOKEN        Pagination offset from previous response
bilibili_me.py
--cookie COOKIE       Bilibili session cookie (required)
bilibili_history.py
--cookie COOKIE       Bilibili session cookie (required)
--limit N             Max items to return (default: 20)
--view-at N           Cursor from previous response for pagination
bilibili_subtitle.py
--bvid ID             Video BV ID (required)
--lang CODE           Subtitle language code (e.g. zh-CN, en-US, ai-zh). Default: first available
--cookie COOKIE       Bilibili session cookie (may be needed for some videos)
bilibili_like.py
--cookie COOKIE       Bilibili session cookie (required)
--aid N               Video aid (numeric ID) (required)
--undo                Unlike instead of like (flag)
bilibili_coin.py
--cookie COOKIE       Bilibili session cookie (required)
--aid N               Video aid (numeric ID) (required)
--multiply N          Number of coins: 1 or 2 (default: 1)
bilibili_favorite.py
--cookie COOKIE       Bilibili session cookie (required)
--aid N               Video aid (numeric ID) (required)
--folder-id N         Favorites folder ID (optional, defaults to first folder)
--undo                Remove from favorites instead of adding (flag)

Safety

Write operations are visible to the user's Bilibili account. Like and favorite are reversible via --undo. Coins cannot be taken back once given.

Always confirm with the user before calling bilibili_coin.py since coins are a limited, non-refundable currency on Bilibili.

Key Concepts

BV IDs — Bilibili videos are identified by BV IDs (e.g. BV1xx411c7mD). Most read scripts accept BV IDs directly.

AIDs — Numeric video IDs used by write operations. Get the aid from video details (bilibili_video.py).

WBI Signing — Search and user profile endpoints require WBI parameter signing. The client handles this automatically.

CSRF Token — Write operations need a bili_jct CSRF token extracted from the session cookie. The client extracts it automatically.

Categories — Ranking supports categories: all (0), anime (1), music (3), dance (129), game (4), tech (188), knowledge (36), life (160), food (211), animal (217), car (223), fashion (155), entertainment (5), movie (181), tv (177).

Pagination — List endpoints accept --page for page number and --limit for page size.

Show full SKILL.md (342 more words)Show less

Error Handling

ErrorCauseFix
HTTP_412Request blocked by anti-spamWait and retry, or use different IP
HTTP_404Video/user not foundCheck the ID is correct
AUTH_REQUIREDNo cookie for write opAuto-run sig login (no user prompt needed), retry
NO_CSRFNo bili_jct in cookieAuto-run sig login (no user prompt needed), retry
API_ERRORBilibili returned error codeCheck error message for details

Workflow Examples

Browse hot videos
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_hot.py --cookie "$SIG_BILIBILI_COOKIE" --limit 10'
  2. Next page: sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_hot.py --cookie "$SIG_BILIBILI_COOKIE" --limit 10 --page 2'
Get video details
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_video.py --cookie "$SIG_BILIBILI_COOKIE" --bvid BV1xx411c7mD'
Search for videos
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_search.py --cookie "$SIG_BILIBILI_COOKIE" --keyword "machine learning" --limit 10'
Search for users
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_search.py --cookie "$SIG_BILIBILI_COOKIE" --keyword "username" --type user'
Read video comments
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_comments.py --cookie "$SIG_BILIBILI_COOKIE" --bvid BV1xx411c7mD --limit 20'
View ranking
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_ranking.py --cookie "$SIG_BILIBILI_COOKIE" --category music --limit 10'
Like a video
  1. Get the aid: sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_video.py --cookie "$SIG_BILIBILI_COOKIE" --bvid BV1xx411c7mD' (check the aid field)
  2. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_like.py --cookie "$SIG_BILIBILI_COOKIE" --aid 123456'
Give coins
  1. Confirm with user first — coins are non-refundable
  2. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_coin.py --cookie "$SIG_BILIBILI_COOKIE" --aid 123456 --multiply 1'
Add to favorites
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_favorite.py --cookie "$SIG_BILIBILI_COOKIE" --aid 123456 --folder-id 100'
View my profile
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_me.py --cookie "$SIG_BILIBILI_COOKIE"'
Browse dynamic feed
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_dynamic.py --cookie "$SIG_BILIBILI_COOKIE" --limit 10'
  2. Next page: sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_dynamic.py --cookie "$SIG_BILIBILI_COOKIE" --offset TOKEN'
View watch history
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_history.py --cookie "$SIG_BILIBILI_COOKIE" --limit 20'
Get video subtitles
  1. sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_subtitle.py --cookie "$SIG_BILIBILI_COOKIE" --bvid BV1xx411c7mD'
  2. Choose language: sig run bilibili -- bash -c 'python3 <SKILL_DIR>/scripts/bilibili_subtitle.py --cookie "$SIG_BILIBILI_COOKIE" --bvid BV1xx411c7mD --lang en-US'

© sigcli, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 30 other files (scripts, references) in skills/bilibili of sigcli/sigcli.

  • SKILL.md
  • references/provider-config.yaml
  • scripts/bilibili_client.py
  • scripts/bilibili_coin.py
  • scripts/bilibili_comments.py
  • scripts/bilibili_dynamic.py
  • scripts/bilibili_favorite.py
  • scripts/bilibili_history.py
  • scripts/bilibili_hot.py
  • scripts/bilibili_like.py
  • scripts/bilibili_me.py
  • scripts/bilibili_popular.py
  • scripts/bilibili_ranking.py
  • scripts/bilibili_search.py
  • scripts/bilibili_subtitle.py
  • scripts/bilibili_user.py
  • scripts/bilibili_video.py
  • tests/test_bilibili_coin.py
  • … and 13 more

Open the folder on GitHubat commit 9ba8b35

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sigcli/sigcli, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bilibili 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.

Bilibili compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bilibili this skillsigcli/sigcli2931 repos~2.8kAutomated safety check: PassMIT
Agent ReachPanniantong/Agent-Reach93k1 repos~1.4kAutomated safety check: PassMIT
BibiJimmyLv/BibiGPT-v16.2k1 repos~885Automated safety check: PassGPL-3.0
MediaGo Video Downloadermediago-dev/mediago9.2k—~1.1kAutomated safety check: PassMIT
Hot Monitorliyupi/yupi-hot-monitor7181 repos~1.2kAutomated safety check: PassNone
Multi-Source to NotebookLM Processorjoeseesun/qiaomu-anything-to-notebooklm6.2k—~3.6kAutomated safety check: PassMIT

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    93k GitHub starsUsed in 1 repo~1.4k tokens
    Productivity & AutomationAuto-check passed
  • Bibi

    JimmyLv/BibiGPT-v1

    BibiGPT CLI for summarizing videos, audio, and podcasts directly in the terminal.

    6.2k GitHub starsUsed in 1 repo~885 tokens
    Media & CreativeAuto-check passed
  • MediaGo Video Downloader

    mediago-dev/mediago

    Downloads videos from m3u8/HLS streams, Bilibili and direct URLs by driving a running MediaGo instance's REST API, with bilingual first-time setup guidance.

    9.2k GitHub stars~1.1k tokensUpdated 2 days ago
    Media & CreativeAuto-check passed
  • Hot Monitor

    liyupi/yupi-hot-monitor

    AI hotspot monitoring and trending topic discovery across multiple sources (Bing, Google, DuckDuckGo, HackerNews, Sogou, Bilibili, Weibo, Twitter).

    718 GitHub starsUsed in 1 repo~1.2k tokens
    DatabasesAuto-check passed
  • Multi-Source to NotebookLM Processor

    joeseesun/qiaomu-anything-to-notebooklm

    Collects content from WeChat articles, web pages, YouTube, podcasts, documents and more, uploads it to NotebookLM and generates podcasts, slides or mind maps.

    6.2k GitHub stars~3.6k tokensUpdated 3 days ago
    Knowledge ManagementAuto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 7 days ago
    Media & CreativeAuto-check passed

More from sigcli/sigcli

All 15 skills in this repo
  • Hackernews

    sigcli/sigcli

    Interact with Hacker News (news.ycombinator.com) — browse top, new, and best stories, read item details and comment threads, look up user profiles, and search posts via Algolia.

    293 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Linkedin

    sigcli/sigcli

    Interact with LinkedIn — view your profile, browse other profiles, read the feed, search jobs/posts/people, get job details, create posts, like/unlike posts, comment, send connection requests, and…

    293 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Outlook

    sigcli/sigcli

    Interact with Outlook email — read inbox, send emails, search messages, reply/forward, manage folders, download attachments.

    293 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Reddit

    sigcli/sigcli

    Interact with Reddit — browse subreddits, read posts and comments, search content, view user profiles, post comments, vote, save posts, subscribe to subreddits.

    293 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Slack

    sigcli/sigcli

    Interact with Slack — read channels, search messages, check unreads, send messages, manage reactions, and look up users.

    293 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • V2ex

    sigcli/sigcli

    Interact with V2EX (v2ex.com) — browse hot and latest topics, read topic details and replies, search posts, create topics, reply to discussions, thank posts, favorite topics/nodes, follow members…

    293 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed

Works with

Questions about Bilibili

What does Bilibili do?

Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos. Bilibili is an agent skill from sigcli/sigcli. Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos.

When should I use Bilibili?

Bilibili fits situations like: the user mentions Bilibili; wants to browse Bilibili content; search Bilibili videos; read Bilibili comments.

How do I install Bilibili in Claude Code?

Run `npx skills add sigcli/sigcli --skill bilibili -a claude-code`. Or copy the skill folder (skills/bilibili in sigcli/sigcli) into .claude/skills/bilibili in your project. Claude Code loads it when a task matches its description.

How do I install Bilibili in Codex?

Run `npx skills add sigcli/sigcli --skill bilibili -a codex`. Or copy the skill folder (skills/bilibili in sigcli/sigcli) into .agents/skills/bilibili in your project. Codex loads it when a task matches its description.

Can I use Bilibili in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sigcli/sigcli --skill bilibili -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bilibili, .gemini/skills/bilibili, .github/skills/bilibili and .opencode/skills/bilibili in your project.

What does Bilibili need to run?

Going by SKILL.md and its folder, Bilibili needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Bilibili access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bilibili safe to install?

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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Bilibili use?

Bilibili is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bilibili use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 117 tokens, read only when the agent opens those files.

What are the alternatives to Bilibili?

Skills that share tags, products or a category with Bilibili: Agent Reach (Panniantong/Agent-Reach, 93k stars), Bibi (JimmyLv/BibiGPT-v1, 6.2k stars), MediaGo Video Downloader (mediago-dev/mediago, 9.2k stars) and Hot Monitor (liyupi/yupi-hot-monitor, 718 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bilibili?

sigcli (a GitHub organization) maintains it in sigcli/sigcli, which has 293 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 28, 2026.

Source: sigcli/sigcli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.