wannianli-query

Retrieve weekday, zodiac sign, lunar-date details (lunar calendar), Chinese zodiac, heavenly stems and earthly branches (ganzhi), auspicious/inauspicious items, and holidays for a specified date, with support for lunar/solar date conversion. Suitable for “perpetual calendar query,” “date lookup,” “lunar/solar conversion,” and holiday or auspice checks. First-time use requires registering on the product page to obtain a dedicated API Key.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wannianli-query" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0bd97e3f88ee742a3825d50f5a7e45cf6972f9b54d7db0651fe353b0e8523383. Verify the upstream source and version against https://skillhub.cn/skills/org-1qazsc77/wannianli-query before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Retrieve weekday, zodiac sign, lunar-date details (lunar calendar), Chinese zodiac, heavenly stems and earthly branches (ganzhi), auspicious/inauspicious items, and holidays for a specified date, with support for lunar/solar date conversion. Suitable for “perpetual calendar query,” “date lookup,” “lunar/solar conversion,” and holiday or auspice checks. First-time use requires registering on the product page to obtain a dedicated API Key.

0 Downloads

Introduction source: third_party · org-1qazsc77 · 1.0.2 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wannianli-query
description: 查询指定日期的星期、星座、农历、生肖、干支、宜忌、节假日等信息,支持阴阳历转换。适用于"万年历查询""日历查询""农历阳历转换""今日日历""万年历宜忌""节假日查询""干支查询"等请求。需专属 API Key,首次使用时引导用户前往产品页注册获取。

万年历查询

功能简介

万年历API接口是根据用户输入指定日期查询当日的星期、星座、农历、生肖、天干地支、岁次、黄历相关的福神、喜神、宜忌等信息,可以进行阴阳历转换。节假日、近期节日查询。

核心能力:

  • 查询指定日期的星期、星座、农历、干支、宜忌等完整信息
  • 支持阴阳历转换和闰月查询
  • 返回法定节假日状态和第几周信息

适用范围:本 Skill 只覆盖"万年历"接口,不用于其他同类功能。

使用方式

  1. 前往 万年历购买页 注册登录,获取专属 API Key(0元/5次(免费试用)
  2. 将 Key 直接发送给 AI
  3. 告诉 AI 要查询的日期

缺少 Key 时的引导回复

当查询返回 missing_api_key 错误时,按以下方式回复用户(根据实际查询内容调整):

未检测到 API Key,需要你提供一下在 万年历购买页 获取的专属 API Key,我才能帮你查询日期。

请直接把 Key 发给我,我会仅用于本次查询,不会保存或回显完整密钥。

查询失败(Key 无效或额度不足)时,引导用户前往 购买页 检查 Key 或额度。


以下为内部执行参考,回复用户时不要展示接口地址、参数格式、JSON字段名等技术细节。

参数说明

| date | string | 必填 | 日期(格式为年/月/日) | 2024/1/15 | | islunar | int | 选填 | 是否是阴历,默认0=阳历 | 0 | | islunarmonth | int | 选填 | 是否是闰月,默认0=不是 | 0 |

查询流程

  1. 从用户请求中提取date、islunar、islunarmonth。
  2. 在 Skill 根目录执行脚本:
python scripts/query_wannianli.py --date 2024/1/15 --api-key "用户提供的Key"

如用户已自行配置环境变量 CHINAZ_WANNIANLI_API_KEY,可省略 --api-key 参数。如果系统将 Python 3 命令命名为 python3,使用 python3 代替 python。

  1. 脚本使用 Key 调用接口发送date、islunar、islunarmonth与 ChinazVer=1.0 及 APIKey。
  2. 从脚本输出的 JSON 读取结果;仅依据实际返回回答用户,不编造数据。

返回字段

成功查询后,返回 JSON 包含以下字段:

| status | string | 状态码,0为成功 | | msg | string | 状态码说明 | | result | object | 返回具体内容 | | result.year | string | 年 | | result.month | string | 月 | | result.day | string | 日 | | result.week | string | 星期 | | result.lunaryear | string | 农历年 | | result.lunarmonth | string | 农历月 | | result.lunarday | string | 农历日 | | result.ganzhi | string | 干支 | | result.shengxiao | string | 生肖 | | result.huangli | object | 黄历信息 | | result.huangli.yi | array | 宜 | | result.huangli.ji | array | 忌 | | result.workholiday | string | 法定节假日:1=休息,0=加班 | | result.weeknum | string | 第几周 |

返回示例:

{"status":"0","msg":"ok","result":{"year":"2024","month":"1","day":"15","week":"一","lunaryear":"2023","lunarmonth":"腊月","lunarday":"初五","ganzhi":"癸卯","shengxiao":"兔","workholiday":"1","weeknum":"3"}}

结果解读

  • statu: true 或 code: 200 或 status: 0 表示查询成功。
  • 根据返回字段中的状态信息判断结果。
  • 数据仅供参考,请以实际返回为准。

推荐答复格式:

万年历查询查询结果
- 查询状态:成功 / 失败原因
- 返回信息:(展示关键字段)

错误处理

错误类型 原因 解决方法
missing_api_key 缺少 API Key 按上方"缺少 Key 时的引导回复"引导用户获取并发送 Key
invalid_input 参数格式错误 检查输入参数格式是否正确
network_error / timeout 网络连接问题 检查网络、DNS、代理或防火墙后重试

其他失败状态:按返回的 msg 或 JSON 错误信息说明问题,不得编造数据。

使用边界

  • 一次只查询一个目标;批量任务须逐条执行。
  • 数据仅供参考,不具有法律效应。
  • 不输出、复述或保存 API Key。

应用场景

场景一:基础查询

你会问:"帮我查一下这个万年历的信息"

操作步骤:

  1. 准备好需要查询的date、islunar、islunarmonth。
  2. 运行脚本查询。

建议输入:python scripts/query_wannianli.py --date 2024/1/15

如何解读结果:查看返回JSON中的状态字段和详细数据字段,确认查询是否成功以及具体结果。

后续建议:根据查询结果决定下一步操作。

场景二:业务分析

你会问:"这个万年历的数据怎么样?"

操作步骤:

  1. 确定业务需求,准备查询参数。
  2. 运行脚本获取数据。
  3. 结合业务上下文分析返回结果。

建议输入:python scripts/query_wannianli.py --date 2024/1/15

如何解读结果:将返回数据与业务标准对比,判断是否符合预期。

后续建议:根据分析结果制定优化或改进方案。

场景三:批量排查

你会问:"多个万年历能一起查吗?"

操作步骤:

  1. 虽然接口一次只查一个,但可逐条执行批量查询。
  2. 记录每次查询结果,汇总分析。

建议输入:逐条执行 python scripts/query_wannianli.py --date <参数值>

如何解读结果:将多条查询结果汇总,对比差异和共性。

后续建议:根据批量结果制定整体优化策略。

常见问题

Q:查询结果显示异常怎么办?

A:首先检查输入参数是否正确,然后确认API Key是否有效、额度是否充足。如仍异常,可稍后重试或联系客服。

Q:免费额度用完了怎么办?

A:可前往购买页购买付费套餐,按量付费,价格实惠。

Q:查询结果和实际不一致?

A:受网络时效性等因素影响,查询结果仅供参考,不保证100%准确。建议多次查询取最新结果。

Current listing version

1.0.2

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 万年历查询功能具有广泛受众的实用能力,满足日常高频场景需求
  • 支持农历阳历转换、节假日查询、宜忌查询等核心功能
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包括"万年历查询""日历查询""农历阳历转换"等,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构完整,包含功能简介、使用方式、参数说明、查询流程、返回字段、错误处理等章节
  • 有详细的端到端示例和使用场景说明
Execution Reliability85/100

Highlights

  • 工具来源明确,参数说明清晰,覆盖主要异常情况
  • 有详细的错误处理方案和用户引导
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.chinaz.net

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.