/pku-cli:venuesfrom pku-cli
Read-only CLI for PKU's sports venue system: live head counts, free/taken court slots, user bookings, and notices. Does not submit orders (captcha required).
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.
Read-only client for PKU's sports venue system: live head counts, sports and bookable sites, the free/taken grid per court and hour, the user's bookings, and notices.
/api/captcha/*); the CLI never solves it and never submits orders. Show the free slots, then give the user the link from venues open <site> so they book it themselves.reservationHour); a site can be viewed for today + 3 days.crates/venues/; protocol in docs/portal-apps-api.md §3ty, redirect https://epe.pku.edu.cn/ggtypt/dologin → GET /ggtypt/dologin?_rand&token → cookie sso_pku_token → POST /venue-server/api/login (header sso-token) → data.token.access_token → POST /venue-server/roleLogin roleid=3 (学生) → token sent as cgAuthorization on every call. Expiry from the JWT exp; one silent re-login on 401.app-key, timestamp (ms), sign = md5(W + path + Σ sorted key+value + timestamp + " " + W); path is after /venue-server, GET adds nocache=<timestamp> first, objects/empty/null values are skipped (parse::sign, unit-tested against a vector checked with the site's window.setSign).handler/monitor_inside_count, front/website/codes/code_keys?codeKeys=sport_type, reservation/campus/venue/info?sportType=, reservation/day/info?venueSiteId&searchDate&hasReserveInfo=1 (reservationStatus 1 = free, 4 = sold), orders/mine, front/website/init (notices + site directory).src/lib.rs — Clap CLI; src/commands.rs — commands, site resolution, slot gridsrc/login.rs — IAAA → sso → role login; src/api.rs — signed requests, re-loginsrc/parse.rs — signature, envelope, JWT exp, crowd / sports / sites / day grid / notices / orders parsers; unit tests on fixtures/ (real captures, booking token blanked)| Command | 用途 |
|---|---|
login -p / status / logout | 登录 / 状态 / 退出 |
crowd | 各场馆实时在场人数 |
sports [项目] | 运动项目及可预约场地(含场地 id、开放时间、片数、电话) |
slots <场地id或名字> [--date YYYY-MM-DD] / free | 每片场地每小时 ○ 可约 / × 已满 / - 不可约,及空闲时段汇总 |
orders [--page N] [-n 20] / mine | 我的预约 |
notices [-n 6] [--full] | 通知公告(开放时间调整等) |
open <场地> | 网页预约地址 https://epe.pku.edu.cn/venue/venue-reservation/<siteId> |
Site names resolve fuzzily: 60, 羽毛球场, 五四 羽毛球, 邱德拔羽毛球; ambiguous names list the candidates.
venues crowd # 健身房现在人多吗
venues slots 五四 羽毛球 --date 2026-11-29
venues open 86 # hand the booking to the user
orders/mine had no captured sample with orders: fields are parsed leniently (tradeNo/orderNo, venueName/siteName/spaceName, startDate/endDate, orderStatusName…)~/.config/info/venues/ (session.json holds the cgAuthorization JWT)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