lunar-converter

v1.0.0

阴历(农历)与阳历(公历)日期转换工具。 当用户需要: (1) 阴历转阳历(如"阴历2月12是阳历几号"、"2026年阴历生日") (2) 阳历转阴历(如"2026年3月26日是阴历多少") (3) 查询某个阴历日期对应的阳历日期 (4) 任何阴历阳历相互转换的需求

0· 157·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for jincan0412/lunar-converter.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "lunar-converter" (jincan0412/lunar-converter) from ClawHub.
Skill page: https://clawhub.ai/jincan0412/lunar-converter
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install lunar-converter

ClawHub CLI

Package manager switcher

npx clawhub@latest install lunar-converter
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk978f39hsq0vk4jkcqb43e93es83qcjr
157downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

阴历转换工具

功能

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

使用方法

调用 scripts/lunar.py 脚本:

阴历转阳历

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

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

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

阳历转阴历

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

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

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

注意事项

  • 使用 lunardate Python 库(已预装)
  • 支持范围:1900-2100 年
  • 阴历日期每年对应的阳历可能不同,查询时需指定年份
  • 输出为 JSON 格式,方便程序解析

Comments

Loading comments...