/pku-cli:peoplefrom pku-cli
Queries the Peking University directory (portal.pku.edu.cn/publicQuery) to look up people by name or unit, list members of a department, or browse university units. Read-only; student accounts show name, unit, and category only.
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 the portal's 人员查询 (portal.pku.edu.cn/publicQuery): search the university directory by name and/or unit. Reachable off campus. Read-only.
showDetail.do, phone / office) is staff-only and is not used. Do not promise contact data.info-auth store) or PKU_USERNAME / PKU_PASSWORD.crates/campus-services/ (bin people, module src/people.rs; shares the lib with repair); protocol in docs/portal-services-api.md §6.1portal2017 → portal → appSysRedir.do?appId=portalPublicQuery&p1=personQuery → /publicQuery/ssoLogin.do?moduleID=…&token= → JSESSIONID. 401 / redirect / login-page HTML → one silent re-login.GET /publicQuery/ctrl/common/util/retrDeptList.do (354 units {id, jc, name}; the CLI resolves a unit by full name, then abbreviation, then substring) and POST /publicQuery/ctrl/common/personQuery/query.do JSON {nameAbbr, deptId, deptName, name, personType} → { success, results, rows: [{personName, deptName, personType}] }. Needs a name or a unit.src/lib.rs — both Clap CLIs and dispatchsrc/session.rs — shared portal sign-in for both servicessrc/api.rs — HTTP with one re-loginsrc/parse.rs — pure parsers (units, unit resolution, query body, people) with unit tests on fixtures/src/people.rs — subcommands| Command | 用途 |
|---|---|
login -p / status / logout | 登录 / 状态 / 退出 |
search [姓名] [-u 单位] [-c 类别] [-n 30] | 按姓名和/或单位查人(至少给一个);显示总人数,超出 -n 的要加条件缩小 |
units [名字] | 单位列表(可按名字过滤),用来确认单位的写法 |
people search 张三 -u 物理学院
people search -u 物理学院 -c 本专科学生 -n 10
people units 学院
anyhow::Result + .context("中文描述")~/.config/info/people/What 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