← 返回 Skills 市场
124
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install 1coos-calendar-cn
功能描述
查询中国传统日历/黄历信息。TRIGGER when user asks about Chinese calendar, lunar date, 农历, 黄历, 万年历, 节气, 五行, 宜忌, 干支,佛历,道历等。
使用说明 (SKILL.md)
Calendar CN — 中国万年历/黄历
查询任意日期的完整中国传统日历信息,包括农历、干支、节气、宜忌、五行、冲煞、彭祖百忌、胎神、吉神凶煞、星宿、佛教/道教节日等。
使用方式
/1coos-calendar-cn [日期] [--lunar] [--help]
参数
| 参数 | 必需 | 说明 |
|---|---|---|
[日期] |
否 | 公历日期,支持 YYYY-MM-DD、YYYY/MM/DD、YYYYMMDD 格式,默认今天 |
--lunar |
否 | 标记输入的日期是农历日期 |
--config |
否 | 指定配置文件路径(默认 skill 目录下的 config.json) |
--help |
否 | 显示帮助信息 |
输出信息
- 公历/农历日期、星期
- 生肖、星座、季节
- 干支纪日(年柱、月柱、日柱)+ 纳音五行
- 宜忌事项
- 冲煞、彭祖百忌、胎神
- 吉神宜趋、凶煞宜忌
- 节气(当前/下一个)
- 节日(公历节日、农历节日、佛教节日/斋日、道教节日)
- 二十八星宿、值神、建除十二值星
- 吉神方位(喜神、福神、财神、阳贵、阴贵)
- 六曜、月相、日禄
示例
# 查询今天的黄历
/1coos-calendar-cn
# 查询指定公历日期
/1coos-calendar-cn 2024-02-10
# 查询农历日期(如农历2024年二月十九 观音诞)
/1coos-calendar-cn 2024-02-19 --lunar
# 紧凑日期格式
/1coos-calendar-cn 20240915
执行指令
当用户调用此 skill 时:
- 运行脚本:执行以下命令:
bun run /path/to/skills/1coos-calendar-cn/scripts/main.js <用户参数> - 展示结果:将脚本输出直接展示给用户。
- 处理错误:
- 退出码 0:成功
- 退出码 2:参数错误(无效日期格式等)
配置
通过 config.json 配置语言和数据模块开关(详见 references/modules.md):
{
"lang": "cn",
"modules": {
"ganZhi": true,
"yiJi": true,
"chongSha": true,
"jieQi": true,
"holiday": true,
"foto": true,
"tao": true,
"xiu": true,
"jiShen": true,
"positions": true
}
}
| 配置项 | 说明 | 默认值 |
|---|---|---|
lang |
语言:cn(简体中文)、en(英文) |
cn |
modules.ganZhi |
干支纪日、纳音五行 | true |
modules.yiJi |
宜忌事项、彭祖百忌 | true |
modules.chongSha |
冲煞、胎神占方 | true |
modules.jieQi |
节气信息 | true |
modules.holiday |
法定节假日(公历节日) | true |
modules.foto |
佛教节日/斋日(观音诞等) | true |
modules.tao |
道教节日 | true |
modules.xiu |
二十八星宿、值神、建除 | true |
modules.jiShen |
吉神宜趋/凶煞宜忌 | true |
modules.positions |
吉神方位(喜神、福神、财神等) | true |
CLI 参数 --config 可指定自定义配置文件路径。
技术说明
- 所有日历计算由 lunar-typescript 库本地完成
- 无需网络连接,无外部依赖
- 支持公历/农历双向转换
安全说明
此 skill 的打包产物体积较大(~300KB),因为内嵌了 lunar-typescript 库的完整天文计算数据表:
- 节假日数据(HolidayUtil.DATA):2001-2026 年中国法定节假日编码表(纯数字)
- 天文历法数据(ShouXingUtil.QB/SB):寿星万年历天文计算查表数据(字母编码)
这些数据是日历计算的核心查表数据,非可执行代码。源库地址:https://github.com/6tail/lunar-typescript
安全使用建议
The skill looks coherent for providing Chinese lunar/huangli information: it bundles the lunar-typescript data and runs locally with bun, and it asks for no secrets. Before installing/running: (1) inspect scripts/main.js for any unexpected network calls or code that decodes and executes embedded data, (2) avoid passing sensitive system paths to --config (the script can read files you point it at), and (3) run the skill in a sandbox or isolated environment the first time to confirm behavior. The scanner detected an encoded-data pattern (base64-block); if you are not comfortable reading the JS source yourself, ask the publisher for clarification or run the code in a restricted environment.
能力标签
能力评估
Purpose & Capability
Name/description (Chinese traditional calendar) align with what is provided: a bundled JS implementation of lunar-typescript and a CLI wrapper. The only declared external requirement is 'bun', which is appropriate for running the provided script. No unrelated credentials, binaries, or services are requested.
Instruction Scope
SKILL.md instructs the agent to run the bundled script and display its output; that stays within purpose. The skill allows a --config path to be specified (defaults to a config.json in the skill directory). Allowing an arbitrary config path is reasonable for customization but means the script can read whatever file path is passed in by the caller — review how the script validates/uses that file to avoid unintended file reads.
Install Mechanism
No install spec — instruction-only runtime with a bundled script included. The code is bundled into the repo (large file size because it contains data tables). No remote downloads or external installers are declared.
Credentials
The skill requires no environment variables or credentials. That is proportionate to its stated purpose.
Persistence & Privilege
Skill is not always-enabled and does not request system-wide modifications or elevated persistence. Autonomous invocation is allowed (platform default) but is not combined with other concerning privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install 1coos-calendar-cn - 安装完成后,直接呼叫该 Skill 的名称或使用
/1coos-calendar-cn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Change script entry point from main.ts to main.js in documentation and execution instructions.
- Bump version to 1.0.2.
- No user-facing feature or logic changes.
v1.0.1
- 增加 `--config` 参数,可指定自定义配置文件。
- 支持通过 config.json 灵活开关各类日历输出模块(参考 references/modules.md)。
- metadata 声明依赖 "bun" 运行环境。
- 丰富安全说明,详细描述数据来源。
- 优化触发关键词与说明,调整描述内容。
v1.0.0
Initial release of 1coos-calendar-cn — Chinese traditional calendar/huangli skill.
- Query detailed Chinese calendar information for any date, including lunar date, zodiac, solar term, daily taboos, festivals, and more.
- Supports Gregorian or lunar date input, and multiple date formats.
- Outputs a comprehensive set of traditional almanac fields, such as 宜忌, 干支, 冲煞, 吉神, 星宿, etc.
- Command-line usage with clear help and error handling.
- Offline operation; uses local lunar-typescript library for all calculations.
元数据
常见问题
1coos-calendar-cn 是什么?
查询中国传统日历/黄历信息。TRIGGER when user asks about Chinese calendar, lunar date, 农历, 黄历, 万年历, 节气, 五行, 宜忌, 干支,佛历,道历等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。
如何安装 1coos-calendar-cn?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1coos-calendar-cn」即可一键安装,无需额外配置。
1coos-calendar-cn 是免费的吗?
是的,1coos-calendar-cn 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
1coos-calendar-cn 支持哪些平台?
1coos-calendar-cn 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 1coos-calendar-cn?
由 1coos(@1coos)开发并维护,当前版本 v1.0.2。
推荐 Skills