A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
AI 八字 + 紫微斗数排盘与综合印证 Skill:算法精准排盘(不靠 LLM 猜),三种分析模式,一键生成水墨风 HTML 命盘海报。兼容 Claude / Codex / Cursor / Workbuddy 等 SKILL.md Ag
AI 八字 + 紫微斗数排盘与综合印证 Skill
精准排盘(不靠 LLM 猜)· 三种分析模式 · 一键生成水墨风 HTML 命盘海报
简体中文 | English
综合印证海报示例(合成命主,仅供展示)
一个遵循 SKILL.md 开放标准 的命理分析 Skill,可装入 Claude Code / Claude Desktop / Codex / Cursor / Hermes / OpenClaw 等支持该标准的 AI Agent。
它做三件大模型单独做不好的事:
git clone https://github.com/dzcmemory-web/bazi-ziwei-skill.git
cd bazi-ziwei-skill/calculator
npm install
需要 Node.js >= 18。算法层依赖仅一个:
lunar-typescript(MIT)。
把整个 bazi-ziwei-skill/ 文件夹放进 Agent 的 skills 目录:
| Agent | skills 目录 |
|---|---|
| Claude Code / Claude Desktop | ~/.claude/skills/bazi-ziwei/ |
| Codex | ~/.codex/skills/bazi-ziwei/ 或项目内 AGENTS.md 引用 |
| Cursor | 项目 .cursor/ 规则引用 |
| Hermes Agent | ~/.hermes/skills/bazi-ziwei/ |
| OpenClaw | 其 skills 目录 / ClawHub 本地安装 |
Agent 会自动读取 SKILL.md 并按需调用。
装好后,直接对 Agent 说出生时间即可:
我是 2000 年 1 月 1 日中午 12 点出生的男生,帮我看下命盘。
Agent 会:
详细流程见 SKILL.md,测试方法见 TEST-GUIDE.md。
cd calculator
# 排盘 → JSON
node dist/run-chart.js --year=2000 --month=1 --day=1 --hour=12 --minute=0 --gender=male > chart.json
# JSON → 可读文本盘
node dist/dump-text.js --input=chart.json --output=chart.txt
# JSON + 分析 JSON + 模板 → HTML 海报
node dist/render.js --chart=chart.json --analysis=analysis.json \
--template=../templates/report-zonghe-poster.html --output=report.html --currentYear=2026
仓库自带一份合成示例(2000-01-01 男,非真人):
examples/sample-chart.json — 算法层排盘输出examples/sample-chart.txt — 文墨天机风文本盘examples/sample-analysis.json — 综合印证分析(示例)examples/sample-report.html — 综合印证海报成品,下载后用浏览器打开即可预览效果bazi-ziwei-skill/
├── SKILL.md Skill 主入口(Agent 读这个)
├── TEST-GUIDE.md 测试指南(5 条用户路径)
├── calculator/
│ ├── run-chart.ts 排盘入口:生辰 → JSON
│ ├── dump-text.ts JSON → 文墨天机风文本盘
│ ├── render.ts JSON + 分析 + 模板 → 单文件 HTML
│ ├── yiqi-core/ 排盘核心算法(vendored from Yiqi, MIT)
│ └── bazi-enrich/ 格局/旺衰/调候/刑冲合害 补层算法
├── prompts/
│ ├── bazi-prompt.md 八字独立分析(长文)
│ ├── ziwei-prompt.md 紫微独立分析(长文)
│ ├── zonghe-yinzheng-prompt.md 综合印证(长文)
│ └── zonghe-poster.md 综合印证(海报 JSON 输出)
├── templates/
│ └── report-zonghe-poster.html 综合印证海报模板(占位符)
└── examples/
├── sample-chart.json 合成示例排盘
└── sample-chart.txt 合成示例文本盘
生辰 ──> run-chart.ts ──> chart.json ──> dump-text.ts ──> chart.txt
(算法层精准排盘) (LLM 友好文本)
│
┌───────────────────────────┤
▼ ▼
长文提示词 海报提示词
(Markdown 散文) (严格 JSON 输出)
│
render.ts + 模板
▼
单文件 HTML 海报
关键设计:LLM 只负责"分析",不负责"排盘"和"画 HTML"。排盘交给确定性算法,HTML 视觉交给固定模板,LLM 产出的结构化内容填进模板槽位——三者各司其职,互不污染。
NOTICE问题反馈、合作或交流,欢迎邮件:dzcmemory@gmail.com
如果这个项目对你有帮助,欢迎点一个 ⭐ Star 支持。
本项目基于传统八字与紫微斗数理论框架,仅供文化研究与娱乐参考,不构成医疗、投资、婚姻、法律等任何决策依据。命运由个人选择与客观环境共同塑造。
MIT © 2026 dzcmemory-web
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project