klarkxy/skills · Archived

chinese-calendar

中国农历/日程工? Chinese calendar & scheduling: lunar/solar conversion, holiday/workday check, event reminders.

First seen Jul 8, 2026

Installation

$ npx skills add klarkxy/skills --skill chinese-calendar

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from klarkxy/skills.

npx skills add klarkxy/skills

Browse all from klarkxy/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.1.0
More metadata
author
klarkxy
version
0.1.0
argument-hint
<command>

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,269 B
  • docs SUMMARY.md 247 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

chinese-calendar

中国农历与日程管理工具,适合中文用户日常查询和轻量日程提醒。

安装

npx skills add klarkxy/skills@chinese-calendar
pip install -r <技能安装路径>/requirements.txt

使用

用 scripts/calendarcli.py 运行命令。事件默认保存在本技能目录的 data/events.json,也可在命令前传入 --data-file <path>,或设置 CHINESECALENDARDATAFILE 环境变量。

日历工具

  • :calendar today

- 显示今日公历、农历、节假日/工作日状态。

  • :calendar solar-to-lunar --date <YYYY-MM-DD>

- 公历转农历。

  • :calendar lunar-to-solar --year <年> --month <月> --day <日> [--leap]

- 农历转公历。--leap 表示闰月。

  • :calendar holiday --date <YYYY-MM-DD>

- 查询某天是否节假日、是否工作日。

日程工具

  • :calendar event add --title <标题> --date <YYYY-MM-DD> [--time HH:MM] [--repeat none|daily|weekly|monthly|yearly] [--remind 0,1,3]

- 添加日程。--remind 是逗号分隔的提前天数,默认 0。

  • :calendar event list [--days N]

- 列出未来 N 天(默认 7)的日程。

  • :calendar event next

- 显示最近的日程。

  • :calendar event remove --id <ID>

- 删除日程。

  • :calendar event check [--date YYYY-MM-DD]

- 输出当天需要提醒的日程;--date 用于测试或补跑。

数据存储

日程默认保存在本技能目录的 data/events.json。写入采用临时文件替换,避免中断时损坏数据。

每日提醒 cron

每天只运行一次 event check。有输出才推送,无输出不发消息;重复运行会重复输出同一提醒。

schedule: "0 9 * * *"
deliver: origin
prompt: "运行 <技能安装路径>/scripts/calendar_cli.py event check;如果输出不为空就把结果发给我。"

将 <技能安装路径> 替换为本地实际路径。