cwfw

北京大学财务综合信息门户 (cwfw.pku.edu.cn / WF_CWBS) CLI 工具。当用户提及 cwfw、财务门户、财务综合信息门户、个人酬金、工资查询、报销查询 时使用此 skill。Also use when dealing with cwfw IAAA 登录 (app_id=IIPF)、home2.jsp→findpages_postData.action→home3.jsp 多步 bootstrap、WF_CWBS 子系统入口、或 cwfw 的加密表单字段。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cwfw" with this command: npx skills add wjsoj/pku-cwfw

cwfw - 北大财务综合信息门户 CLI

A CLI client for PKU's financial information portal at cwfw.pku.edu.cn (WF_CWBS subsystem).

Architecture

  • Crate location: crates/cwfw/
  • Auth flow: IAAA SSO (app_id="IIPF") → cwfw.pku.edu.cn/WFManager/home2.jspfindpages_postData.actionhome3.jsp → WF_CWBS 子系统 entry(3 步 bootstrap 缺一不可)
  • API: HTML 抓取 + 加密的 form 字段

Key Source Files

  • src/main.rs — tokio::main 调用 pku_cwfw::run()
  • src/lib.rs — Clap CLI 定义
  • src/client.rs — reqwest client
  • src/login.rs — IAAA → multi-step bootstrap → WF_CWBS session
  • src/context.rs — 会话上下文(子系统 URL 等)
  • src/encrypt.rs — 表单字段加密(用于某些查询请求)
  • src/api.rs — 各查询 API
  • src/commands.rs — 子命令实现
  • src/display.rs — 终端渲染

CLI Commands

Command用途
login -pIAAA 登录 + cwfw 多步 bootstrap
status / logout会话管理
个人酬金 / 工资 / 报销查询详见 --help

Auto-Login for AI Agents

info-auth check
cwfw login -p
cwfw <query-cmd>

Development Notes

  • 多步 bootstrap 必须严格顺序执行,否则后续子系统访问会返回登录页
  • Session 持久化 ~/.config/info/cwfw/
  • 所有文案中文,anyhow::Result + .context("中文描述")
  • 某些表单字段需要加密(见 encrypt.rs),算法直接抄自网页 JS

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Treehole

PKU Treehole (北大树洞) anonymous forum CLI tool built in Rust. Use this skill when working on the treehole crate, debugging treehole commands, adding features t...

Registry SourceRecently Updated
1460Profile unavailable
Coding

PKU BDKJ

北京大学空间 (bdkj.pku.edu.cn) 学术研讨教室预约 CLI 工具。当用户提及 bdkj、北大空间、学术研讨教室、教室预约、研讨间、借教室 或想要查询/预约/取消 二教/四教/地学 教学楼里的空闲学术研讨教室时使用此 skill。支持保存固定参与人分组(如课题组),重复发起预约时只需 `--grou...

Registry SourceRecently Updated
600Profile unavailable
Coding

PKU Claspider

北京大学课程信息爬取 CLI (dean.pku.edu.cn 教务部 + elective.pku.edu.cn 选课网 + onlineroomse.pku.edu.cn 智云课堂)。当用户提及 claspider、课程爬虫、课程信息爬取、课程目录、全校开课、按院系/教师/关键词查课、合并课程数据 时使用此...

Registry SourceRecently Updated
580Profile unavailable
Coding

Course

PKU Teaching Platform (北大教学网/Blackboard Learn) CLI tool built in Rust. Use this skill when working on the course crate, debugging course commands, adding fea...

Registry SourceRecently Updated
1570Profile unavailable