Check Workday CN

v1.0.0

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-wor...

0· 280· 1 versions· 0 current· 0 all-time· Updated 11h ago· MIT-0
bySube@sube-py

Install

openclaw skills install check-workday-cn

Check Workday CN

Check whether today is a workday with official holiday override data from: https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{year}.json

Workflow

  1. Run python3 scripts/check_today_workday.py.
  2. Read is_workday from output.
  3. Explain reason:
    • If date exists in days[], use isOffDay directly (false => workday, true => off day).
    • If date does not exist in days[], fall back to weekday rule (Mon-Fri workday, Sat-Sun off day).

Commands

Use today in Asia/Shanghai:

python3 scripts/check_today_workday.py

Check specific date:

python3 scripts/check_today_workday.py --date 2026-02-15

Machine-readable output:

python3 scripts/check_today_workday.py --json

Output Contract

Always return:

  • Queried date (YYYY-MM-DD)
  • is_workday boolean
  • Reason (holiday override or weekday fallback)
  • Data source URL

Version tags

latestvk97d8m774jc23zgbsv0m0fq6jd82npea