← Back to Skills Marketplace
jincan0412

lunar-converter

by jincan0412 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
163
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install lunar-converter
Description
阴历(农历)与阳历(公历)日期转换工具。 当用户需要: (1) 阴历转阳历(如"阴历2月12是阳历几号"、"2026年阴历生日") (2) 阳历转阴历(如"2026年3月26日是阴历多少") (3) 查询某个阴历日期对应的阳历日期 (4) 任何阴历阳历相互转换的需求
README (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 格式,方便程序解析
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lunar-converter
  3. After installation, invoke the skill by name or use /lunar-converter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug lunar-converter
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is lunar-converter?

阴历(农历)与阳历(公历)日期转换工具。 当用户需要: (1) 阴历转阳历(如"阴历2月12是阳历几号"、"2026年阴历生日") (2) 阳历转阴历(如"2026年3月26日是阴历多少") (3) 查询某个阴历日期对应的阳历日期 (4) 任何阴历阳历相互转换的需求. It is an AI Agent Skill for Claude Code / OpenClaw, with 163 downloads so far.

How do I install lunar-converter?

Run "/install lunar-converter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is lunar-converter free?

Yes, lunar-converter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does lunar-converter support?

lunar-converter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created lunar-converter?

It is built and maintained by jincan0412 (@jincan0412); the current version is v1.0.0.

💬 Comments