← Back to Skills Marketplace
155
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install fortune-luck
Description
根据生日和历法计算每日爱情、事业、财运、健康运势,提供幸运元素和实用建议。
README (SKILL.md)
运势计算 Skill
触发关键词
- 帮我算运势
- 算今日运势
- 今天运势怎么样
- 今日运势
- 查运势
- 运气怎么样
- 今日运气
功能
根据生日计算每日运势(爱情、事业、财运、健康),生成幸运元素和建议。
首次使用
首次调用时,如果未保存生日,会提示用户输入:
- 生日日期(格式:YYYY-MM-DD)
- 历法类型(阳历/阴历)
用户回复后会自动保存,后续无需重复输入。
输入参数
birth_date: 生日,格式 YYYY-MM-DD(可选,有保存时自动读取)query_date: 查询日期,格式 YYYY-MM-DD(可选,默认今天)calendar_type: 历法类型,"solar"(阳历) 或 "lunar"(阴历)
输出格式
{
"query_date": "2026-03-24",
"birth_date": "1990-01-15",
"constellation": "摩羯座",
"zodiac": "马",
"lunar_date": "农历正月十五",
"ganzhi_day": "甲辰日",
"day_tian_shen": "玉堂(黄道)",
"auspicious_label": "黄道吉日",
"scores": {
"overall": 78,
"love": 72,
"career": 80,
"wealth": 75,
"health": 82
},
"lucky_color": "红色",
"lucky_number": 7,
"lucky_direction": "正南",
"yi": ["嫁娶", "祈福", "开市"],
"ji": ["动土", "安葬"],
"advice": "今日气场强,适合推进关键事项..."
}
数据存储
生日数据保存在用户目录下的 .openclaw/fortune_birthday.json 文件中,跨平台兼容。
- Windows:
C:\Users\\x3C用户名>\.openclaw\fortune_birthday.json - macOS/Linux:
~/.openclaw/fortune_birthday.json
调用示例
from fortune_luck import FortuneCalculator
calc = FortuneCalculator()
# 检查是否需要询问生日
if calc.get_saved_birthday() is None:
# 需要先问用户生日
print(calc.get_ask_birthday_prompt())
else:
# 直接计算
result = calc.calculate() # 使用保存的生日
print(result.to_text("share"))
# 保存生日后计算
calc.calculate("1990-01-15", calendar_type="solar")
输出模板(分享用)
📅 2026年3月24日 运势
🎂 1990年1月15日 | 摩羯座 | 生肖马
💫 今日判断:黄道吉日
📊 运势评分
- 总运: 78/99
- 爱情: 72 | 事业: 80 | 财运: 75 | 健康: 82
🍀 幸运元素
- 幸运色: 红色
- 幸运数字: 7
- 幸运方位: 正南
📋 宜: 嫁娶、祈福、开市
⚠️ 忌: 动土、安葬
💡 建议: 今日气场强,适合推进关键事项...
Usage Guidance
This skill appears to do what it says: compute daily fortunes based on a saved birthday. Before installing, note that it will save your birthday and calendar type to ~/.openclaw/fortune_birthday.json in plaintext. The only external dependency is the lunar_python package (installable via pip). If you are uncomfortable storing your birthday, don't save it (the skill will ask each time) or inspect/delete the file after use. As always, install third‑party Python packages from trusted sources and review package reputation before installing.
Capability Analysis
Type: OpenClaw Skill
Name: fortune-luck
Version: 1.2.0
The skill bundle provides a legitimate fortune-telling service based on Chinese lunar and Western astrology. It stores user-provided birthdays locally in '~/.openclaw/fortune_birthday.json' as documented in SKILL.md and fortune_luck.py, with no evidence of data exfiltration, unauthorized network access, or malicious execution logic.
Capability Assessment
Purpose & Capability
The name/description (fortune by birthday) align with the included Python modules, README, and SKILL.md. No unrelated credentials, system services, or external APIs are requested. Required functionality (lunar calendar handling) explains the dependency on lunar_python.
Instruction Scope
SKILL.md instructs the agent to ask for and persist the user's birthday and to use the FortuneCalculator API. The runtime instructions and code only read/write the documented birthday file and perform local computations; they do not read other system files, environment variables, or send data to external endpoints.
Install Mechanism
This is an instruction-only skill (no install spec). It has a runtime dependency on the third‑party Python package lunar_python (pip install lunar-python), which is documented in README/SKILL.md. Installing that package from PyPI is normal for this purpose; the skill itself does not download arbitrary binaries or run installers.
Credentials
The skill requests no environment variables or credentials. It stores the user's birth date and calendar type in a local file (~/.openclaw/fortune_birthday.json). Storing personal data locally is proportionate to the feature, but be aware this is personal information and will persist on disk in plaintext.
Persistence & Privilege
always is false and the skill does not request elevated privileges or modify other skills/configurations. Its only persistent action is writing a single JSON file under the user's home directory, which is documented.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fortune-luck - After installation, invoke the skill by name or use
/fortune-luck - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
修复:移除 fortune.py 中的硬编码路径,改为直接导入模块
v1.1.0
修复:使用跨平台路径存储生日数据,文档新增数据存储说明
v1.0.0
初始版本 - 基于中国农历黄历和西方星座的每日运势计算
Metadata
Frequently Asked Questions
What is 运势计算 (Fortune Luck)?
根据生日和历法计算每日爱情、事业、财运、健康运势,提供幸运元素和实用建议。 It is an AI Agent Skill for Claude Code / OpenClaw, with 155 downloads so far.
How do I install 运势计算 (Fortune Luck)?
Run "/install fortune-luck" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 运势计算 (Fortune Luck) free?
Yes, 运势计算 (Fortune Luck) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 运势计算 (Fortune Luck) support?
运势计算 (Fortune Luck) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 运势计算 (Fortune Luck)?
It is built and maintained by Zafer Liu (@zaferliu); the current version is v1.2.0.
More Skills