🧪 Skills
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-wor...
v1.0.0
Description
name: check-workday-cn description: 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.
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
- Run
python3 scripts/check_today_workday.py. - Read
is_workdayfrom output. - Explain reason:
- If date exists in
days[], useisOffDaydirectly (false=> workday,true=> off day). - If date does not exist in
days[], fall back to weekday rule (Mon-Fri workday, Sat-Sun off day).
- If date exists in
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_workdayboolean- Reason (
holiday overrideorweekday fallback) - Data source URL
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!