← 返回 Skills 市场
deusyu

cn-holiday

作者 Rainman · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
261
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cn-holiday
功能描述
中国节假日/调休查询 — 查某天是工作日还是休息日、是否调休补班、全年假期安排。 触发词: 节假日, 调休, 补班, 放假, 上班, holiday, workday, 今天上班吗, 明天放假吗, 春节放几天, 国庆放假, 下个工作日, 或任何 "[日期] 是否放假/上班" 格式的输入。
使用说明 (SKILL.md)

cn-holiday — Chinese Holiday & Work Schedule Skill

Query Chinese public holidays, 调休 (make-up workdays), and work schedules via the timor.tech API.

Quick Start

  1. No API key needed.
  2. Run bun scripts/holiday.ts --help in this skill directory.
  3. Pick the matching command from references/command-map.md.

Workflow

  1. Parse user intent — identify the date(s) and what they want to know.
  2. Select the right command: info, year, batch, or next.
  3. Run the script and return the result.
  4. Interpret the result for the user in natural language.

Response Interpretation

type.type field meanings

Value Meaning
0 工作日 (workday)
1 周末 (weekend)
2 节日 (holiday)
3 调休补班 (make-up workday)

wage field meanings (加班工资倍率)

Value Meaning
1 正常工资
2 双倍工资
3 三倍工资

holiday.holiday field

  • true = 放假 (day off)
  • false = 补班 (make-up workday)

Notes

  • This skill is script-first and does not run an MCP server.
  • Data source: timor.tech (based on State Council holiday announcements).
  • No API key required.
  • Covers current year and adjacent years' holiday schedules.
安全使用建议
This skill appears to do what it says (query timor.tech for Chinese holiday info) and does not request secrets, but note the following before installing: (1) The SKILL.md tells you to run 'bun scripts/holiday.ts' but the metadata does not list bun or any runtime as a required binary — ensure you trust the included scripts and have a suitable runtime (bun/node) if you intend to execute them. (2) The skill will make outbound HTTPS requests to https://timor.tech and will send the dates/parameters you ask about — consider privacy implications of those queries. (3) Because the package includes runnable code, inspect the scripts locally before use (they appear benign and only call the holiday API, but you should verify there are no modifications you don't expect). (4) If you need stricter guarantees, ask the maintainer for a declared runtime requirement and an explicit install spec or run the scripts in an isolated environment.
功能分析
Type: OpenClaw Skill Name: cn-holiday Version: 1.0.0 The skill is a legitimate utility for querying Chinese public holidays and work schedules via the timor.tech API. The code follows standard CLI patterns, includes robust input validation for dates and years (scripts/lib/validators.ts), and contains no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name/description match the code: the scripts call the timor.tech holiday API and implement the documented commands. However SKILL.md tells users to run 'bun scripts/holiday.ts' while the skill metadata lists no required binary/runtime; that is an inconsistency (the skill actually needs a JS runtime like bun). Otherwise there are no unexpected capabilities (no cloud credentials, no system-wide access).
Instruction Scope
Runtime instructions and the included code stick to the stated purpose: parsing dates/commands, validating inputs, and issuing HTTPS GET requests to https://timor.tech/api/holiday. The instructions do not request unrelated files, additional environment variables, or exfiltrate arbitrary data beyond the query parameters (dates/type).
Install Mechanism
There is no install spec (no packages downloaded or installed), which reduces risk, but the bundle includes TypeScript scripts (scripts/*.ts) and expects them to be executed. The absence of a declared required binary/runtime (bun) and an install step is an implementation gap the user should notice.
Credentials
The skill does not request environment variables, credentials, or config paths. The code sends no secret or token; it only issues unauthenticated GET requests to timor.tech. The requested environment access is proportionate to the task.
Persistence & Privilege
always: false and the skill does not attempt to modify other skills or system-wide agent configuration. It has no installation hook or autorun privilege in the metadata.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-holiday
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-holiday 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug cn-holiday
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cn-holiday 是什么?

中国节假日/调休查询 — 查某天是工作日还是休息日、是否调休补班、全年假期安排。 触发词: 节假日, 调休, 补班, 放假, 上班, holiday, workday, 今天上班吗, 明天放假吗, 春节放几天, 国庆放假, 下个工作日, 或任何 "[日期] 是否放假/上班" 格式的输入。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。

如何安装 cn-holiday?

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

cn-holiday 是免费的吗?

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

cn-holiday 支持哪些平台?

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

谁开发了 cn-holiday?

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

💬 留言讨论