360 Secure SkillHub
360 安全技能中心

cn-holiday

核心功能:依托timor.tech API查询国内节假日、调休补班、工作日/休息日状态,及加班工资倍率。典型场景:解答「今天上班吗」「春节放几天」「指定日期是否放假」等问题。输入支持触发词或指定日期问句,输出经自然语言解读的结果,无需API密钥,覆盖当前及相邻年份假期,采用脚本运行模式。

deusyu
deusyu
热度 51.80
最近更新 2026-05-11 17:30:57
分类:生活依赖:代码执行 / 第三方 API应用场景:日程安排

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cn-holiday
Metadata
name
cn-holiday
version
1.0.0
description
中国节假日/调休查询 — 查某天是工作日还是休息日、是否调休补班、全年假期安排。 触发词: 节假日, 调休, 补班, 放假, 上班, holiday, workday, 今天上班吗, 明天放假吗, 春节放几天, 国庆放假, 下个工作日, 或任何 "[日期] 是否放假/上班" 格式的输入。

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.