/pku-cli:coursefrom pku-cli
CLI tool for PKU's Blackboard Learn teaching platform. Handles course downloads, assignment submission, video downloads, and TA tasks like grading and file posting.
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 Blackboard Learn teaching platform.
crates/course/app_id="blackboard") → Blackboard SSO endpoint callbackscraper crate for the student-side commands; the ta commands use Blackboard's public REST API (/learn/api/public/v1, authenticated by the session cookie, writes need an X-Blackboard-XSRF header) plus classic pages where REST is broken on this serversrc/main.rs — Clap CLI with subcommandssrc/commands.rs — Command implementationssrc/api.rs — HTML scraping logic, page parserssrc/display.rs — Terminal output formattingsrc/client.rs — reqwest client builderssrc/ta.rs — TA-side API: REST client + XSRF, classic grading form, 课堂实录 publish state| Command | Alias | Function |
|---|---|---|
login / logout / status | IAAA → Blackboard auth | |
courses | List enrolled courses (supports --all for all semesters) | |
info | Course details | |
content | Browse course content tree | |
assignments | List assignments with deadlines | |
assignment | View single assignment | |
browse | Interactive course content browser | |
assignment-download | adl | Download assignment attachments |
download | Download course files | |
video-download | vdl | Download course recordings |
videos | vls | List available videos |
submit | Upload homework files | |
otp | TOTP 2FA management | |
ta | Teaching-assistant tools (see below) |
course ta)| Command | Function |
|---|---|
ta ls <course> [folder] | List content areas / folder items, including hidden ones |
ta columns <course> | Grade Center columns (calculated columns marked read-only) |
ta roster <course> | Students, excluding *_previewuser accounts |
ta attempts <course> <column> | Submission and grading status per student |
ta download <course> <column> | Download all submissions + write a CSV grade template |
ta post <course> <folder> <file> | Publish a file item |
ta assign <course> <folder> -t <title> --due <time> | Create an assignment (with grade column) |
ta grade <course> <column> <student> -s <score> | Grade one attempt, with --feedback text and -f feedback files |
ta grade-batch <course> <column> <csv> | Grade from the CSV template (--files-dir for feedback files) |
ta videos / ta publish / ta unpublish | 课堂实录 publish state |
ta rm <course> <content_id> | Delete an item (refused if students have submitted) |
Safety rules built into the commands:
--yes to write. Agents should show the preview to the user before re-running with --yes.*_previewuser accounts; single ta grade only accepts a preview account when it is named explicitly.# Check session status
info-auth check
# Auto-login (reads credentials from OS keyring, no password needed)
course login -p
ta uses REST where it worksgradebook/attempts/{id} is 404 (use gradebook/columns/{col}/attempts/{id}), attempt file download is 404 (use /webapps/assignment/download), user name.family holds the 院系 and name.given the full namedisabled controls: the grading page has disabled feedbackFiles_remove inputs that would delete existing feedback filesanyhow::Result with .context("中文描述")~/.config/info/course/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