← 返回 Skills 市场
violin

China Holiday

作者 joeyang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
461
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install china-holiday
功能描述
中国大陆日历服务 - 识别法定节假日、周末、调休,各地寒暑假、春秋假
使用说明 (SKILL.md)

China Holiday

中国大陆日历服务,判断任意日期的假期状态。

功能

  • 法定节假日:元旦、春节、清明、五一、端午、中秋、国庆
  • 调休:识别补班日
  • 周末:自动识别周六日
  • 寒暑假:支持主要城市
  • 春秋假:部分地区

使用示例

# 判断今天是否上班
python holiday.py today

# 判断指定日期
python holiday.py 2026-01-01

# 查询北京暑假时间
python holiday.py vacation 北京

# 查询某年所有节假日
python holiday.py list 2026

API 调用

from holiday import is_holiday, is_workday, get_holiday_name

# 判断是否为假日
is_holiday("2026-01-01")  # True (元旦)

# 判断是否上班
is_workday("2026-01-28")  # True (春节前调休)

# 获取假日名称
get_holiday_name("2026-01-01")  # "元旦"

支持城市

  • 北京、上海、广州、深圳
  • 更多城市陆续添加...
安全使用建议
This appears to be a straightforward local calendar utility. Before installing or running it: (1) confirm you trust/verify the 'chinese-calendar' pip package source (e.g., PyPI listing, maintainer) to avoid supply-chain risks; (2) install and run in a normal user account or sandbox if you are cautious; (3) review config/regions.json if you rely on region-specific data; (4) if your environment auto-installs requirements, ensure pip actions meet your policy. No credentials or network activity are required by the code, so the main remaining risk is the upstream Python dependency.
功能分析
Type: OpenClaw Skill Name: china-holiday Version: 1.0.0 The skill bundle provides a legitimate utility for checking Chinese statutory holidays, workdays, and school vacations. The implementation in holiday.py uses the standard chinese-calendar library and local configuration files (config/regions.json) without any network access, sensitive data retrieval, or suspicious execution patterns.
能力评估
Purpose & Capability
Name/description match the included Python script and config. The skill only needs python3 and the 'chinese-calendar' package, which is appropriate for computing Chinese holidays and workdays.
Instruction Scope
SKILL.md and the code limit operations to local date computation and reading config/regions.json. There are no instructions to read arbitrary user files, access environment variables, or send data to external endpoints.
Install Mechanism
No install spec is provided (instruction-only in registry), but requirements.txt lists 'chinese-calendar' — the user/environment will need to pip install that package. There are no suspicious downloads or custom installers.
Credentials
The skill declares no required env vars or credentials and the code does not access secrets or external service tokens.
Persistence & Privilege
Skill is not always-on and does not modify other skills or system-wide configuration. It runs only when invoked and does not request elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install china-holiday
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /china-holiday 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
China Holiday 1.0.0 - Initial release of China Holiday skill. - Provides Chinese mainland calendar service: recognizes official holidays, weekends, adjusted workdays, and school vacations in major cities. - Supports command line usage and Python API. - Includes holiday and vacation date queries for specific cities (Beijing, Shanghai, Guangzhou, Shenzhen).
元数据
Slug china-holiday
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

China Holiday 是什么?

中国大陆日历服务 - 识别法定节假日、周末、调休,各地寒暑假、春秋假. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 461 次。

如何安装 China Holiday?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install china-holiday」即可一键安装,无需额外配置。

China Holiday 是免费的吗?

是的,China Holiday 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

China Holiday 支持哪些平台?

China Holiday 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 China Holiday?

由 joeyang(@violin)开发并维护,当前版本 v1.0.0。

💬 留言讨论