← 返回 Skills 市场
114
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install china-holiday-decem
功能描述
中国法定节假日查询,基于 timor.tech 免费 API。支持查询指定日期节假日信息、批量查询、下一节假日、下一工作日、全年节假日列表,以及语音播报。触发场景:问"今天上班吗"、"明天放假吗"、"2026年有哪些节假日"、"清明节放几天"、"调休怎么调"等节假日相关问题。依赖:Python 3,仅使用标准库(...
使用说明 (SKILL.md)
中国节假日查询
调用 timor.tech 免费节假日 API,数据覆盖 2013 年至今,支持节假日、调休、补班查询。
依赖
- Python 3(仅标准库,无第三方依赖)
- 网络访问权限(调用 timor.tech API)
脚本
python3 skills/china-holiday/scripts/china_holiday.py \x3C命令> [参数]
命令速查
| 命令 | 说明 | 示例 |
|---|---|---|
info [日期] |
查询指定日期节假日 | info 2026-10-01 / info(今天) |
batch \x3C日期...> |
批量查询 | batch 2026-05-01 2026-06-01 |
next [日期] |
下一节假日(含调休) | next 2026-04-01 |
workday [日期] |
下一工作日 | workday |
year [年份/月份] |
全年/全月节假日 | year 2026 / year 2026-02 |
tts |
今日节假日播报 | - |
tts-next |
下一节假日播报 | - |
tts-tomorrow |
明日节假日播报 | - |
响应字段说明
日期类型 (type):
0= 工作日1= 周末2= 节日3= 调休/补班
holiday 字段(非节假日为 null):
holiday: true/false— true=节日,false=调休wage— 薪资倍数(2=双薪,3=三薪)after: true/false— 假后/假前补班target— 调休对应的节日名
注意事项
- API 每日限额 10000 次/IP,免费足够个人使用
- 返回日期格式:
YYYY-MM-DD - 全年查询整年需加斜杠:
year 2026→ 请求/year/2026/
致谢
节假日数据来源于 提莫的神秘小站(timor.tech),由独立开发者利用业余时间维护,每年更新节假日数据,服务稳定且完全免费。深深感谢作者的无私奉献 🌿
安全使用建议
This skill is a small, self-contained Python script that makes HTTPS calls to the public timor.tech API and prints results. Before installing, be aware that: (1) it requires network access and will query timor.tech for each lookup (no credentials are sent); (2) availability or accuracy depends on timor.tech; (3) the TTS commands return text from the API (no audio is synthesized locally); (4) you can safely inspect the included scripts (they are short and use only urllib/json/datetime) before enabling the skill. If you need offline operation or stronger guarantees about data retention, do not enable it or run the script in a restricted environment.
功能分析
Type: OpenClaw Skill
Name: china-holiday-decem
Version: 1.0.1
The skill is a legitimate tool for querying Chinese statutory holidays using the public timor.tech API. The Python script (china_holiday.py) uses only standard libraries and performs no suspicious actions such as data exfiltration, local file access, or arbitrary command execution. All network requests are directed to the stated API endpoint.
能力评估
Purpose & Capability
Name/description (China holiday lookup via timor.tech) match the included script and runtime instructions. The script only uses Python standard library and makes HTTPS requests to timor.tech, which is appropriate for the stated purpose.
Instruction Scope
SKILL.md limits actions to running the included Python script and calling timor.tech. It does not read files, env vars, or external endpoints beyond timor.tech. Minor inconsistency: SKILL.md shows an example path 'skills/china-holiday/scripts/china_holiday.py' while the package contains 'scripts/china_holiday.py' — a path mismatch but not a security issue.
Install Mechanism
No install spec or external downloads; the skill is instruction-only with one small Python script. Nothing is written to disk or fetched at install time beyond the usual agent-managed files.
Credentials
The skill requests no environment variables, credentials, or config paths. Its network access to timor.tech is proportional to its function; no sensitive system secrets are requested.
Persistence & Privilege
always is false and the skill does not request persistent or elevated privileges, nor does it modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install china-holiday-decem - 安装完成后,直接呼叫该 Skill 的名称或使用
/china-holiday-decem触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 明确声明依赖为 Python 3 并且仅使用标准库,无需第三方依赖。
- 新增“依赖”与“致谢”章节,感谢 timor.tech API 提供者。
- 优化描述,强调对网络访问权限的需求。
- 其余功能与用法无变动,仅文档内容补充与说明更完善。
v1.0.0
- Initial release of China Holiday skill (china-holiday-decem v1.0.0).
- Provides quick queries for Chinese statutory holidays, compensatory workdays, and year/period holiday lists via timor.tech free API.
- Supports multiple commands (e.g., today’s holiday, tomorrow's status, next holiday/workday, whole year/month overview).
- Offers both text and voice (TTS) responses for holiday information.
- Easy command-line interface for both single and batch date queries.
- Clear documentation of API fields, usage instructions, and limitations.
元数据
常见问题
China Holiday 是什么?
中国法定节假日查询,基于 timor.tech 免费 API。支持查询指定日期节假日信息、批量查询、下一节假日、下一工作日、全年节假日列表,以及语音播报。触发场景:问"今天上班吗"、"明天放假吗"、"2026年有哪些节假日"、"清明节放几天"、"调休怎么调"等节假日相关问题。依赖:Python 3,仅使用标准库(... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 114 次。
如何安装 China Holiday?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install china-holiday-decem」即可一键安装,无需额外配置。
China Holiday 是免费的吗?
是的,China Holiday 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
China Holiday 支持哪些平台?
China Holiday 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 China Holiday?
由 Decem(@decemjiang)开发并维护,当前版本 v1.0.1。
推荐 Skills