运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install check-workday-cn
镜像加速npx clawhub@latest install check-workday-cn --registry https://cn.longxiaskill.com 镜像可用
技能文档
检查 Workday CN 检查今天是否为工作日,使用来自 https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{year}.json 的官方假期覆盖数据。 工作流程 运行 python3 scripts/check_today_workday.py 并读取输出中的 is_workday。 解释原因: 如果日期存在于 days[] 中,则直接使用 isOffDay(false 表示工作日,true 表示休息日)。 如果日期不存在于 days[] 中,则回退到周几规则(周一至周五为工作日,周六至周日为休息日)。 命令 使用今天在 Asia/Shanghai:python3 scripts/check_today_workday.py 检查特定日期:python3 scripts/check_today_workday.py --date 2026-02-15 机器可读输出:python3 scripts/check_today_workday.py --json 输出合同 始终返回: 查询日期(YYYY-MM-DD) is_workday 布尔值 原因(假期覆盖或周几回退) 数据源 URL API GitHub CLI