← 返回 Skills 市场
163
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 1lunar
功能描述
查询中国农历日期。将公历日期转换为农历年、月、日、节气等。使用场景:用户问'今天是农历多少'、'查询2024年春节是哪天'、'2024年中秋节对应的公历日期'等。
使用说明 (SKILL.md)
中国农历查询
使用 chinese-lunar-calendar npm 包进行公历与农历的相互转换。
安装
首次使用需安装依赖:
cd /tmp && npm install chinese-lunar-calendar
查询公历对应的农历
# 查询公历日期对应的农历
node -e "
const { getLunar } = require('/tmp/node_modules/chinese-lunar-calendar/src/lunar_calendar.js');
const result = getLunar(2024, 1, 15);
console.log('公历 2024-01-15 => 农历:', result.lunarYear + result.lunarMonth + '月' + result.lunarDate + '日');
console.log('完整信息:', JSON.stringify(result, null, 2));
"
返回字段说明:
lunarYear- 农历年(甲子年格式,如"癸卯年")lunarMonth- 农历月份lunarDate- 农历日期isLeap- 是否闰月zodiac- 生肖solarTerm- 节气(如有)dateStr- 简写(如"腊月初五")
常用节日查询
| 农历节日 | 公历参考(2024年) |
|---|---|
| 春节 | 2024-02-10 |
| 元宵节 | 2024-02-24 |
| 清明节 | 2024-04-04 |
| 端午节 | 2024-06-10 |
| 中秋节 | 2024-09-17 |
| 重阳节 | 2024-10-11 |
示例对话
用户: "今天农历几号?"
# 获取今天日期
node -e "
const { getLunar } = require('/tmp/node_modules/chinese-lunar-calendar/src/lunar_calendar.js');
const today = new Date();
const result = getLunar(today.getFullYear(), today.getMonth() + 1, today.getDate());
console.log('今天是农历: ' + result.lunarYear + result.lunarMonth + '月' + result.lunarDate + '日 (' + result.zodiac + '年)');
"
用户: "2024年春节是哪天?"
# 春节是农历正月初一
# 反查:2024年正月初一对应的公历
# 已知2024年春节是2024-02-10
echo "2024年春节: 2024-02-10 (癸卯年正月初一)"
安全使用建议
This skill appears to do only what it says: convert Gregorian dates to Chinese lunar dates using the 'chinese-lunar-calendar' npm package. Before installing, be aware that SKILL.md asks you (or the agent) to run 'npm install chinese-lunar-calendar' in /tmp without pinning a version — that will download code from the public npm registry and then run node on it. If you trust the npm package, this is reasonable. If you want to reduce supply-chain risk: (1) pin a specific package version, (2) review the package source code or its npm page, (3) install in an isolated environment/container, or (4) vendor/inline a vetted implementation instead of performing an unpinned install at runtime. No credentials are requested and the runtime actions are narrowly scoped.
功能分析
Type: OpenClaw Skill
Name: 1lunar
Version: 1.0.0
The skill provides legitimate functionality for converting Gregorian dates to the Chinese lunar calendar using the 'chinese-lunar-calendar' npm package. The instructions in SKILL.md involve installing the dependency to a temporary directory and executing standard Node.js code to perform date calculations, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the actions in SKILL.md: converting dates to/from the Chinese lunar calendar. The npm package referenced is appropriate for that purpose and no unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions are narrowly scoped: install the library to /tmp and call its getLunar function via node to convert dates or report known festival dates. The instructions do not ask to read arbitrary files, environment variables, or to transmit data to external endpoints beyond installing the npm package.
Install Mechanism
The SKILL.md instructs running 'npm install chinese-lunar-calendar' in /tmp at first use. Using the public npm registry is a common approach but has supply-chain risk (unversioned install, postinstall scripts). Installing into /tmp avoids system-wide changes but still downloads and executes package code with node.
Credentials
No environment variables, credentials, or config paths are requested. The requested resources are proportional to the stated purpose.
Persistence & Privilege
Skill is instruction-only, not always-enabled, and does not request persistent privileges or modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install 1lunar - 安装完成后,直接呼叫该 Skill 的名称或使用
/1lunar触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
1lunar 1.0.0 — 初始版本
- 提供公历与中国农历日期的转换,包括年、月、日、生肖、节气等信息。
- 支持常见农历节日与公历日期查询。
- 集成 `chinese-lunar-calendar` npm 包,安装与使用方法详尽说明。
- 提供示例对话及命令,方便日常询问“今天农历几号”等问题。
元数据
常见问题
中国农历查询 是什么?
查询中国农历日期。将公历日期转换为农历年、月、日、节气等。使用场景:用户问'今天是农历多少'、'查询2024年春节是哪天'、'2024年中秋节对应的公历日期'等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 163 次。
如何安装 中国农历查询?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1lunar」即可一键安装,无需额外配置。
中国农历查询 是免费的吗?
是的,中国农历查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
中国农历查询 支持哪些平台?
中国农历查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 中国农历查询?
由 mysunsi(@mysunsi)开发并维护,当前版本 v1.0.0。
推荐 Skills