Summary
获取中国国家法定节假日安排。当用户询问"节假日安排"、"放假通知"、"某年节假日"、"法定假日"、"调休安排"时使用。支持查询任意年份的元旦、春节、清明节、劳动节、端午节、中秋节、国庆节放假调休安排。未指定年份时默认查询当年。
xzxiaoshan/open-agent-skills · Archived
获取中国国家法定节假日安排。当用户询问"节假日安排"、"放假通知"、"某年节假日"、"法定假日"、"调休安排"时使用。支持查询任意年份的?
npx skills add xzxiaoshan/open-agent-skills --skill china-holidays
获取中国国家法定节假日安排。当用户询问"节假日安排"、"放假通知"、"某年节假日"、"法定假日"、"调休安排"时使用。支持查询任意年份的元旦、春节、清明节、劳动节、端午节、中秋节、国庆节放假调休安排。未指定年份时默认查询当年。
This repository is archived — consider an actively maintained alternative.
审核/审查 Skill 代码质量的专业工具。当用户说"检查 skill"、"审核 skill"、"review {名称} skill"、…
4 installs彙整今日中國宏觀經濟新聞消息,從華爾街日報、36氪等來源抓取並篩選宏觀相關新聞,輸出雜誌風格的新…
417 installsGateway to the Machina Sports premium platform — packaged agent workflows ("templates"), licens…
349 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Helps users discover and install agent skills when they ask questions like "how do I do X", "fi…
3.3M installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsPrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Te…
568.3K installsOther skills from xzxiaoshan/open-agent-skills.
npx skills add xzxiaoshan/open-agent-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
10,643 B
SUMMARY.md
341 B
从中国政府网(www.gov.cn)获取国务院办公厅发布的国家法定节假日安排通知。
首先确认用户要查询的年份。如果用户未指定,默认使用当前年份。
运行脚本获取国务院办公厅发布的节假日安排通知:
python scripts/fetch_holidays.py --year {年份}
此脚本采用缓存优先策略:
assets/{年份}.md 是否存在预期输出: 国务院办公厅关于该年度部分节假日安排的通知全文(纯中文内容)
如需强制从网络获取最新数据(忽略缓存),添加 --force 参数:
python scripts/fetch_holidays.py --year {年份} --force
触发场景: 当用户提到以下类似话术时,使用 --force 参数:
根据获取到的通知内容,按照用户要求整理输出:
标准输出格式:
【{年份}年国家法定节假日安排】
一、元旦:{具体日期}放假调休,共{天数}天。{调休说明}
二、春节:{具体日期}放假调休,共{天数}天。{调休说明}
三、清明节:{具体日期}放假调休,共{天数}天。{调休说明}
四、劳动节:{具体日期}放假调休,共{天数}天。{调休说明}
五、端午节:{具体日期}放假调休,共{天数}天。{调休说明}
六、中秋节:{具体日期}放假调休,共{天数}天。{调休说明}
七、国庆节:{具体日期}放假调休,共{天数}天。{调休说明}
用户说: "帮我查一下 2026 年的节假日安排"
操作:
python scripts/fetch_holidays.py --year 2026结果:
【2026 年国家法定节假日安排】
一、元旦:1 月 1 日(周四)至 3 日(周六)放假调休,共 3 天。1 月 4 日(周日)上班。
二、春节:2 月 15 日(农历腊月二十八、周日)至 23 日(农历正月初七、周一)放假调休,共 9 天。2 月 14 日(周六)、2 月 28 日(周六)上班。
三、清明节:4 月 4 日(周六)至 6 日(周一)放假,共 3 天。
四、劳动节:5 月 1 日(周五)至 5 日(周二)放假调休,共 5 天。5 月 9 日(周六)上班。
五、端午节:6 月 19 日(周五)至 21 日(周日)放假,共 3 天。
六、中秋节:9 月 25 日(周五)至 27 日(周日)放假,共 3 天。
七、国庆节:10 月 1 日(周四)至 7 日(周三)放假调休,共 7 天。9 月 20 日(周日)、10 月 10 日(周六)上班。
说明: 脚本返回的是国务院办公厅通知原文。Agent 需要从中提取关键信息并整理输出:
用户说: "今年放假怎么安排的?"
操作:
python scripts/fetch_holidays.py --year 2026结果: 输出 2026 年全年节假日安排(格式同示例 1)
用户说: "重新从网络获取 2026 年的节假日数据"
操作:
python scripts/fetch_holidays.py --year 2026 --force预期输出:
$ python scripts/fetch_holidays.py --year 2026 --force
正在从网络获取 2026 年节假日数据...
找到通知:https://www.gov.cn/gongbao/2025/issue_12406/202511/content_7048922.html
正在获取通知内容...
已缓存到:skills/china-holidays/assets/2026.md
# 下方是通知原文内容
用户说: "2026 年春节放假几天?"
操作:
输出示例:
2026 年春节放假安排:
2 月 15 日(农历腊月二十八、周日)至 23 日(农历正月初七、周一)放假调休,共 9 天。
2 月 14 日(周六)、2 月 28 日(周六)上班。
用户说: "对比一下 2025 年和 2026 年春节放假有什么不同"
操作:
python scripts/fetchholidays.py --year 2025 和 python scripts/fetchholidays.py --year 2026输出示例:
2025 年 vs 2026 年春节放假对比:
2025 年春节:1 月 28 日(除夕)至 2 月 4 日(初七)放假,共 8 天
2026 年春节:2 月 15 日(腊月二十八)至 23 日(初七)放假,共 9 天
差异:2026 年比 2025 年多放 1 天,且 2026 年包含腊月二十八
用户说: "用 JSON 格式输出 2026 年所有节假日安排"
操作:
输出示例:
{
"year": 2026,
"holidays": [
{"name": "元旦", "dates": "1 月 1 日 -1 月 3 日", "days": 3, "makeup_work": "1 月 4 日"},
{"name": "春节", "dates": "2 月 15 日 -2 月 23 日", "days": 9, "makeup_work": "2 月 14 日、2 月 28 日"},
{"name": "清明节", "dates": "4 月 4 日 -4 月 6 日", "days": 3, "makeup_work": "无"},
{"name": "劳动节", "dates": "5 月 1 日 -5 月 5 日", "days": 5, "makeup_work": "5 月 9 日"},
{"name": "端午节", "dates": "6 月 19 日 -6 月 21 日", "days": 3, "makeup_work": "无"},
{"name": "中秋节", "dates": "9 月 25 日 -9 月 27 日", "days": 3, "makeup_work": "无"},
{"name": "国庆节", "dates": "10 月 1 日 -10 月 7 日", "days": 7, "makeup_work": "9 月 20 日、10 月 10 日"}
]
}
错误现象: 脚本返回"未找到相关节假日通知"或"搜索结果为空"
可能原因:
Agent 处理方式:
错误现象: 脚本退出并显示网络请求失败
可能原因:
Agent 处理方式:
--force 参数移除)或稍后重试错误现象: 获取到 URL 但无法提取有效内容
Agent 处理方式:
错误现象: 本地无缓存且在线获取失败
Agent 处理方式:
通用处理原则:
脚本采用缓存优先策略:
assets/{年份}.md 是否存在Agent 处理建议:
assets/{年份}.md,每年新数据发布后会自动更新