China Official Holiday Sync
Paste the following prompt into your AI chat to install this skill:
Please install @user_bbe5bc09/china-official-holiday-sync by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem Background
China's official holiday and adjusted-workday schedules are confirmed only when the government publishes a notice for that year. Third-party calendars often have inconsistent sources, uneven fields, or premature guesses for future years. Engineers who need scheduling, billing, reporting, or reminders usually need more than a static calendar: they need a conservative pipeline that treats gov.cn notices as the authoritative source and returns unknown when no notice exists.
How It Works and Boundaries
The skill follows a conservative sync workflow:
- Prefer configured sources: read local notice_urls first; if the requested year already has a confirmed URL and refresh is not explicitly requested, use local holiday storage.
- Controlled discovery: allow or skip probing based on the distance between the requested year and the current year; far-future years are not probed.
- Source validation: accept only https://www.gov.cn/zhengce/content/... candidates, then confirm them by page content and title before writing to notice_urls.
- Structured parsing: extract holiday ranges and adjusted workdays from the official notice, producing fields such as date, is_holiday, is_workday, holiday_name, and source_url.
- Two-layer persistence: keep stable source mappings in notice_urls and probe history in discovery_cache, including negative checks for the current month.
It fits data pipelines that need official holiday inputs, but it is not intended to generate future schedules before publication or replace manual review of special-year rules.
Use Cases
- Scheduling engineers parse official adjusted workdays into `is_workday` rows before building next quarter's duty roster.
- Analysts validate whether a target year has an official holiday source in `notice_urls` before annual reporting.
- Calendar product engineers accept only verified `gov.cn/zhengce/content` URLs while integrating holiday endpoints.
- Automation engineers return no URL for unpublished years and log a current-month negative probe.
Best For
- Backend engineers maintaining scheduling systems: want to persist official adjusted-workday rules as `date`, `is_holiday`, and `is_workday`.
- Data engineers building business analytics: need trusted holiday fields by year from `notice_urls` for reports.
- Product engineers building calendar reminder services: require no guessing for unpublished years and only verified `gov.cn` sources.
- Automation pipeline engineers: need clear refresh boundaries between `notice_urls` and `discovery_cache`.
Related Skills
Analyzes smart customer-service chat logs with semantic clustering to generate word clouds, Top K frequent questions, and personalized guess-you-ask recommendations.
Maps natural-language Reddit requests to KeyAPI REST workflows, validates endpoint contracts against official docs, and executes search, detail, comment, ranking, and report tasks.
Schedules fetching from NEP and custom academic sites, filters and ranks papers by keywords, generates Chinese summaries, and pushes Feishu cards with local download archiving.
Browser-based CSV/TXT visualizer with multi-Y-axis curves, smoothing, and PNG/JSON/CSV export.