展示HN:命运 – Claude 代码的算命技能
Show HN: Destiny – Claude Code's fortune Teller skill

原始链接: https://github.com/xodn348/destiny

## 命运:Claude个性化命理插件 “命运”插件为Claude提供独特的个性化命理体验,基于古典东亚形而上学——而非随机生成。只需一次性设置,提供出生日期、时间、城市和性别,即可使用`/destiny`指令获取每日运势。 每次运势提供两部分预测:**今日运势**,包含星级评分(爱情、金钱等)、卦象和幸运元素,以及**命理解读**,概述性格、人生轨迹和当前十年运程——全部以通俗易懂的语言呈现。 该插件使用四柱命理系统、永恒的农历和易经,*计算*出精确的星盘数据。Claude随后根据既定的解读规范*解读*这些数据。这确保了核心结果的一致性,同时允许自然语言的变化。 主要功能包括语言选项、资料重置和快速通用运势。与典型的算命应用不同,“命运”优先考虑精确的计算,并利用Claude在解读方面的优势,提供可验证且易于理解的体验。

## Claude Code 的“Destiny”插件 一篇新的 Hacker News 帖子介绍了“Destiny”,这是一个为 Claude Code 设计的插件,它基于传统的东亚占星术提供个性化的运势解读。该插件由 xodn348 创建,采用双层系统以确保准确性。 首先,一个 Python 脚本计算占星数据(出生图、日柱、卦象)——确保对同一人以及同一天产生一致的结果。其次,Claude 利用这些*固定*的数据生成解读,遵循既定的解读规范,而不是依赖可能不准确的 LLM 生成。 用户只需输入他们的生日,然后使用 `/destiny` 命令获取每日运势。创建者鼓励反馈,并欢迎用户如果喜欢这个体验就给一个“星标”。帖子还包括关于 YC Summer 2026 申请的提醒。
相关文章

原文

destiny — a real fortune skill for Claude Code

A real fortune-telling skill for Claude Code.
Not a horoscope generator. The numbers are computed; only the interpretation is generative.


/plugin marketplace add xodn348/destiny
/plugin install destiny@destiny-marketplace
/destiny

That's it. The first call asks for your birth date, time, city, and gender — once. Every call after is just /destiny.

Claude Code
   │
   ▼
destiny plugin            ← installed once via /plugin install
   │
   ▼
/destiny skill            ← invoked any time
   │
   ▼
your birth date           ← asked once, saved to ~/.destiny/profile.json
   │
   ▼
destiny of the day        ← personalized: today's fortune + life reading

Each /destiny produces a two-section reading:

🔮 Today's Fortune — a short prose reading of today against your birth chart, with five-category stars (overall, love, money, career, health), a hexagram drawn for this moment, and a lucky number / color / direction.

🌌 Life Reading — your character, the broad arc of your life, and where you are in your current 10-year period. Plain language, no untranslated jargon.

How it works (the principles in 60 seconds)

This skill uses three pieces of classical East Asian metaphysics, each computed deterministically from your birth date and time:

  • Four Pillars (the eight-character birth chart) — Your year, month, day, and hour of birth each map to a pair of Chinese characters (one "Heavenly Stem" + one "Earthly Branch") drawn from a 60-cycle calendar that has run continuously for over two millennia. The eight characters together describe your "elemental fingerprint": which of the five elements (Wood / Fire / Earth / Metal / Water) dominate, which are missing, and how they relate. The character of your day-of-birth is your "core self".

  • Perpetual lunar calendar — The engine that converts solar dates to the eight characters. It handles solar terms (the 24 climate divisions of the year), lunar/solar conversion, true-solar-time correction by birthplace longitude, and Korean Daylight Saving for births in 1987–88. Equivalent to the calendar published by Korea's national astronomical observatory.

  • The I-Ching (Book of Changes) — A 3,000-year-old divination system of 64 hexagrams. We draw one hexagram for the present moment using plum-blossom time divination — an algorithm by the Song-dynasty scholar Shao Yong that derives the hexagram from the current lunar date and hour. Hexagram texts are from James Legge's 1899 public-domain translation.

The skill computes today's "day pillar" the same way and analyzes its relationship with your birth chart — five-element generation/control cycles, branch harmonies and clashes — to produce the reading.

What's actually computed (vs. interpreted by Claude)

Layer Source
Your eight-character birth chart lunar-python — pure-Python perpetual calendar
True solar time correction longitude offset from local standard time meridian (1° = 4 min)
Korean DST handling (1987–88) automatic
Today's day pillar lunar-python
Five Elements + Ten Gods relationships classical 60-cycle lookup tables
Branch harmonies, clashes, punishments classical lookup tables
I-Ching hexagram for this moment plum-blossom time divination
Hexagram corpus King Wen ordering, Legge (1899) public-domain translation
Lucky number / color / direction derived from your day-of-birth's element + the hexagram
Star ratings, character sketch, life arc, today's advice Claude, applying classical reading conventions to the data above

Same person + same day always produces identical script output. Only the prose phrasing changes between calls.

No external APIs. No scraped sites. Everything runs locally.

  • /destiny — full reading (auto-loads saved profile)
  • /destiny today — only today's fortune
  • /destiny life — only life reading
  • /destiny reset — delete saved profile and start over
  • /destiny in english|korean|japanese|chinese|spanish — switch language
  • /destiny born YYYY-MM-DD HH:MM <city> <m|f> — one-off without saving
  • /destiny quick — generic daily, no personal data

Most fortune apps either (a) compute the chart correctly but lock interpretation behind a paywall, or (b) let an LLM hallucinate the whole thing and call it astrology. This skill keeps the deterministic part deterministic — you can verify your eight characters against any traditional calendar source — and lets Claude do what it's actually good at: applying centuries-old reading conventions to that fixed data.

Default output is English with every classical term unpacked into plain language. A reader with zero exposure to East Asian astrology should follow it. Output switches to Korean / Japanese / Chinese / Spanish on request.

  • Python 3.10+
  • lunar-python (MIT) — pure-Python perpetual lunar calendar
  • I-Ching: King Wen ordering + Legge (1899) public-domain judgments
  • Claude Code plugin format

MIT

联系我们 contact @ memedata.com