Query gov.cn Chinese holiday notices to determine workdays, holidays, and make-up workdays. Use when the user needs to check whether a specific date is a wor...
Coding
Aries Holiday Weekday
Try itQuery gov.cn Chinese holiday notices to determine workdays, holidays, and make-up workdays. Use when the user needs to check whether a specific date is a wor...
What it does
Query gov.cn Chinese holiday notices to determine workdays, holidays, and make-up workdays. Use when the user needs to check whether a specific date is a wor...
The skill document
Aries Holiday Weekday
Overview
Use this skill to answer date questions that depend on China's holiday schedule rather than a simple Monday-to-Friday rule. It handles statutory holidays, weekend make-up workdays, and ordinary weekdays using official gov.cn notices.
Input Modes
Support two input shapes:
YYYY-MMYYYY-MM-DD
If the input is a month, return every date in that month with:
- Date
- Weekday
- Workday status
- Holiday or make-up shift name if present
If the input is a single date, return the same fields for that date only.
Workflow
Resolve the target year's holiday data first:
-
Look for
cache/YYYY.jsoninside this skill. -
If the file exists, use it to answer directly.
-
If the file does not exist, say
正在获取{年份}年最新节假日安排once, then callgov_search()fromscripts/query_holiday.pyto search gov.cn for节假日安排. -
Use this prompt to pick the best search result:
从下列查询结果的标题中选择最适配 {年份}节假日安排的一个,并给我对应查询结果的链接:{查询结果} -
Fetch the selected notice page body with
fetch_notice_body(url). -
Use this prompt to turn the notice body into JSON:
这是国务院关于节假日安排的通知,请从这个通知里解析出节假日放假的日期和因为假期调休为工作日的日期:{通知内容},以json的形式体现 -
Validate the JSON before caching it. At minimum, it should contain:
yearnotice_titlenotice_urlspecial_days
-
Save the validated result as
cache/{年份}.json. -
If you need a one-shot helper, use
refresh_year(year)fromscripts/query_holiday.py, or the CLIrefreshcommand.
Interpretation Rules
- Do not infer workday status from weekdays alone.
- Treat weekend make-up shifts as workdays.
- Treat holiday rest days as non-workdays even if they fall on Monday to Friday.
- If the cache has a matching date, use it first.
- If the cache does not list a date, fall back to the normal weekday rule: Monday to Friday are workdays, Saturday and Sunday are not.
- Do not mention cache hits, cache refresh, or other internal retrieval steps in the user-facing answer; only present the final skill result.
- If you need a progress line, use only
正在获取{年份}年最新节假日安排and nothing about cache.
Output Format
For a month query, output a compact table:
dateweekdayworkdaykindholiday
For a single-date query, output a short structured summary with the same fields.
Script
Use scripts/query_holiday.py as the primary entry point for deterministic search, notice-body extraction, cache loading, cache refresh, and date classification.
Related skills
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...
Look up official Mainland China public holiday schedules and make-up workdays from bundled annual reference data. Use when the user asks about 法定节假日, 放假安排, 调...
Discover and parse China's official holiday notices from gov.cn, normalize holiday and adjusted-workday rows, and apply low-frequency probing rules for futur...
Research public holidays, bank holidays, observed days, school breaks, and make-up workdays for any country or region. Use when the user asks whether a speci...
Generate a personalized moving timeline & checklist based on your home info, timeline, and moving distance.