Back to skills
SKILL.md
Jisu Calendar
ASecurity使用极速数据万年历 API 查询指定日期的公历、农历、星座、生肖、黄历及节假日信息。
- 21 stars
- 0 votes
- 0 copies
- 15 views
- Added September 7, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill jisu-calendar --agent claude-codeAre you the author of Jisu Calendar?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-jisu-calendar)---
name: jisu-calendar
description: 使用极速数据万年历 API 查询指定日期的公历、农历、星座、生肖、黄历及节假日信息。
metadata: { "openclaw": { "emoji": "🗓️", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---
## 极速数据万年历(Jisu Calendar)
基于 [万年历 API](https://www.jisuapi.com/api/calendar/) 的 OpenClaw 技能,支持:
使用技能前需要申请数据,申请地址:https://www.jisuapi.com/api/calendar/
- **万年历查询**(`/calendar/query`):指定日期查询公历、农历、星座、生肖、干支、黄历(宜忌、吉神凶神等)信息,可进行阴阳历转换。
- **节假日查询**(`/calendar/holiday`):查询法定节假日的放假/调休说明。
适合在对话中回答「某天是周几、什么星座」「农历是多少」「这天宜做什么」「今年有什么法定节假日安排」等问题。
## 环境变量配置
```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"
# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```
## 脚本路径
脚本文件:`skills/calendar/calendar.py`
## 使用方式与请求参数
### 1. 万年历查询(/calendar/query)
```bash
python3 skills/calendar/calendar.py '{"date":"2015-10-22"}'
```
也可以显式指定阴历标记,例如按农历查询:
```bash
python3 skills/calendar/calendar.py '{"date":"2015-09-10","islunar":1,"islunarmonth":0}'
```
请求 JSON 示例:
```json
{
"date": "2015-10-22",
"islunar": 0,
"islunarmonth": 0
}
```
| 字段名 | 类型 | 必填 | 说明 |
|---------------|--------|------|------------------------------|
| date | string | 是 | 日期,格式 `YYYY-MM-DD`,默认今天 |
| islunar | int | 否 | 是否是阴历,0 表示阳历(默认),1 表示阴历 |
| islunarmonth | int | 否 | 是否是闰月,0 不是(默认),1 为闰月 |
返回结果示例(节选自 [官方文档](https://www.jisuapi.com/api/calendar/)):
```json
{
"year": "2015",
"month": "10",
"day": "22",
"week": "四",
"lunaryear": "2015",
"lunarmonth": "九月",
"lunarday": "初十 ",
"ganzhi": "乙未",
"shengxiao": "羊",
"star": "天枰座",
"huangli": {
"nongli": "农历二〇一五年九月初十",
"taishen": "厨灶厕外西南",
"wuxing": "路旁土",
"chong": "冲(乙丑)牛",
"sha": "煞西",
"jiri": "朱雀(黑道)收日",
"zhiri": "朱雀(黑道凶日)",
"xiongshen": "地曩 月刑 河魁 五虚 朱雀",
"jishenyiqu": "天德合 母仓 不将 玉宇 月德合",
"caishen": "正东",
"xishen": "西南",
"fushen": "西南",
"suici": [
"乙未年",
"丙戌月",
"辛未日"
],
"yi": [
"祭祀",
"冠笄",
"移徙",
"会亲友",
"纳财",
"理发",
"捕捉"
],
"ji": [
"嫁娶",
"开市",
"开池",
"作厕",
"破土"
]
}
}
```
主要字段说明:
- **公历与星期**:`year`, `month`, `day`, `week`
- **农历与干支**:`lunaryear`, `lunarmonth`, `lunarday`, `ganzhi`, `shengxiao`, `nongli`
- **星座**:`star`
- **黄历信息**(在 `huangli` 对象中):`yi`(宜)、`ji`(忌)、`suici`(岁次)、`taishen`、`wuxing`、`chong`、`sha`、`jiri`、`zhiri`、`xiongshen`、`jishenyiqu`、`caishen`、`xishen`、`fushen` 等。
### 2. 节假日查询(/calendar/holiday)
```bash
python3 skills/calendar/calendar.py holiday
```
无额外 JSON 参数。
返回结果示例(节选自 [官方文档](https://www.jisuapi.com/api/calendar/)):
```json
{
"2015-01-01": "1月1日至3日放假调休,共3天。1月4日(星期日)上班。",
"2015-02-18": "2月18日至24日放假调休,共7天。2月15日(星期日)、2月28日(星期六)上班。",
"2015-04-05": "4月5日放假,4月6日(星期一)补休。"
}
```
部分实现中也可能返回更结构化的对象(包含 `name`、`content`),脚本不会做额外处理,原样返回 `result`。
## 常见错误码
来自 [官方万年历文档](https://www.jisuapi.com/api/calendar/) 的业务错误码:
| 代号 | 说明 |
|------|----------|
| 201 | 日期有误 |
| 202 | 没有信息 |
系统错误码:
| 代号 | 说明 |
|------|--------------------------|
| 101 | APPKEY 为空或不存在 |
| 102 | APPKEY 已过期 |
| 103 | APPKEY 无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP 被禁止 |
| 106 | IP 请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
## 在 OpenClaw 中的推荐用法
1. 用户提问:「帮我查一下 2025-05-20 是周几、农历多少、属什么、适合干什么?」
2. 代理构造 JSON:`{"date":"2025-05-20"}` 并调用:
`python3 skills/calendar/calendar.py '{"date":"2025-05-20"}'`。
3. 从结果中读取:`week`、`nongli`、`shengxiao`、`star`,以及 `huangli.yi` / `huangli.ji`、`huangli.jiri`、`huangli.xiongshen` 等字段,整理成自然语言回答。
4. 如用户只关心法定节假日安排,则调用:`python3 skills/calendar/calendar.py holiday`,根据返回的日期键值对,提取今年或指定年份的放假/调休说明,并用人话归纳给用户。
Files in this skill
- SKILL.md
- calendar.py
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.