Bilibili Garb
/install bilibili-garb
Bilibili Garb (B站个性装扮)
Collect and manage Bilibili personalization items: garb suits, digital card collections, and benefit sub-items.
Setup
All authentication credentials are read from environment variables or a config file. Create configs/bili-api-creds.json in your workspace:
{
"appkey": "27eb53fc9058f8c3",
"appsecret": "\x3Cobtain from Bilibili mobile client>",
"access_key": "\x3Cyour access_key>",
"csrf": "\x3Cyour bili_jct>",
"DedeUserID": "\x3Cyour uid>",
"SESSDATA": "\x3Cyour SESSDATA>"
}
Or export environment variables:
export BILI_SESSDATA="\x3Cyour SESSDATA>"
export BILI_ACCESS_KEY="\x3Cyour access_key>"
export BILI_CSRF="\x3Cyour bili_jct>"
export BILI_UID="\x3Cyour uid>"
How to obtain credentials: Capture from Bilibili mobile app HTTP traffic (e.g., mitmproxy, Charles). The
access_keyexpires periodically and must be refreshed.
Commands
Search Garb Items
bash scripts/bilibili-garb-search.sh "关键词"
Searches both the official API and a local gallery database. Outputs Markdown with:
- Collection items (收藏集) with
biz_id - Suit items (套装) with
item_id - Discontinued items from local gallery marked
[藏馆-绝版]
Query Collection/Suit Details
bash scripts/bilibili-garb-collection.sh -i \x3CID>
- ID ≤ 6 digits → collection (收藏集) mode
- ID > 6 digits → suit (套装) mode
- Falls back to local gallery database for discontinued items
Scan Benefit Data
python3 scripts/garb-benefit-scan.py [options]
Scans owned garb items from data/decorations-database.json, calls benefit API for each, and appends results to data/garb-benefit-results.ndjson.
Options:
--limit N— process only N items--dry-run— show what would be scanned without making API calls--force— rescan items that already have benefit data--debug— output full API responses
Supports resume (Ctrl+C safe) and deduplication.
Key API Knowledge
See references/bilibili-garb-api-reference.md for full API documentation.
Critical points:
- Benefit API (
/x/garb/v2/user/suit/benefit) is the only way to get data for discontinued items. Requires sign authentication. - DIY suits: When
item_idcontains a hyphen (e.g.,1775103232001-0), passbiz_idas theitem_idparameter instead — the originalitem_idreturns-400. partparameter: Only one call withpart=space_bgreturns all 9 sub-item types. No need to iterate.- Scarcity tiers: Use
item_listAPI'sscarcityfield as the primary source. Whenscarcity_rate=2andrate2_count==1, default to small-hidden (30), do not auto-upgrade to large-hidden. - DLC avatar frames: Must come from
lottery_home_detail, never from collection's ownframe/frame_image.
Standard Operating Procedure
See references/bilibili-garb-sop.md for step-by-step workflows.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bilibili-garb - 安装完成后,直接呼叫该 Skill 的名称或使用
/bilibili-garb触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Bilibili Garb 是什么?
Bilibili garb (个性装扮) data collection and management. Search garb items, query suit/collection details, scan benefit data for owned items (including discontin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。
如何安装 Bilibili Garb?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-garb」即可一键安装,无需额外配置。
Bilibili Garb 是免费的吗?
是的,Bilibili Garb 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bilibili Garb 支持哪些平台?
Bilibili Garb 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bilibili Garb?
由 kuangzhanzhiwang(@kuangzhanzhiwang)开发并维护,当前版本 v1.0.1。