← Back to Skills Marketplace
eamonnn101

HexaLotto 六爻奇门测彩

by Eamonnn101 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ Security Clean
170
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install hexalotto
Description
六爻奇门测彩 V2.0 (HexaLotto) — 多彩种六爻推演娱乐 Skill, 支持双色球(SSQ)、大乐透(DLT)、六合彩(MARK6)三大彩种。 同时推算主号(红球/前区/平码)与特殊球(蓝球/后区/特码特肖)。 当用户提到"算一卦"、"六爻测彩"、"预测双色球"、"预测大乐透"、 "六合彩特码"、"...
README (SKILL.md)

HexaLotto V2.0 六爻奇门测彩 · 多彩种引擎

概述

HexaLotto V2.0 在 V1 的主号推算基础上,新增特殊球推算,实现全号段覆盖:

彩种 输入 主号推荐 特殊球推荐
双色球 SSQ 6个红球 红球 6个(1~33) 蓝球 1个(1~16)
大乐透 DLT 5个前区 前区 5个(1~35) 后区 2个(1~12)
六合彩 MARK6 6个平码 平码 6个(1~49) 特肖+特码(1~49)

报告输出三段式结构:主号推荐 → 特殊球推荐 → 综合推荐摘要

免责声明:本 Skill 纯属娱乐与中国传统术数文化演示,不构成任何投资或博彩建议。

执行流程(必须严格按顺序执行)

Step 1: web_search 搜索最新开奖号码
         ↓
Step 2: web_fetch 打开结果页面,提取号码
         ↓
Step 3: 运行 python hexalotto.py 起卦测算
         ↓
Step 4: 整理输出结果呈现给用户

Step 1 + Step 2: 获取最新一期号码

根据用户请求的彩种,使用 web_search 搜索最新开奖结果,然后用 web_fetch 打开搜到的页面提取号码。

双色球 (SSQ)

1. web_search("双色球 最新开奖结果")
2. 从搜索结果中选一个可靠来源(优先:zhcw.com / cwl.gov.cn / 新浪 / 网易 / 500.com)
3. web_fetch 打开该页面
4. 从页面内容中找到最新一期的开奖号码
5. 提取 6 个红球号码(丢弃蓝球),记为 NUMS

提取要点:

  • 红球通常标记为"红球"或排在前面的 6 个数字
  • 蓝球通常标记为"蓝球"或"特别号码",丢弃不用(引擎自己推算)
  • 记录期号备用

大乐透 (DLT)

1. web_search("大乐透 最新开奖结果")
2. 选可靠来源(优先:lottery.gov.cn / zhcw.com / 500.com / 新浪体彩)
3. web_fetch 打开该页面
4. 提取 5 个前区号码(丢弃后区 2 个号码),记为 NUMS

提取要点:

  • 前区通常标记为"前区",共 5 个号码(1~35)
  • 后区通常标记为"后区",共 2 个号码,丢弃不用(引擎自己推算)

六合彩 (MARK6)

1. web_search("六合彩 搅珠结果 最新")
2. 选可靠来源(优先:sundaykiss.com / weekendhk.com / hk.news.yahoo.com / edigest.hk)
3. web_fetch 打开该页面
4. 找到 "中獎號碼:X、X、X、X、X、X 特別號碼 X" 格式的文本
5. 提取前 6 个数字为平码(丢弃"特別號碼"后的数字),记为 NUMS

提取要点:

  • 平码 = 中奖号码前 6 个数字
  • 特码 = "特別號碼"后面的 1 个数字,丢弃不用(引擎自己推算)
  • 注意区分最新一期和往期数据(看期数和日期)

如果搜索/抓取均失败

请用户手动提供上一期号码:

"请提供最新一期的开奖号码(空格分隔):
  双色球请提供 6 个红球号码
  大乐透请提供 5 个前区号码
  六合彩请提供 6 个平码"

Step 3: 运行推演引擎

将 Step 2 提取到的号码 NUMS 传入引擎:

cd \x3Cskill_path>
python scripts/hexalotto.py --numbers "NUMS" --type \x3Cssq|dlt|mark6>

参数说明:

参数 说明 示例
-n / --numbers 上期号码,空格分隔 "03 07 15 22 28 33"
-t / --type 彩种 ssq / dlt / mark6
-d / --date 起卦日期(默认今天) "2025-09-11"
-s / --dlt-strategy 大乐透第6爻策略 A(求和) / B(干支借位)

各彩种的命令示例:

# 双色球(6个红球)
python scripts/hexalotto.py -n "03 10 12 13 18 33" -t ssq

# 大乐透(5个前区,引擎自动补第6爻)
python scripts/hexalotto.py -n "03 05 17 33 35" -t dlt

# 六合彩(6个平码)
python scripts/hexalotto.py -n "05 09 11 18 23 47" -t mark6

大乐透第6爻补齐策略:

  • 策略 A(求和衍生,默认):第6爻 = 5个前区号码的总和
  • 策略 B(干支借位):第6爻 = 起卦当日的60甲子序号+1

Step 4: 整理输出结果

引擎输出包含四大板块:

  1. 完整卦象分析:本卦/变卦、纳甲排盘、月日旺衰、动变关系(含回头生/回头克)
  2. 应期推算明细:每爻的病药推理过程
  3. 主号推荐:地支→生肖→主号候选,精选指定个数的主号
  4. 特殊球推荐:地支→生肖→特殊球候选,精选特殊球

最后附带 综合推荐摘要,一行显示全部推荐号码。

向用户呈现时,按以下格式输出:

📊 数据来源:[搜到的网站名] 第 [期号] 期
🔮 起卦日期:[今天日期] / 日柱:[干支] / 月建:[地支]
📋 得卦:[本卦名] → [变卦名]

🎯 综合推荐:
  双色球:红球 XX XX XX XX XX XX / 蓝球 XX
  大乐透:前区 XX XX XX XX XX / 后区 XX XX
  六合彩:平码 XX XX XX XX XX XX / 特肖【X】→ XX XX XX XX

⚠️ 纯属娱乐,不构成投资建议。

如果用户想看详细的卦象分析过程,将引擎的完整输出展示给用户。

特殊球映射说明

  • 双色球蓝球(116):12地支 mod 12 循环叠加。子→01,13; 丑→02,14; 寅→03,15; 卯→04,16; 辰亥单对应05~12。命中双对应地支时同时输出两个蓝球备选。
  • 大乐透后区(1~12):12地支与12个号码 1:1 绝对映射(子=01, 丑=02 ... 亥=12)。取权重最高的2个地支。
  • 六合彩特码(1~49):地支→生肖→当年动态号码表(每年农历新年偏移)。取权重最高的1个地支作为特肖。引擎内置 2025/2026 年预置表,其他年份自动生成。

六合彩生肖表

六合彩的生肖↔号码对应每年农历新年后发生偏移。引擎内置 2025/2026 年预置表, 其他年份自动生成。如需手动更新,修改 hexalotto.py 中的 MARK6_PRESET_TABLES

JSON 输出结构

使用 --json 时,summary 字段包含双层结构:

{
  "summary": {
    "main": {
      "label": "红球",
      "selected": [1, 6, 7, 8, 9, 13],
      "recommended_zhi": ["午", "申", ...],
      "recommended_xiao": ["马", "猴", ...]
    },
    "special": {
      "label": "蓝球",
      "mode": "双色球蓝球(01~16)",
      "recommended_numbers": [7],
      "recommended_zhi": ["午"],
      "recommended_xiao": ["马"]
    }
  }
}

技术说明

核心引擎 scripts/hexalotto.py(~880行 Python,零外部依赖)实现了:

  • 数据获取:通过 OpenClaw 的 web_search + web_fetch 获取最新开奖号码(见 Step 1+2)
  • 多源输入适配器:按彩种规则将原始号码统一为6爻起卦数字
  • 干支历法计算:基于参考日推算法,无需 lunar-python
  • 纳甲装卦:完整八宫纳甲地支分配
  • 六爻状态机:旺相休囚死 + 旬空/月破/日冲/六合/入墓/回头生/回头克/化合绊
  • 病药应期引擎:7条规则 + fallback
  • 加权评分:动爻3分/静爻1分 + 特殊状态加权
  • 双层输出路由:主号映射(红球/前区/平码) + 特殊球映射(蓝球/后区/特码)

参考文档

六爻理论速查:references/liuyao_guide.md

Usage Guidance
This skill appears coherent and purely entertainment-focused, implementing its own Python engine and using web_search/web_fetch to obtain public lottery results. Before installing, note: (1) the skill’s metadata does not declare that a Python runtime is required even though SKILL.md runs 'python scripts/hexalotto.py' — ensure the agent environment provides Python; (2) web_fetch will open third-party result pages (the skill lists preferred domains), so consider privacy — fetched pages and extracted numbers come from the web and could expose the query; (3) the included script is local and contains the mapping/tables (e.g., MARK6_PRESET_TABLES) — if you need different yearly tables you must edit the script; (4) this is entertainment only (the skill itself contains a disclaimer). If you want extra assurance, review the full scripts/hexalotto.py source for any unexpected behavior (network calls beyond input parsing are not present in the visible code) before enabling autonomous invocation.
Capability Analysis
Type: OpenClaw Skill Name: hexalotto Version: 2.0.1 The HexaLotto skill is a lottery prediction tool based on traditional Chinese divination (Liu Yao). It uses standard OpenClaw capabilities (web_search and web_fetch) to retrieve recent lottery results and processes them using a local Python script (scripts/hexalotto.py). The Python code is transparent, uses only standard libraries, and contains no evidence of malicious intent, data exfiltration, or unauthorized execution. The instructions in SKILL.md are strictly focused on the stated functionality and include appropriate disclaimers.
Capability Assessment
Purpose & Capability
Skill name/description match the included code and instructions: a six-yao/奇门 based lottery entertainment engine that fetches latest results and runs a local Python engine. One minor inconsistency: the SKILL.md requires running 'python scripts/hexalotto.py' but registry metadata lists no required binaries — the package should declare 'python' (or a Python runtime) as a required binary.
Instruction Scope
SKILL.md instructions stay within the stated purpose: use OpenClaw web_search + web_fetch to get the latest lottery numbers (or ask the user to supply them), then run the included local script to produce recommendations. Instructions do not request unrelated system files, credentials, or exfiltration actions.
Install Mechanism
No install spec (instruction-only) and the included Python script has no external dependencies. Nothing is downloaded from arbitrary URLs or installed system-wide.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The behavior (fetching public web pages and running local Python) is proportional to the stated purpose.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent platform privileges. It does not modify other skills or global agent config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hexalotto
  3. After installation, invoke the skill by name or use /hexalotto
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.1
- 移除了 scripts/fetch_lottery.py 文件,不再内置彩票开奖自动抓取脚本。 - 获取开奖号码流程全面调整,统一为 web_search + web_fetch 方式获取,并指导如何人工或半自动提取结果。 - SKILL.md 文档相应删去所有内置数据抓取脚本及指令,详细说明了新版获取数据、推演和展示的标准流程。 - 保留六爻推演核心功能及全部彩种适配,整体使用方式和推荐内容不变。 - 适配说明与操作流程更易于理解与执行,明确需要用户配合外部信息。
v2.0.0
支持双色球/大乐透/六合彩三彩种,同时推算主号+特殊球,回头生克检测,多源纯HTTP数据获取
Metadata
Slug hexalotto
Version 2.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is HexaLotto 六爻奇门测彩?

六爻奇门测彩 V2.0 (HexaLotto) — 多彩种六爻推演娱乐 Skill, 支持双色球(SSQ)、大乐透(DLT)、六合彩(MARK6)三大彩种。 同时推算主号(红球/前区/平码)与特殊球(蓝球/后区/特码特肖)。 当用户提到"算一卦"、"六爻测彩"、"预测双色球"、"预测大乐透"、 "六合彩特码"、"... It is an AI Agent Skill for Claude Code / OpenClaw, with 170 downloads so far.

How do I install HexaLotto 六爻奇门测彩?

Run "/install hexalotto" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is HexaLotto 六爻奇门测彩 free?

Yes, HexaLotto 六爻奇门测彩 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does HexaLotto 六爻奇门测彩 support?

HexaLotto 六爻奇门测彩 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created HexaLotto 六爻奇门测彩?

It is built and maintained by Eamonnn101 (@eamonnn101); the current version is v2.0.1.

💬 Comments