/pku-cli:electivefrom pku-cli
CLI tool for PKU course selection (选课网) with auto-enrollment, CAPTCHA solving, and dual-degree support. Use when debugging elective commands, adding features, or automating course enrollment.
Ships in pku-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A CLI client for PKU's course selection system with auto-enrollment automation.
crates/elective/app_id="syllabus", redirect http://elective.pku.edu.cn:80/elective2008/ssoLogin.do) → elective SSO endpoint callbacksrc/main.rs — Clap CLI with subcommandssrc/commands.rs — Command implementations including auto-enroll loopsrc/api.rs — HTML scraping, CAPTCHA image extractionsrc/display.rs — Terminal output formattingsrc/client.rs — reqwest client builders| Command | Alias | Function |
|---|---|---|
login | IAAA login (supports --dual for dual-degree students) | |
logout / status | Session management | |
show | View current course selections | |
list | ls | Browse available courses for add/drop |
set | Add a course to auto-enroll target list | |
unset | Remove from auto-enroll targets | |
config-captcha | Configure CAPTCHA solver backend | |
launch | Start auto-enrollment polling loop | |
otp | TOTP 2FA management |
The config-captcha command supports multiple recognition backends:
manual — Display CAPTCHA image, user inputs answerutool — UTool OCR servicettshitu — TTShiTu recognition APIyunma — Yunma recognition API# Check session status
info-auth check
# Auto-login (reads credentials from OS keyring, no password needed)
elective login -p # single degree
elective login -p --dual major # dual degree - major
elective login -p --dual minor # dual degree - minor
Note: Dual-degree students MUST specify --dual major or --dual minor, otherwise login will fail with an error.
--dual flag at login for separate sessionanyhow::Result with .context("中文描述")~/.config/info/elective/info_common::credential (keyring → env → interactive)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pkuinfo/pkucli --plugin pku-cli23 skills in this plugin
/bdkj北京大学空间 (bdkj.pku.edu.cn) 学术研讨教室预约 CLI 工具。当用户提及 bdkj、北大空间、学术研讨教室、教室预约、研讨间、借教室 或想要查询/预约/取消 二教/四教/地学 教学楼里的空闲学术研讨教室时使用此 skill。支持保存固定参与人分组(如课题组),重复发起预约时只需 `--group <名字>`。Also use when dealing with bdkj IAAA SSO callback (app_id=bdkj), `/space` / `/space/schedule` / `/space/lockStatus` / `/classRoom/seachStudent` / `/classRoom/handle/submit` 这些端点,或 bdkj groups.json 持久化。/campuscardPKU Campus Card (校园卡) CLI tool built in Rust. Use this skill when working on the campuscard crate, debugging campus card commands, adding features, or when the user mentions 校园卡, campus card, balance, recharge, payment QR, transaction history, monthly spending, or bdcard.pku.edu.cn. Also use when dealing with Synjones platform auth, berserker-auth flow, mobile User-Agent requirements, or HTTP/1.1 constraints./claspiderOther plugins' skills for the same job