/pku-cli:cwfwfrom pku-cli
Read-only CLI client for PKU's financial portal (cwfw.pku.edu.cn). Queries salary, rewards, reimbursements, loans, remittances, and exchange rates via the Wingsoft WF platform.
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 read-only CLI client for PKU's financial information portal at cwfw.pku.edu.cn (Wingsoft "WF" platform). Campus network only — call it directly, never through a VPN/proxy.
| Command (alias) | 用途 |
|---|---|
login -p / status / logout | IAAA 登录 + 多步 bootstrap,会话管理 |
cj (reward) [-y 年] [-f 月] [-t 月] | 个人酬金:按笔发放的助教/助研/劳务费等(经办人、发放部门、扣税、实发) |
gz (salary) [-y] [-f] [-t] [-k 代码] [--list] | 个人工资查询:学生为按月发放的奖助学金、生活物价补贴(每月金额 + 合计) |
rk (deposits) [-s YYYY-MM-DD] [-u …] | 我的入卡:发到本人银行卡的每一笔(摘要、发放部门、经办人、入卡金额、支付状态/失败代码) |
bx (reimburse) | 智能报销:报销单各状态笔数与金额(草稿/审批中/待投递/待入账/被退回/支付失败/待我审批) |
jk (loans) | 个人未核销借款 |
wh (remittance) <关键词> [--all] [--since YYYY-MM] [--until …] [-c USD] [--min] [--max] | 外汇到款:学校收到的境外汇款,按汇款单位英文关键词;金额区间不能超过 10 万 |
hl (fx) [-c 美元] [-s] [-u] | 财务部外币汇率(中行折算价,每 100 外币) |
xc (payroll) [-k 0-5] [-s] [-u] [-p 项目号] | 薪酬劳务查询(经办/项目负责人视角,学生通常为空;不输出证件号/卡号) |
menu | 列出本账号"网上查询"可见菜单及窗口号 |
所有新查询命令都支持 --json,便于 Agent 解析。
"谁给我打了钱" → 先 cj(按笔酬金)+ rk(入卡),按月的奖助学金看 gz。
info-auth check
cwfw login -p
cwfw rk --json
crates/cwfw/app_id="IIPF") → WFManager/home2.jsp → findpages_postData.action (必须回 ok)
→ home3.jsp(每个子系统 <div id="WF_*" url="WINOPEN../<path>/main2.jsp?…&token=…">)→ 子系统入口。
登录只进 WF_CWBS;bx 需要时用 login::enter_subsystem("WF_YBX") 重新从 home3 进入 YBX。src/wf.rs):
loadDefinition.action {projid, winno, type=W} → 窗口定义(JS 字面量):按钮 procs:["$:#-#;#0-#…"]、 check_func、beforeLoadProcs、字段联动 funcMap、下拉数据源 bindMap`。哈希随会话变化,每次动态解析。commonUpdate_responseButtonEvent.action {cmd:{check_func, proc0, data0[]}, projid, userContext, async};
userContext 里要带表单字段 WF_CWBS$<func>-<FIELD>,服务端存进会话,表格 SQL 从这里取值(只改 data0 不生效)。crossfieldrebuild.action 拿动态列;4. commonQuery_doQuery.action 取行(无数据时可能直接返回 [])。
所有请求体走 encrypt.rs 混淆(a=<uid> 放第一个字段)。pass;local(0-BX_YBXALL_count:…))。src/login.rs — IAAA → bootstrap → WF_CWBS;enter_subsystem 进入其他子系统src/context.rs — userContext(loadRolesMenu 的 _@ 转义 JSON + loadInitFunction)src/encrypt.rs — 表单混淆(picList.encode/encode2)src/wf.rs — 通用协议 + 纯解析函数(procs/funcMap/bindMap/local()/菜单/动态列)src/queries.rs — 各查询流程与行映射(含单元测试,合成数据)src/api.rs — 个人酬金(最早的实现)与 doQuery 响应解析src/commands.rs / src/display.rs — 子命令与终端渲染~/.config/info/cwfw/;所有文案中文,anyhow::Result + .context("中文描述")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