/pku-cli:repairfrom pku-cli
CLI for PKU campus repair platform (wxsp.pku.edu.cn/bxsp2020). Submit dorm/classroom/building repair requests (lights, plumbing, AC, locks), check repair history and progress. Preview-only by default; --yes to actually notify staff.
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.
Client for 校园环境与后勤报修平台 (wxsp.pku.edu.cn/bxsp2020, portal page 我要报修). Reachable off campus. The form is free text: a phone number, the exact address and a description of at most 200 characters.
submit files a real request that staff act on, under the user's own name and student ID. Without --yes it only prints a preview. Show the user the exact phone, address and description and add --yes only after a clear yes.personId it is sent, so the CLI never takes one from the user. QR login has no student ID, so use repair login -p.info-auth store) or PKU_USERNAME / PKU_PASSWORD.crates/campus-services/ (bin repair, module src/repair.rs; shares the lib with people); protocol in docs/portal-services-api.md §5portal2017 → portal → appSysRedir.do?appId=bxsp → http://wxsp.pku.edu.cn/bxsp2020/ssoLogin.do?appID=hq_bxsp&token= (upgraded to https, redirects followed manually on that host) → JSESSIONID. 401 / redirect / login-page HTML → one silent re-login.POST /bxsp2020/ctrl/sheet/retrPrivateSheets.do?personId=<xh>&status=all (history) and POST …/submitPersonalApply.do (multipart: applyResource=微信, applyPersonId, applyName, applyCellphone, applyContactphone, applyAddress, applyContent, applyPicture=undefined — in that order, as the page sends it without a photo). No categories or location lists. The detail call and the staff calls are not used.src/lib.rs — both Clap CLIs and dispatchsrc/session.rs — shared portal sign-in for both servicessrc/api.rs — HTTP (query / JSON / multipart) with one re-loginsrc/parse.rs — pure parsers and form rules with unit tests on fixtures/src/repair.rs — subcommands; remembers the reporter's name in profile.json| Command | 用途 |
|---|---|
login -p / status / logout | 登录 / 状态 / 退出 |
list [--status all] [-n 30] [--json] | 我的报修单和处理进度 |
submit --phone … --address … --content … [--other-phone …] [--name …] [--yes] | 提交报修(默认预览);--name 第一次必填,之后记住 |
repair list
repair submit --phone 138xxxxxxxx --address "理科1号楼 304 室" --content "走廊灯管坏了" # 预览 → 用户确认
repair submit … --yes
anyhow::Result + .context("中文描述")~/.config/info/repair/submitPersonalApply.do is read from the site's JS, not exercised live; the history row field names are unverified (the sample account had none), so list --json shows the raw rowsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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