Calendar - 万年历查询

使用极速数据万年历 API 查询指定日期的公历、农历、星座、生肖、黄历及节假日信息。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
9 · 242 · 0 current installs · 0 all-time installs
by极速数据@jisuapi
MIT-0
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description describe a calendar lookup using Jisu API; the script only calls https://api.jisuapi.com/calendar/* and requires python3 and JISU_API_KEY — all requested resources are proportional and expected for this purpose.
Instruction Scope
SKILL.md instructs running the included Python script with a JSON argument or the 'holiday' command. The instructions do not request reading other files, secrets, or system state beyond the declared JISU_API_KEY, and network calls are directed to the documented api.jisuapi.com endpoints.
Install Mechanism
No install spec is provided (instruction-only plus a small included script). Nothing is downloaded from arbitrary URLs and no archives are extracted — low install risk.
Credentials
Only one environment variable is required: JISU_API_KEY (declared as primary). There are no unrelated or excessive credential requests and the script only reads that single env var.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system settings. Autonomous invocation is enabled by default (disable-model-invocation: false) but is not combined with broad privileges or unexplained access.
Assessment
This skill is coherent with its stated purpose. Before installing: (1) ensure you trust the Jisu (极速数据) service and understand their data / logging policy because the script will send date requests to api.jisuapi.com; (2) keep your JISU_API_KEY secret and scoped appropriately (rotate it if exposed); (3) be aware the agent can call this skill autonomously by default — if you prefer to require human approval, enable appropriate platform settings (e.g., disable autonomous invocation for this skill).

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

Current versionv1.0.4
Download zip
latestvk97cwa4jwvb66g5nxe0m61gz0n833qqn

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🗓️ Clawdis
Binspython3
EnvJISU_API_KEY
Primary envJISU_API_KEY

SKILL.md

极速数据万年历(Jisu Calendar)

基于 万年历 API 的 OpenClaw 技能,支持:

使用技能前需要申请数据,申请地址:https://www.jisuapi.com/api/calendar/

  • 万年历查询/calendar/query):指定日期查询公历、农历、星座、生肖、干支、黄历(宜忌、吉神凶神等)信息,可进行阴阳历转换。
  • 节假日查询/calendar/holiday):查询法定节假日的放假/调休说明。

适合在对话中回答「某天是周几、什么星座」「农历是多少」「这天宜做什么」「今年有什么法定节假日安排」等问题。

环境变量配置

# 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)

python3 skills/calendar/calendar.py '{"date":"2015-10-22"}'

也可以显式指定阴历标记,例如按农历查询:

python3 skills/calendar/calendar.py '{"date":"2015-09-10","islunar":1,"islunarmonth":0}'

请求 JSON 示例:

{
  "date": "2015-10-22",
  "islunar": 0,
  "islunarmonth": 0
}
字段名类型必填说明
datestring日期,格式 YYYY-MM-DD,默认今天
islunarint是否是阴历,0 表示阳历(默认),1 表示阴历
islunarmonthint是否是闰月,0 不是(默认),1 为闰月

返回结果示例(节选自 极速数据文档):

{
  "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(岁次)、taishenwuxingchongshajirizhirixiongshenjishenyiqucaishenxishenfushen 等。

2. 节假日查询(/calendar/holiday)

python3 skills/calendar/calendar.py holiday

无额外 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日(星期一)补休。"
}

部分实现中也可能返回更结构化的对象(包含 namecontent),脚本不会做额外处理,原样返回 result

常见错误码

来自 极速数据万年历文档 的业务错误码:

代号说明
201日期有误
202没有信息

系统错误码:

代号说明
101APPKEY 为空或不存在
102APPKEY 已过期
103APPKEY 无请求此数据权限
104请求超过次数限制
105IP 被禁止
106IP 请求超过限制
107接口维护中
108接口已停用

在 OpenClaw 中的推荐用法

  1. 用户提问:「帮我查一下 2025-05-20 是周几、农历多少、属什么、适合干什么?」
  2. 代理构造 JSON:{"date":"2025-05-20"} 并调用:
    python3 skills/calendar/calendar.py '{"date":"2025-05-20"}'
  3. 从结果中读取:weeknonglishengxiaostar,以及 huangli.yi / huangli.jihuangli.jirihuangli.xiongshen 等字段,整理成自然语言回答。
  4. 如用户只关心法定节假日安排,则调用:python3 skills/calendar/calendar.py holiday,根据返回的日期键值对,提取今年或指定年份的放假/调休说明,并用人话归纳给用户。

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…