用途:pp-lawhub 通过 lawhub-pp-cli 二进制,对 LawHub 上的 LSAT 练习测试做本地分析,包括同步历史与成绩报告元数据、汇总练习进度、按题型/分节排名薄弱项、列出错题、添加用户自写笔记,以及打开官方回顾链接。
主要能力:认证状态检查(auth status --live)、同步浏览器与历史记录(sync browser、sync history)、同步成绩报告元数据(sync report-metadata)、进度汇总(summary)、薄弱项报告(weakness report)、错题列表与查看(questions list --incorrect、questions show)、添加笔记(questions note)、打开官方回顾(review open)。支持 --agent 与 --select 等低 token 输出方式。
使用方式:先安装并验证 CLI,任一命令执行前应确认其存在。安装:npx -y @mvanhorn/printing-press-library install lawhub --cli-only;不可用时回退 go install github.com/mvanhorn/printing-press-library/library/education/lawhub/cmd/lawhub-pp-cli@latest(需 Go 1.26.6+)。验证:lawhub-pp-cli --version、lawhub-pp-cli version --agent、lawhub-pp-cli doctor --agent。认证需从启用 CDP 的浏览器导入会话,例如 google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/lawhub-debug-profile https://app.lawhub.org/library/fulltests,随后执行 lawhub-pp-cli auth login --cdp http://127.0.0.1:9222,并用 auth status --live --agent 验证(live.ok 为 true)。回退方式为 auth import-file <storage-state.json>;用户 ID 发现失败时可设置环境变量 LAWHUB_USER_ID。典型流程:doctor → auth status --live → sync browser → sync history → sync report-metadata → summary → weakness report。
适用场景:需要离线跟踪 LSAT 练习进度、定位薄弱题型与分节、整理错题并做复习笔记的用户。
限制:禁止提取或存储 LSAT 题干、段落、选项文本、官方解析或批量官方内容,也不要让用户在聊天中粘贴 LSAC 凭据。公开同步接口仅限 sync browser、sync history、sync report-metadata;没有批量同步、HAR 抓取、Obsidian 导出或 attempts 导入命令。必须确保二进制所在目录位于 $PATH,--version 报 command not found 时不得继续执行技能命令。构建校验命令:make build VERSION=0.1.0-dev、make test、make vet、make smoke VERSION=0.1.0-dev。