← 返回 Skills 市场
jincan0412

lunar-converter

作者 jincan0412 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
163
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lunar-converter
功能描述
阴历(农历)与阳历(公历)日期转换工具。 当用户需要: (1) 阴历转阳历(如"阴历2月12是阳历几号"、"2026年阴历生日") (2) 阳历转阴历(如"2026年3月26日是阴历多少") (3) 查询某个阴历日期对应的阳历日期 (4) 任何阴历阳历相互转换的需求
使用说明 (SKILL.md)

阴历转换工具

功能

  • 阴历转阳历:输入阴历年月日,返回对应的阳历日期
  • 阳历转阴历:输入阳历年月日,返回对应的阴历日期

使用方法

调用 scripts/lunar.py 脚本:

阴历转阳历

python scripts/lunar.py lunar2solar \x3C年份> \x3C月份> \x3C日期>

示例:查询 2026 年阴历 2 月 12 日对应的阳历

python scripts/lunar.py lunar2solar 2026 2 12
# 输出: {"result": "2026-03-30"}

阳历转阴历

python scripts/lunar.py solar2lunar \x3C年份> \x3C月份> \x3C日期>

示例:查询 2026 年 3 月 30 日对应的阴历

python scripts/lunar.py solar2lunar 2026 3 30
# 输出: {"result": "2026年二月十二"}

注意事项

  • 使用 lunardate Python 库(已预装)
  • 支持范围:1900-2100 年
  • 阴历日期每年对应的阳历可能不同,查询时需指定年份
  • 输出为 JSON 格式,方便程序解析
安全使用建议
This skill appears to do exactly what it says: local date conversions using the Python 'lunardate' library. Before installing, confirm that your environment has the 'lunardate' package from a trusted source and test conversions you care about (especially leap-month cases), because the CLI does not provide an explicit flag to mark a lunar leap month. There are no network calls or credential requests, so there is no obvious exfiltration risk, but if you rely on this for critical calendars, validate a few known dates to ensure the library/version behaves as you expect.
功能分析
Type: OpenClaw Skill Name: lunar-converter Version: 1.0.0 The skill is a legitimate utility for converting between Lunar and Solar calendar dates. The Python script (scripts/lunar.py) uses the standard 'lunardate' library and contains no network requests, file system access, or obfuscated code. Input handling is safe, and the instructions in SKILL.md are strictly aligned with the stated functionality.
能力评估
Purpose & Capability
Name and description match the actual behavior. The skill implements lunar↔solar conversion using the lunardate Python library and does not ask for unrelated binaries, environment variables, or network access.
Instruction Scope
SKILL.md correctly instructs running scripts/lunar.py and the script prints JSON results. Minor mismatch: the script accepts (year, month, day) but provides no CLI flag to indicate a leap (闰) month for lunar2solar — the LunarDate constructor supports an is_leap argument but the CLI does not allow specifying it. Error messages are returned as strings inside the JSON result field (e.g., "错误: ..."), which is functional but may be less machine-friendly for distinguishing errors vs. valid results.
Install Mechanism
No install spec; instruction-only plus a small Python script. The SKILL.md states it uses the 'lunardate' library (assumed preinstalled). Nothing is downloaded or written by an installer.
Credentials
No environment variables, credentials, or config paths are requested. The script only imports a standard third-party library and reads CLI args — proportional to the stated task.
Persistence & Privilege
always:false and no requests to modify agent/system configuration. The skill does not persist state or require elevated/system-wide changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lunar-converter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lunar-converter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
中文: • 熟练掌握农历(阴历)与公历(阳历)之间的日期转换,可准确进行传统节日、节气及历史日期的对应换算。 English: • Proficient in converting dates between the Chinese lunar calendar (Yinli) and the Gregorian calendar (Yangli), with accurate alignment of traditional festivals, solar terms, and historical dates.
元数据
Slug lunar-converter
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

lunar-converter 是什么?

阴历(农历)与阳历(公历)日期转换工具。 当用户需要: (1) 阴历转阳历(如"阴历2月12是阳历几号"、"2026年阴历生日") (2) 阳历转阴历(如"2026年3月26日是阴历多少") (3) 查询某个阴历日期对应的阳历日期 (4) 任何阴历阳历相互转换的需求. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 163 次。

如何安装 lunar-converter?

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

lunar-converter 是免费的吗?

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

lunar-converter 支持哪些平台?

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

谁开发了 lunar-converter?

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

💬 留言讨论