China Holiday Calendar Sync
/install china-holiday-calendar-sync
China Holiday Calendar Sync
Use only official gov.cn holiday notices as the source of truth for China holiday and adjusted-workday schedules.
Keep the workflow conservative:
- Prefer configured
notice_urlsfirst. - Use China government policy search for discovery before any public-search fallback.
- Parse official notice正文 into structured holiday/workday rows.
- Treat future-year discovery as low-frequency work, not a daily poll.
Workflow
-
Load configured notice URLs.
- Reuse known official notice URLs from local config first.
- For already-synced years, prefer local calendar storage instead of refetching the notice page.
-
Discover missing future-year notices carefully.
- Build exact queries around
国务院办公厅关于\x3Cyear>年部分节假日安排的通知. - Prefer China government policy search.
- Accept only
https://www.gov.cn/zhengce/content/...candidate pages. - Re-fetch the candidate and validate title/body before trusting it.
- Build exact queries around
-
Throttle discovery.
- For future years, probe at most once per month.
- Default probe window starts on the 15th of the month.
- Cache both positive and negative discovery results for that month.
-
Parse official notice content.
- Extract holiday ranges such as
1月1日至3日. - Extract adjusted workdays such as
1月4日(周日)上班. - Emit normalized rows with
date,is_holiday,is_workday,holiday_name, andsource_url.
- Extract holiday ranges such as
-
Persist two layers separately.
- Stable source mapping in
notice_urls - Probe history in
discovery_cache
- Stable source mapping in
Rules
- Do not use third-party holiday calendars as authoritative data.
- Do not fabricate future-year schedules before an official notice exists.
- If a future year has not been published yet, return no URL and cache that negative check for the month.
- If a year is already present in local holiday storage, do not refetch the official notice unless the caller explicitly wants a refresh.
References
- For source priority, parsing regex patterns, and caching rules, read references/official-notice-method.md.
Output Shape
Normalize notice parsing results into a shape close to:
{
"date": "2026-10-08",
"is_holiday": false,
"is_workday": true,
"holiday_name": "国庆节调休上班",
"source_url": "https://www.gov.cn/zhengce/content/202511/content_7047090.htm"
}
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install china-holiday-calendar-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/china-holiday-calendar-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
China Holiday Calendar Sync 是什么?
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。
如何安装 China Holiday Calendar Sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install china-holiday-calendar-sync」即可一键安装,无需额外配置。
China Holiday Calendar Sync 是免费的吗?
是的,China Holiday Calendar Sync 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
China Holiday Calendar Sync 支持哪些平台?
China Holiday Calendar Sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 China Holiday Calendar Sync?
由 Joeyyyy0430(@joeyyyy0430)开发并维护,当前版本 v1.0.1。