KawaroX/bnul / skills/bnu-library
bnu-library
Verified使用 bnul CLI 查询与预约北京师范大学图书馆自习座位,按自习计划推荐覆盖完整时段的座位,选择日期和起止时间,查看当前预约、签到提示与变更记录,取消未签到预约或结束使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.1 KB |
| references/auth.md | markdown | 3.0 KB |
| references/installation.md | markdown | 1.4 KB |
| references/watch.md | markdown | 2.1 KB |
| references/webvpn.md | markdown | 2.5 KB |
references/watch.md
View on GitHub# 预约临期监控
用户授权监控和自动处理后,运行 `bnul watch --execute --interval 120 --notify slack`。默认的 `bnul watch` 只观察;`--once` 只检查一次;`--status` 只读取本地的健康状态、下次检查时间和动作记录。
- 运行时间为北京时间 08:00–23:00。夜间不查询、不触发登录恢复,也不生成或投递告警;夜间运行 `--once` 会返回休眠。
- 检查间隔:
- 无预约 30 分钟;
- CHECK_IN 20 分钟;
- AWAY 剩余超过 10 分钟时 7 分钟,不超过 10 分钟时 2 分钟;
- RESERVE 和出现异常时 2 分钟。
- 主馆的 RESERVE 或 AWAY 预约,距截止严格不足 300 秒时,释放并尝试原位重约。CHECK_IN 不处理,结束时间也不延长。
- 暂离规则以官网实时须知为准:
- `awayTime` 是当天零点起的秒数;
- `awayTimeM` 是分钟数;
- `awayRange` 是 HH:MM 格式的显示值。
存在的字段需要相互一致。预约自然结束早于暂离截止时,只观察不处理。
- 无法确认情况时,分类告警但不操作,`lastObservation` 保留最少的诊断字段。期限解析告警不能解释为登录失败。
- 登录恢复失败时,保留退避状态并继续检查。异常、恢复和动作结果会通知到明确配置的 Slack 会话,发送失败的通知会排队,跨重启重试。
- 独立 timer 负责检查监控心跳。不能用"进程处于 active"代替成功查询和实际的通知回执。
- 真实的取消和重约需要用户授权,并记录前后预约 ID,不能通过结束 CHECK_IN 来验收。当日重约达到上限,或取消配额为 0 或未知时,只释放并通知,不重试结果未知的写操作。
普通业务命令和监控使用同一份正式安装。Linux 长期运行时,使用随安装包发布的 `deploy/linux/WATCH.md` 和 systemd 模板;启用服务就是实际的自动操作,沿用用户已有的授权。可以用 `BNUL_CREDENTIAL_ENV` 指向服务器上已有的私有 dotenv。不要因为 SSH 进程没有加载变量就断言服务器没有凭据;只检查配置和必要的键是否可用,不输出秘密。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |