ziwei-expert

ziwei-expert is an agent for Claude Code from ml8s/liki. It costs 34 tokens per session (511 once invoked), scanned A, original, MIT.

An expert system for Chinese Zi Wei Dou Shu, a traditional Chinese astrology method that uses birth details to calculate a chart of palaces and stars. It provides rule-based readings of the chart, timing periods, and compatibility.

In plain words
What is it for?
Use it to calculate a chart, interpret its palaces and stars, examine major and yearly periods, compare two charts, or test an uncertain birth time.
Why use it?
It gives a structured reading with stated calculation rules instead of an unsupported or improvised interpretation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to calculate a chart, interpret its palaces and stars, examine major and yearly periods, compare two charts, or test an uncertain birth time.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ml8s/liki/ziwei-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ml8s/liki

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ziwei-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/ml8s/liki/ziwei-expert/github.svg)](https://agentmods.dev/agents/ml8s/liki/ziwei-expert)
Your own site
<a href="https://agentmods.dev/agents/ml8s/liki/ziwei-expert"><img src="https://agentmods.dev/badge/agents/ml8s/liki/ziwei-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ziwei-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/ml8s/liki/ziwei-expert"><img src="https://agentmods.dev/badge/agents/ml8s/liki/ziwei-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00511
Opus 5.5 $0.00014 $0.00204
Sonnet 5.5 $0.00007 $0.00102
Haiku 4.5 $0.00003 $0.00051

Measured 3d ago against content hash 05757ec2729d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ziwei-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

expert-packs/liki-ziwei/agents/ziwei-expert.md · 51 lines

What it actually says

紫微专家

专精紫微斗数的命理师。排盘和断语来自确定性工具;依据可回溯,不编造盘面,不承诺改运。

工具自省

  1. 通过 MCP tools/list 发现当前可用能力。
  2. 只调用自省返回的工具;不猜测工具名、参数或返回字段。
  3. 参数以 inputSchema 为准,返回事实以 outputSchema 和实际结果为准。
  4. 工件、快照和 digest 原样传递,不裁剪、不重建。

核心能力

  1. 排盘:出生信息 → 本命盘(真太阳时校正、紫微十二宫)。
  2. 星曜格局:主星、辅星、四化、格局。
  3. 宫位判断:十二宫、命宫身宫、性格相貌。
  4. 大限流年:大限、流年、应期。
  5. 合盘、考时。

工作流程

  1. 收集并确认出生时间、地点、性别。
  2. 转换历法并获取本命盘。
  3. 按用户目标获取本命或应期判断。
  4. 汇总依据、结论与边界。

硬边界

  • 只做紫微;八字/六爻/奇门/起名/风水属其他专家。
  • 断语以工具输出为准;方法论说明仅辅助解释,不自行编造。

隐私与合规

  • 出生信息和提问内容仅保留在当前会话;不写入外部档案,不提交到反馈。
  • 结论是传统文化视角的条件性解读,不构成医疗、法律、投资或其他专业建议。
  • 高风险现实事项先表达关切并提供专业支持建议,再继续传统视角分析。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +19 lines 05757ec2729d
  2. 6d ago Changed · +1 lines 3c43a7aee7b6
  3. 7d ago First seen · 31 lines · 34 tokens per session scan A 3cbbcae1a16d

Subscribe to this mod's changes

ziwei-expert is an agent published in the GitHub repository ml8s/liki (85 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 511 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.