CN Calendar Skill
Chinese calendar MCP server — holidays, lunar/solar conversion, 24 solar terms, workday calculation, 13 endpoints, zero API dependency
一句话安装
npx skills add demo112/cn-calendar-skill
装完直接对 Claude Code / Codex / Cursor / Hermes 说:「6月有多少工作日?」「请2天假怎么连最长?」
完全离线 · 零 API Key · 零网络请求 · 国务院官方数据
解决什么痛点?
每个中国开发者都遇到过这些场景:
# ❌ 硬编码节假日 — 每年更新,调休补班容易漏
if date in ['2026-01-01', '2026-01-02', ...]:
...
# ❌ 调外部 API — 被限频/掉线/收费
requests.get('https://some-api.com/holiday?date=2026-06-19')
# ✅ 用 cn-calendar-skill — 一句话搞定
"今天开票,合同写30个工作日付款,到期日是哪天?"
SKILL.md 内嵌了完整的 Python 代码 + 国务院调休数据(2004-2026),装上就能用。
13 个端点
📅 日历层
| 端点 | 用途 | 示例 |
|---|---|---|
is_workday_cn(date) | 工作日判定(含调休补班) | 2026-09-28 周日补班 → True |
next_holiday(date) | 下一个法定假 + 起止日期 | → 国庆节 10/1-10/7 |
cn_date_info(date) | 综合查询(一键返回全部) | → 工作日+农历+节气+星座 |
💼 工作日层
| 端点 | 用途 | 场景 |
|---|---|---|
add_workdays(start, n) | 第 N 个工作日 | 账期/物流时效 |
count_workdays(start, end) | 区间工作日数 | HR 考勤/排班 |
find_bridge_leaves(date, n) | 请 N 天假连出 X 天 | 请假性价比排序 |
🌙 农历层
| 端点 | 用途 |
|---|---|
solar_to_lunar(date) | 公历 → 农历 |
lunar_to_solar(year, month, day) | 农历 → 公历 |
get_solar_term(date) | 当前/下一节气 |
get_zodiac(year) / get_zodiac_strict(date) | 生肖(公历/农历) |
get_constellation(date) | 12 星座 |
真实对话示例
👤 "6月份有多少工作日,端午是几号到几号?"
🤖 6月有 20 个工作日。端午节 5/31-6/2 放假 3 天。
👤 "请2天假,怎么请最划算?"
🤖 推荐方案:6/26(五) + 6/29(一) 请假 2 天,连出 5 天假期(6/26-6/30)。
👤 "客户合同写'开票后 30 个工作日付款',今天开票,到期日?"
🤖 30 个工作日后是 2026-07-13(周一)。
👤 "我妈生日农历八月初八,今年公历哪天?"
🤖 农历八月初八 → 2026-09-18(周五)。
技术细节
数据来源:
- 法定节假日:chinese-calendar(国务院办公厅官方通知,2004-2026)
- 农历:zhdate(1900-2100)
- 节气:天文公式,21 世纪精度 ±1 天
依赖安装:
pip install chinese-calendar zhdate
兼容 Agent: Claude Code · Codex · Cursor · Hermes · Cline · OpenCode · Windsurf · 任何支持 SKILL.md 的 Agent
谁在用?
- HR 团队 — 自动排班 / 考勤统计
- 电商运营 — 大促日期规划(中秋/国庆/双十一)
- 财务部门 — 合同账期计算(工作日口径)
- 物流公司 — 时效承诺(工作日口径)
- 个人开发者 — 请假规划 / 农历生日提醒
支持
Donate
如果帮到了你的工作流:
- ETH/USDT (ERC-20):
0xddD9f45e14c92846f47C1c1A4431aC2b41D87273
License
MIT © 2026 云渡 (Hermes Agent)
Related Servers
Kone.vc
sponsorMonetize your AI agent with contextual product recommendations
Humanizer PRO
Humanizer PRO is an MCP server that transforms AI-generated text into natural, human-sounding content. It provides 4 tools: - humanize_text: Rewrite AI text to bypass detectors like GPTZero, Turnitin, Originality.ai, Copyleaks, and ZeroGPT. Three modes: Stealth (highest bypass rate), Academic (Turnitin-optimized), SEO (marketing content). - scan_ai_detection: Analyze text for AI patterns. Returns AI probability score, human-likeness percentage, and verdict. - check_word_balance: Check remaining word credits and subscription plan details. - get_subscription_plans: Browse plans - Free (500 words), Starter ($9.99/mo, 30K words), Creator ($14.99/mo, 100K words), Pro Annual ($119.88/yr, 100K words/mo). Authentication: OAuth 2.0. Works with ChatGPT, Claude, Cursor, and all MCP-compatible clients.
OSHA Compliance Assistant
Check workplace safety compliance against OSHA General Industry standards (29 CFR 1910) with cited regulation sections and corrective actions.
Gezhe PPT
Generates PowerPoint presentations (PPTs) based on specified topics using the Gezhe API.
AI2Fin | Intelligent Financial Management
Tools for expense tracking, tax deductions, bill management, and financial analysis.
Memento Protocol
Persistent memory for AI agents — store what matters, recall by meaning, skip the rest
Lawmadi
Lawmadi OS (법마디) is an AI-powered legal operating system designed for Korean law, designed to provide real-time, verified legal consultations. It acts as a comprehensive AI legal assistant for both the public and legal professionals.
Document Translator
An example MCP server for translating documents, designed for deployment on Cloudflare Workers.
Avocado AI
Collaborative AI creative workspace for agencies and ecommerce teams to generate on-brand images, videos, and ad creative at scale.
Time Server
Get the current time and convert time between different timezones.
MCP Router
A Windows and MacOS app to manage local and remote MCP servers from a single interface with secure access control and logging.