← 返回 Skills 市场
manucode2000-max

China Holiday Calculator

作者 manucode2000-max · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
110
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install china-holiday-calc
功能描述
Chinese mainland calendar service - identifies法定节假日, weekends, makeup workdays, and supports city-specific vacations
使用说明 (SKILL.md)

China Holiday

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

Features

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

Usage

# Check if today is a holiday
python holiday.py today

# Check specific date
python holiday.py 2026-01-01

# Query Beijing summer vacation
python holiday.py vacation 北京

# List all holidays for a year
python holiday.py list 2026

API

from holiday import is_holiday, is_workday, get_holiday_name

# Check if holiday
is_holiday("2026-01-01")  # True (New Year's Day)

# Check if workday
is_workday("2026-01-28")  # True (Spring Festival makeup workday)

# Get holiday name
get_holiday_name("2026-01-01")  # "元旦"

Supported Cities

  • Beijing, Shanghai, Guangzhou, Shenzhen
  • More cities to be added...

Implementation

Uses official Chinese government holiday schedules with local variations for schools and universities.

License

MIT License

安全使用建议
This skill appears to do what it says (holiday/workday detection) and has no network calls or credential requests, but there are a couple of practical issues to check before installing: 1) The code expects regions.json to live in a 'config' subfolder, but the repository contains regions.json at the top level — either move regions.json into a config directory or patch load_regions() so vacation lookups work. 2) _meta.json uses a different owner/slug than the registry metadata; verify the source and provenance if you care about origin. 3) The dependency 'chinese-calendar' is a third-party package — inspect that package (or its source) if you want to ensure it has no unexpected behavior. 4) Test the skill in a sandboxed environment first (ensure pip installs the required package into an isolated environment) and confirm the vacation command returns expected results after fixing the regions path.
能力评估
Purpose & Capability
Name/description match the implementation: the Python code and SKILL.md provide holiday/workday/vacation queries. However, the code expects a regions.json under a 'config' subdirectory (CONFIG_DIR = <skill>/config/regions.json) while the repository contains regions.json at the top level. That means region-specific vacation lookups (vacation command) will not find data as-is. Also _meta.json slug/owner differ from the registry metadata, suggesting repackaging or copy-paste errors.
Instruction Scope
SKILL.md instructs running the included Python script and importing the provided functions; runtime instructions are narrow and consistent with the code. The skill does not ask to read arbitrary system files, access environment variables, or transmit data to external endpoints in its instructions.
Install Mechanism
No install script or remote downloads are used. There's a requirements.txt declaring the third‑party dependency 'chinese-calendar' which is expected for this functionality. No suspicious URLs or archive extraction are present.
Credentials
The skill requires no environment variables, credentials, or special config paths. It only reads local files (regions.json) and uses a pure-Python library; there are no disproportionate secret requests.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify other skills or system settings. Autonomous invocation is allowed by default but not combined with other red flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install china-holiday-calc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /china-holiday-calc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug china-holiday-calc
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

China Holiday Calculator 是什么?

Chinese mainland calendar service - identifies法定节假日, weekends, makeup workdays, and supports city-specific vacations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。

如何安装 China Holiday Calculator?

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

China Holiday Calculator 是免费的吗?

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

China Holiday Calculator 支持哪些平台?

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

谁开发了 China Holiday Calculator?

由 manucode2000-max(@manucode2000-max)开发并维护,当前版本 v1.0.0。

💬 留言讨论