by Brhiza
八字、紫微、星盘、六爻、梅花、奇门、大六壬、小六壬、塔罗、雷诺曼、灵签、择日一站式排盘,输出结构化提示词与数据。提供公开 API、MCP Server 与 skill。
# Add to your Claude Code skills
git clone https://github.com/Brhiza/mingyuGuides for using mcp servers skills like mingyu.
Last scanned: 5/30/2026
{
"issues": [
{
"type": "npm-audit",
"message": "qs: qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-05-30T17:01:25.949Z",
"npmAuditRan": true,
"pipAuditRan": true
}命语是一个算命、占卜、择日的提示词生成项目,目标是把排盘、起卦、抽牌、结构化数据和 AI 提示词连接成一条清晰可复用的流程。让所有人都可以快速的生成专业可靠的排盘信息,而不是依靠模糊的关键词和无脑堆叠专业词汇,让AI占卜相对更加可靠,享受术数的神秘智慧。
你可以在网页端快速完成排盘或占卜,时间类占卜支持使用当前时间或自定北京时间,并复制提示词给你常用的所有 AI 工具继续解读;对于移动端用户还可以使用分享功能快速跳转;也可以通过公开 API、MCP Server 或 skill,把命语的排盘与提示词能力接入自己的应用、工作流和智能体系统。
项目网页目前按“排盘、合盘、占卜、择日”组织:排盘包含八字、紫微、八宅、七政四余,占卜包含六爻、梅花易数、奇门遁甲、大六壬、小六壬、太乙神数、塔罗牌、雷诺曼和三山国王灵签。生肖流年继续作为底层算法与 API / MCP 能力供其他系统复用,不再提供独立网页入口。
线上体验:https://aov.cc
公开 API:https://aov.cc/api/v1/manifest
OpenAPI:https://aov.cc/api/v1/openapi.json
公开 skill:https://aov.cc/skills/aov-mingyu-api/SKILL.md
以上 aov.cc 是本项目的官方线上实例;如果你 fork 后部署到自己的 Cloudflare Pages 或其他域名,公开 API 会按实际访问域名生成元数据和 OpenAPI 地址。
iztro 的完整命盘,支持本命、大限、流年、流月、流日、流时等数据范围,支持三合派、飞星派、四化派流派指引。mingyu-core/foundation,线上提供 /foundation/capabilities、/foundation/ganzhi、/foundation/wuxing。mingyu-core/calendar,线上提供 /calendar/true-solar-time 便捷换算接口。customDate 传入带时区的 ISO 8601 时间。2025年第十六届全球算命师比赛 评测资料,包含原题、8 份提示词和 40 题正确答案。命语提供三种集成方式:公开 API、MCP Server、公开 skill。API 和 MCP 都支持一站式返回 result 与 prompt;六爻、梅花易数、奇门遁甲、大六壬、小六壬还支持通过 customDate 指定起卦或排盘时间。README 只保留快速入口和安装方式,接口参数、客户端配置和调用示例请跳转到对应文档。
无需安装,直接调用线上接口:
https://aov.cc/api/v1
详细文档:docs/api.md
OpenAPI:https://aov.cc/api/v1/openapi.json
命语内置 MCP Server,让支持 MCP 的 AI 客户端直接调用本地排盘引擎,不需要用户手动复制 JSON 或提示词。
快速安装:
git clone https://github.com/Brhiza/mingyu.git
cd mingyu
npm install
启动命令:
npm run mcp
详细文档:mcp/README.md
这个 skill 面向 AI 代理和开发者,说明如何通过 aov.cc 公开 API 完成排盘、占卜和提示词生成。
快速安装:
npx skills add Brhiza/mingyu --skill aov-mingyu-api -g -y
快速读取:
让你的 AI 代理读取这个 skill:
https://aov.cc/skills/aov-mingyu-api/SKILL.md
如果当前环境无法使用 npx skills,也可以手动创建目录后保存:
mkdir -p ~/.codex/skills/aov-mingyu-api
curl -L https://aov.cc/skills/aov-mingyu-api/SKILL.md \
-o ~/.codex/skills/aov-mingyu-api/SKILL.md
Windows PowerShell:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.codex\skills\aov-mingyu-api"
Invoke-WebRequest "https://aov.cc/skills/aov-mingyu-api/SKILL.md" `
-OutFile "$env:USERPROFILE\.codex\skills\aov-mingyu-api\SKILL.md"
详细文档:public/skills/aov-mingyu-api/SKILL.md
元数据发现:https://aov.cc/.well-known/aov-mingyu-api.json
mingyu-core命语的所有命理排盘与占卜算法已抽取为独立 npm 包 mingyu-core,本仓库以 pnpm workspace 形式同时维护应用与算法包。
mingyu/
├── packages/
│ └── core/ # mingyu-core 算法包(独立发布到 npm)
└── src/ # 应用层(React + Vite + MCP)
安装:
npm install mingyu-core
使用示例:
// 八字排盘
import { baziCalculator } from 'mingyu-core/bazi';
const result = baziCalculator.calculateBazi({
year: 1990,
month: 1,
day: 1,
timeIndex: 5,
gender: 'male',
});
// 占卜算法
import { generateLiuyao } from 'mingyu-core/divination/liuyao';
import { generateQimen } from 'mingyu-core/divination/qimen';
import { generateLiuren } from 'mingyu-core/divination/liuren';
// 历法工具
import { getDivinationTime, getVoidBranches } from 'mingyu-core/calendar';
// 类型
import type { BaziChartResult, QimenData, LiurenData } from 'mingyu-core/types';
包覆盖能力:八字(含调候用神、格局、神煞、大运、命卦、小运、排盘边界预警、中国夏令时校正及透干根气、十神结构、合化评估等增强分析)、奇门遁甲(含节令背景、复合格局、方位应期)、六爻、大六壬、梅花易数、小六壬、紫微斗数、西洋占星、择日、雷诺曼、塔罗、三山国王灵签,以及八宅、生肖流年、太乙、七政四余和干支、五行、方位、神煞公共模块。
⚠️ 免责: 该包仅提供算法实现,所有结果仅供参考与学习娱乐,不构成任何命理预测或专业建议。
算法包详细文档:packages/core/README.md
| 类别 | 技术 |
|---|---|
| 前端 | React 19、TypeScript 5.9 |
| 构建 | Vite 7 |
| 路由 | React Router 7 |
| 包管理 | pnpm workspace(应用层 + mingyu-core 算法包) |
| 部署 | Cloudflare Pages、Pages Functions、Docker |
| 历法与星盘 | tyme4ts、iztro、celestine |
| 数据校验 | zod |
| 测试 | Node.js 原生测试运行器 |
| AI 集成 | MCP Server、OpenAPI、skill 文档 |
mingyu/
├── functions/ # Cloudflare Pages Functions 公开 API 和公开发现元数据
├── mcp/ # MCP Server
├── packages/
│ └── core/ # mingyu-core 独立算法包(发布到 npm)
│ ├── src/bazi/ # 八字引擎与增强分析
│ ├── src/divination/ # 占卜算法(六爻/奇门/六壬/梅花等)
│ ├── src/calendar/ # 历法工具
│ └── src/types/ # 共享类型
├── public/
│ └── skills/ # 公开 skill 文档
├── server/ # Docker 自部署服务入口
├── src/
│ ├── components/ # 页面组件与通用 UI
│ ├── lib/
│ │ ├── divination/ # 占卜引擎与提示词拼装
│ │ ├── full-chart-engine/ # 八字、紫微完整排盘入口
│ │ ├── iztro/ # 紫微运行时适配
│ │ ├── public-api/ # 公开 API handler
│ │ └── ziwei-prompts/ # 紫微提示词模块
│ ├── pages/ # 输入页、结果页、历史页、教程页
│ ├── types/ # 领域类型定义
│ ├── utils/ # 页面层工具,核心算法统一来自 mingyu-core
│ └── workers/ # 紫微相关 Web Worker
└── tests/ # 单元测试与集成测试
本项目支持本地开发、Cloudflare Pages 和 Docker 三种常用运行方式。AI 相关变量也放在这里,部署时可以一起配置。
本项目使用 pnpm workspace 管理应用层与 mingyu-core 算法包,需先安装 pnpm:
npm install -g pnpm
安装依赖:
pnpm install
启动网页开发服务:
pnpm dev
启动 MCP Server:
pnpm mcp
构建生产版本:
pnpm build
运行测试:
pnpm test
单独构建 mingyu-core 算法包:
pnpm --filter mingyu-core build
类型检查 MCP 与共享源码:
npx tsc --project mcp/tsconfig.json --noEmit
推荐部署到 Cloudflare Pages,静态页面由 Pages 托管,/api/v1/* 由 Pages Functions 处理。
Pages 构建设置:
| 配置项 | 值 |
|---|---|
| Build command | pnpm build |
| Build output directory | dist |
| Root directory | 仓库根目录 |
| Node.js version | 建议 22 |
如果 Cloudflare 没有自动启用 pnpm,可在环境变量中添加:
PNPM_VERSION=11
公开 API 路由来自 functions/api/v1/[[path]].ts,部署后可访问:
https://你的域名/api/v1/manifest
https://你的域名/api/v1/openapi.json
https://你的域名/.well-known/aov-mingyu-api.json
如果绑定的域名是 aov.cc,上线后检查:
https://a
mingyu is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Brhiza. 八字、紫微、星盘、六爻、梅花、奇门、大六壬、小六壬、塔罗、雷诺曼、灵签、择日一站式排盘,输出结构化提示词与数据。提供公开 API、MCP Server 与 skill。. It has 181 GitHub stars.
Yes. mingyu passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/Brhiza/mingyu" and add it to your Claude Code skills directory (see the Installation section above).
mingyu is primarily written in TypeScript. It is open-source under Brhiza on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mingyu against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars