Xpersona
C

Chinese Holiday Assistant

CLAWHUB · Unverified

Queries Chinese holidays, work-shift arrangements, and determines if a date is a workday based on synced iCloud data and weekly rules. Skill: Chinese Holiday Assistant Owner: claudecaicai Summary: Queries Chinese holidays, work-shift arrangements, and determines if a date is a workday based on synced iCloud data and weekly rules. Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-30T10:18:17.877Z | auto - Added support for reading and merging multiple .ics holiday calendar files from the data/ directory. - Implemented cross-day event handling: cor

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17dtxsdd9mqqnt4fwmqaac7yd83gj2d:cn-holiday-checker
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-claudecaicai-cn-holiday-checker/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,727 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

# 中国节假日助手 (cn-holiday-checker) / Chinese Holiday Assistant (cn-holiday-checker)

该技能用于查询中国节假日、调休安排及工作日判定。
This skill is used for querying Chinese holidays, work-shift arrangements, and workday determination.

## 功能说明 / Functionality
- **节假日识别 / Holiday Recognition**:支持多文件数据源,自动合并解析 `data/` 目录下的所有 `.ics` 文件。 / Supports multi-file data sources; automatically merges and parses all `.ics` files in the `data/` directory.
- **跨日事件处理 / Cross-day Event Processing**:支持处理具有 `DTSTART` 和 `DTEND` 的持续性事件,不再仅限于单日标记。 / Supports processing continuous events with `DTSTART` and `DTEND`, no longer limited to single-day markers.
- **自动判定 / Automatic Determination**:优先匹配节假日/调休事件;若无匹配,则根据自然周(周一至周五工作日,周六至周日休息日)进行判定。 / Prioritizes matching holiday/work-shift events; if no match, determines based on the natural week (Mon-Fri as workday, Sat-Sun as rest day).
- **自动更新 / Automatic Update**:通过 `cron` 定时任务每月自动拉取最新日历数据。 / Automatically pulls the latest calendar data monthly via `cron`.

## 环境要求 / Requirements
- Python 3.x
- 已安装依赖 / Installed dependencies: `requests`, `icalendar`

## 使用方法 / Usage

### 1. 查询指定日期 / Query a specific date
支持通过 `--date` 参数传入日期(格式为 YYYY-MM-DD),若不传入则默认使用当天日期:
Supports querying a specific date via the `--date` parameter (format: YYYY-MM-DD); defaults to today if not provided:
```bash
python3 cn-holiday-checker/scripts/holiday_checker.py --date "2026-03-19"
```

### 2. 手动更新数据 / Manual Data Update
如果需要立即更新节假日数据,请运行:
If you need to update holiday data immediately, please run:
```bash
python3 cn-holiday-checker/scripts/download_ics.py
```

## 配置说明 (config.json) / Configuration (config.json)
- 存放技能相关的环境变量。 / Stores environment variables related to the skill.
- 支持 `PRIMARY_URL` (主数据源) 与 `BACKUP_URL` (备用数据源)。 / Supports `PRIMARY_URL` and `BACKUP_URL` (backup data source).
- 脚本会自动向上回溯识别 `config.json` 文件,确保迁移目录后配置依然有效。 / The script automatically traces upward to identify the `config.json` file, ensuring configuration remains valid after migrating the directory.

_meta.json

{
  "ownerId": "kn783ee3sp4ws8xwsvkchpvxnd82ysyh",
  "slug": "cn-holiday-checker",
  "version": "1.0.2",
  "publishedAt": 1774865897877
}

skill-card.md

## Description:

Queries Chinese holidays, work-shift arrangements, and determines whether a date is a workday using local calendar data and weekly fallback rules.

This skill is ready for commercial/non-commercial use.

## Publisher:

[claudecaicai](https://clawhub.ai/user/claudecaicai)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to answer China-focused holiday, adjusted workday, and rest-day questions for a given date. It can also refresh the local ICS calendar data from configured sources when updates are enabled.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Automatic updates contact configured external calendar URLs and replace the local ICS data file.

Mitigation: Review PRIMARY_URL and BACKUP_URL before enabling updates; add size and validation limits before relying on untrusted sources.

Risk: Holiday and workday answers depend on the accuracy and freshness of the local ICS calendar data.

Mitigation: Keep calendar data current and verify high-impact scheduling decisions against official sources.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/claudecaicai/skills/cn-holiday-checker)
- [Publisher profile](https://clawhub.ai/user/claudecaicai)
- [Primary Chinese holiday calendar source](https://calendars.icloud.com/holidays/cn_zh.ics)
- [Backup Chinese holiday calendar source](https://raw.githubusercontent.com/lanceliao/china-holidays/master/holidays.ics)

## Skill Output:

**Output Type(s):** [text, shell commands, configuration, guidance]

**Output Format:** [Plain text and Markdown with inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Date responses include the queried date, workday/rest-day status, and matching calendar detail when available.]

## Skill Version(s):

1.0.2 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

config.json

{
  "PRIMARY_URL": "https://calendars.icloud.com/holidays/cn_zh.ics",
  "BACKUP_URL": "https://raw.githubusercontent.com/lanceliao/china-holidays/master/holidays.ics"
}

Sponsored

Ads related to Chinese Holiday Assistant and adjacent AI workflows.