/pku-cli:zhixuefrom pku-cli
CLI for PKU's course AI tutor (小北智学), enabling Q&A from course materials (lecture notes, slides). Supports joining/leaving public courses, asking questions with knowledge base context, and managing sessions.
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 小北智学, PKU's course tutors built on course material (59 public courses from 18 schools as of 2026-11). Ask general questions, or questions answered from a joined course's knowledge bases.
join / leave change the user's course list: without --yes they only preview. Add --yes only when the user asked.--think.ask creates a conversation and deletes it afterwards unless --keep.crates/zhixue/; protocol in docs/portal-apps-api.md §2portal2017 → appSysRedir.do?appId=aiassistant → Location: /validate?token=T → GET /api/validate?token=T → session cookie. Every call sends X-Server-Identifier: aiassistant; POSTs send X-CSRF-Token = the last x-csrf-token response header (kept in session.json extra.csrf). HTTP 401 / error_code 1003 → one silent re-login.POST /api/add_title {type: plain} or /api/course/add_title_with_course_id {type: kb} (+ GET /api/course/course_kb_list for kb_ids) → POST /api/chat SSE (data: {"answer": …}; <think>…</think> = reasoning; @# = newline; {"end":"end"}) → POST /api/delete_title.src/lib.rs — Clap CLI; src/commands.rs — courses, join/leave, ask (streams the answer), modelssrc/login.rs, src/api.rs — hand-off login, CSRF tracking, re-login, SSE requestsrc/parse.rs — envelope, course / kb / unique_id parsers, chat body, SseParser; unit tests| Command | 用途 |
|---|---|
login -p / status / logout | 登录 / 状态 / 退出 |
courses [--public] | 我加入的课程(和担任助教的);--public 加列可加入的公开课程(含 id) |
join <id> [--yes] / leave <id> [--yes] | 加入 / 退出公开课程(默认预览) |
ask "<问题>" [-c <课程id>] [-m DeepSeek-V4-Flash] [--think] [--keep] | 提问(流式输出);-c 用该课程知识库作答(需已加入) |
models | 可用模型(如 DeepSeek-R1、DeepSeek-V4-Flash) |
zhixue courses --public
zhixue join 12 # preview → confirm → --yes
zhixue ask "傅里叶变换的物理意义是什么?" -c 12
data / list / items / course_info_list~/.config/info/zhixue/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