返回顶部
c

check-workday-cn工作日查询

Determine whether today (or a given date) is a working day in mainland China by querying holiday-cn yearly JSON from jsDelivr and applying holiday/makeup-workday rules. Use when users ask questions like "今天是不是工作日", "这天要不要上班", "是不是节假日/调休补班", or when a workflow needs a reliable workday boolean.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
247
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

check-workday-cn

技能名称: check-workday-cn
详细描述:

检查工作日(中国)

根据以下官方节假日数据源检查今天是否为工作日:
https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{year}.json

工作流程

  1. 1. 运行 python3 scripts/checktodayworkday.py。
  2. 从输出中读取 is_workday。
  3. 解释原因:
- 如果日期存在于 days[] 中,直接使用 isOffDay(false => 工作日,true => 休息日)。 - 如果日期不存在于 days[] 中,则回退到周规则(周一至周五为工作日,周六至周日为休息日)。

命令

使用亚洲/上海时区检查今天:

bash
python3 scripts/checktodayworkday.py

检查指定日期:

bash
python3 scripts/checktodayworkday.py --date 2026-02-15

机器可读输出:

bash
python3 scripts/checktodayworkday.py --json

输出约定

始终返回:

  • - 查询日期(YYYY-MM-DD)
  • is_workday 布尔值
  • 原因(holiday override 或 weekday fallback)
  • 数据源 URL

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 check-workday-cn-1776174970 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 check-workday-cn-1776174970 技能

通过命令行安装

skillhub install check-workday-cn-1776174970

下载

⬇ 下载 check-workday-cn v1.0.0(免费)

文件大小: 3.54 KB | 发布时间: 2026-4-15 10:23

v1.0.0 最新 2026-4-15 10:23
Initial release: Determine if today or a given date is a working day in mainland China, using official holiday and makeup workday data.

- Queries yearly holiday-cn JSON from jsDelivr for up-to-date holiday/workday rules.
- Supports plain, date-specific, and JSON outputs for machine-readable workflows.
- Provides clear reasoning: uses official overrides when available; otherwise, falls back to weekday logic.
- Designed for both casual questions and integration into automated workflows.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部