← Back to Skills Marketplace
joeyyyy0430

China Holiday Calendar Sync

by Joeyyyy0430 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
150
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install china-holiday-calendar-sync
Description
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...
README (SKILL.md)

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_urls first.
  • 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

  1. 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.
  2. 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.
  3. 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.
  4. 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, and source_url.
  5. Persist two layers separately.

    • Stable source mapping in notice_urls
    • Probe history in discovery_cache

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

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"
}
Usage Guidance
This skill appears to do exactly what it says: fetch and parse official gov.cn holiday notices and cache results. Before installing, consider that it will make outbound HTTP requests to gov.cn (and may use a public-search fallback if official search is unavailable) and will read/write local storage for notice_urls and discovery_cache. It requests no secrets or installs no software. If you want to limit network access or control where caches are stored, review or sandbox the agent's network and file permissions or ask the skill author how/where local storage is persisted.
Capability Analysis
Type: OpenClaw Skill Name: china-holiday-calendar-sync Version: 1.0.1 The skill is designed to discover and parse official Chinese holiday notices from gov.cn. It uses specific search queries, regex for parsing Chinese text, and implements throttling/caching to minimize network requests. No malicious behaviors, data exfiltration risks, or prompt injection attacks were identified in SKILL.md or references/official-notice-method.md.
Capability Assessment
Purpose & Capability
The name/description match the instructions: discovery, parsing, normalization, and caching of official gov.cn holiday notices. It does not request unrelated credentials or binaries. It does reference local config and local calendar storage (notice_urls and discovery_cache), which is coherent for a sync task.
Instruction Scope
SKILL.md narrowly instructs the agent to query the official gov.cn search endpoint, accept only gov.cn content URLs, re-fetch and validate pages, parse structured text into rows, and cache results. It does not instruct reading unrelated system files or exfiltrating data. It allows a public-search fallback only when official search is unavailable and enforces validating gov.cn candidate pages.
Install Mechanism
No install spec or code is included (instruction-only). Nothing is downloaded or installed, so there is minimal install-time risk.
Credentials
The skill declares no environment variables, credentials, or required config paths. Its runtime text expects local notice_urls/discovery_cache storage, which is proportionate to its function. It does not request secrets or unrelated service credentials.
Persistence & Privilege
always is false; the skill does not request elevated or permanent platform privileges and does not instruct modifying other skills or global agent settings. It will need to read/write its own local caches, which is expected behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install china-holiday-calendar-sync
  3. After installation, invoke the skill by name or use /china-holiday-calendar-sync
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- No code or documentation changes in this release. - Version bump only; behavior is identical to previous release.
v1.0.0
china-holiday-calendar-sync 1.0.0 – Initial Release - Fetches and parses official China holiday notices from gov.cn only. - Normalizes holiday and adjusted workday dates into structured rows with holiday status and source URL. - Configurable discovery with throttled, low-frequency checks for new year notices; avoids third-party data. - Caches both successful and unsuccessful discovery attempts to reduce redundant lookups. - Designed for syncing holiday data, building business calendars, and powering holiday-aware logic for China.
Metadata
Slug china-holiday-calendar-sync
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 150 downloads so far.

How do I install China Holiday Calendar Sync?

Run "/install china-holiday-calendar-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is China Holiday Calendar Sync free?

Yes, China Holiday Calendar Sync is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does China Holiday Calendar Sync support?

China Holiday Calendar Sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created China Holiday Calendar Sync?

It is built and maintained by Joeyyyy0430 (@joeyyyy0430); the current version is v1.0.1.

💬 Comments