Community研究与数据分析github.com

Johnson-Jia/liuyao-divination

六爻占卜 AI Agent 技能 + Python 排盘引擎|纳甲·六亲·暗动·墓库·三合·应期,含完整断卦方法论与验证卦例

liuyao-divination 是什么?

liuyao-divination is a Claude Code agent skill that 六爻占卜 AI Agent 技能 + Python 排盘引擎|纳甲·六亲·暗动·墓库·三合·应期,含完整断卦方法论与验证卦例.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add Johnson-Jia/liuyao-divination

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Liu Yao Divination · Six Lines Divination

Overview

Liu Yao is a traditional divination method based on the 64 hexagrams of the Yijing, analyzing each line in relation to the monthly and daily stem-branch. Core principle in one sentence:

First cast a correct board (mechanical layer), then make reasoning judgments (interpretation layer). Casting is done by the engine or strictly by hand following rules; interpretation revolves around the Body of Use, determining strength/weakness by month and day, and determining fortune/misfortune and timing based on movement/stillness, emptiness/breaking, transformation/change, and combination/tomb.

When to Use

Use: When the user provides a hexagram (hexagram name/moving lines/month-day, or three coins' line images) asking for a reading, fortune judgment, strength/weakness assessment, or a specific matter (love/wealth/career/lost items/health…); or when asking for an explanation of a board or a specific technique.

Do not use: Purple Star numerology, Eight Characters (Bazi), Qi Men Dun Jia, Plum Blossom Yijing (different systems, techniques do not apply); purely philosophical discussion of Yijing hexagram statements (that is classical studies, not Liu Yao Nail Armor judgment).

The Board — Casting Elements

A complete hexagram board must determine the following elements, none of which are optional:

ElementExplanationEngine/Document
Primary Hexagram / Transformed Hexagram64 hexagrams + the moving line determines the transformed hexagramreferences/01-装卦排盘.md
Self / Response LineSelf = the querent, Response = the other party/matter; determined by the Eight-Palace Self line tableSame
Six RelativesParent/Brother/Child/Wealth/Official Ghost, derived from the intrinsic palace's elementSame
Nail Armor (Stem-Branch)Each line is assigned a heavenly stem and earthly branch (Nail Armor method for the eight trigrams)Same
Six SpiritsAzure Dragon/Scarlet Bird/Gou Chen/Snake/White Tiger/Mystical Warrior, activated by the day stemSame
Monthly / Day Stem-BranchThe earthly branch of the month of the divination is the Monthly Branch; the day's heavenly stem and earthly branch are the Day Stem-Branch; they govern strength/weaknessreferences/03-旺衰月日.md
EmptinessCheck the Day Stem-Branch for the 'Xun Emptiness' (e.g., Jia-Shen Xun empties Wu-Wei…)references/04-动静暗破.md
Moving / Transformed LinesMoving lines change, and transformation brings advancement/retreat, transformation into emptiness/breaking, etc.references/05-进退神化.md

It is strongly recommended to use the engine for casting (python src/paipan.py …) — an error in casting invalidates the entire reading. The engine correctly handles Nail Armor, Six Relatives, Emptiness, Hidden Movement, Transformation Retreat, and Tomb Storage.

Interpretation Workflow — Eight-Step Divination

Cast board → Determine Body of Use → Body Strength/Weakness → Self Line State → Check Movement/Stillness/Hidden/Breaking → Check Transformations/Combinations/Tombs → Comprehensive Assessment → Determine Timing

Step 1: Determine the Body of Use (Most Important)

The Body of Use is the core of the entire hexagram; getting it wrong ruins everything. Common extraction methods are in the 'Body of Use Quick Reference' below. When the Body of Use falls on the Response Line, the Body of Use and Response Line overlap, pointing clearly.

Step 2: Strength/Weakness of the Body of Use (See Month and Day)

  • The Monthly Branch determines strength/weakness for the month; the Day Stem-Branch determines the day's engendering, controlling, clashing, and combining. Both have equal power.
  • Strength/Weakness looks at two layers: ① Five Element season strength (Flourishing/Success/Retiring/Sick/Death from the monthly order); ② Twelve Longevities (Growth/Prosperity/Fetus/Grave…).
  • Month engendering or matching = strong; month controlling or day clashing = weak. Strength/Weakness determines if the Body of Use 'has power', not the direction of fortune — the direction comes from engendering/controlling relationships.

Step 3: Self Line State (The Querent Themselves)

Check the Self line's Six Relative, strength/weakness, whether it enters tomb/emptiness/breaking, whether it moves or transforms forward/back. The Self line is 'you'; if it retreats or is weak, you are not in good shape.

Step 4: Check Movement, Stillness, Hidden Movement, Emptiness, Monthly Breaking, Daily Breaking

  • Moving line: overt movement, power is manifest, indicates change.
  • Hidden Movement: a still line being impacted by the day stem-branch; if strong, it is hidden movement (activated, useful); if weak/retiring, it is daily breaking (scattered, useless). ⭐ Easiest to misjudge, see critical analysis below.
  • Emptiness: lines that fall into the Xun emptiness; strong lines are not truly empty, weak lines remain empty. Moving into emptiness, or emptiness meeting a clash each has its resolution. The monthly and day stem-branches themselves are not considered empty.
  • Monthly Breaking: the line that is impacted by the monthly branch (e.g., month of Wei impacts Chou).
  • Daily Breaking: the line impacted by the day stem-branch (e.g., day of Mao impacts You) — but if that line is strong, it is hidden movement, not daily breaking.

Step 5: Check Transformation Forward/Backward, Transformed Lines

Changes of a moving line: transformation forward/backward (same element, earthly branch progress/regress), transformation into emptiness/breaking, transformation with return engendering/controlling, etc. Transformation forward indicates growth and progress; transformation backward indicates decline and retreat.

Step 6: Check Triple Combinations, Six Combinations, Tomb Storage

  • Triple Combination: Shen-Zi-Chen/Hai-Mao-Wei/Yin-Wu-Xu/Si-You-Chou; when formed, the combined force is great.
  • Entering Tomb: a line enters the elemental tomb storage (Wood tomb Wei, Water tomb Chen, Fire tomb Xu, Metal tomb Chou, Earth tomb Chen). Entering tomb indicates restraint, temporary inactivity; tomb storage requires a clash to exit.

Step 7: Comprehensive Assessment

Synthesize: the engendering/controlling relationship between Body of Use and Self line (Body engendering Self = auspicious/strengthens me, controlling Self = depletion), strengths/weaknesses from all angles, movement/stillness/emptiness/breaking/tombs/combinations, and the general meaning of the primary and transformed hexagrams. Provide a layered, conditional conclusion, not just a single 'auspicious/inauspicious' verdict.

Step 8: Determine Timing

  • Body of Use/Self line weak and awaiting order: wait for the month that makes it strong (e.g., Wealth line Hai water weak, wait for Hai/Zi months).
  • Entering tomb and waiting for clash to exit: e.g., if entering Wei tomb, wait for Chou month (Chou clashes Wei).
  • Emptiness waiting to be filled/clashed into reality.
  • Hexagram statements provide cycle hints (e.g., Fu hexagram 'return after seven days').

Critical Distinctions — Key Analysis (Easy to Err)

⭐ 1. Hidden Movement vs. Daily Breaking (Most Frequent Error)

A still line is impacted by the day stem-branch:

  • Strong (month engenders or matches, in season) → Hidden Movement: activated, can engender/control other lines, useful, indicates someone secretly helping/exerting force.
  • Weak/Retiring (month controls, day drains) → Daily Breaking: already weak and further scattered, useless.

Example: Child/Descendant You metal in Wei month (Wei earth engenders metal, metal is strong), encountering Mao day clash → Hidden Movement (engenders Wealth), not daily breaking. A misjudgment leads to the opposite conclusion.

2. 'Noble' ≠ 'Strong'

A line falling on the fifth 'Sovereign' position (Nine-Five, nobility) means status is noble, prominent, valued (noble); but its power level (strong/weak) still depends on month-day engendering/control. Sovereign position but suppressed by month-day = noble but temporarily weak — do not conclude 'strong' just because of high status.

3. Empty Tomb / Exiting Tomb

  • Empty Tomb (the tomb storage branch exactly falls into Xun emptiness): the tomb is not solid, the binding is illusory, easy to escape, not a dead end.
  • Exiting tomb relies on clashing the tomb (e.g., Wei tomb awaiting Chou clash), not just waiting for time.

4. Direction of Advance/Retreat Spirits (Same Element, Earthly Branch)

  • Advance Spirit: Yin→Mao, Si→Wu, Shen→You, Hai→Zi, Chou→Chen→Wei→Xu
  • Retreat Spirit: Mao→Yin, Wu→Si, You→Shen, Zi→Hai, Xu→Wei→Chen→Chou
  • Advance indicates growth and progress; retreat indicates decline and regression.

5. Hidden Movement of Source Spirit / Inhibitor Spirit

  • Source Spirit (engenders the Body of Use) hidden movement → secretly assists the Body of Use, auspicious.
  • Inhibitor Spirit (controls the Body of Use) hidden movement → secretly weakens the Body of Use, inauspicious.
  • When judging hidden movement, always first determine whether that line is Source or Inhibitor.

6. Monthly Breaking vs. Daily Breaking

  • Monthly Breaking = impacted by the monthly branch (controls the month).
  • Daily Breaking = impacted by the day stem-branch (controls the day); but strong lines meeting a daily clash is hidden movement, not breaking.

7. ⭐ Triple Combination 'Virtual Assembly' vs. True Formation

For a Triple Combination to be a true situation, all three lines must be moving / two moving and one still / moving and changing lines across inner/outer hexagrams forming a set. A single moving line, or merely borrowing month-day to assemble, is only a 'virtual one awaiting use combination' — it can be considered a tie, a supplementary hint for combined intention, but do not judge it as 'the situation is formed, combined transformation engenders/controls Self' with decisive strength; it needs a future month to be filled before it exerts force. The most common error is magnifying a virtual combination into a real assembled force.

8. Clashing the Tomb is Two-Way (Dialectic of Timing)

Clashing the tomb to exit benefits the 'entering tomb' line, but the branch that clashes the tomb may simultaneously deplete the Body of Use (e.g., clashing Wei tomb with Chou, Chou earth controls water, so Wealth Hai water weakens). Timing should take the intersection of 'Body of Use gets its order ∩ tomb can be clashed', not just see the benefit of exiting tomb. Do not confuse tomb assignments: Water tomb Chen, Metal tomb Chou (not Chou is Water tomb).

9. ⭐ Four Spirits (Body/Source/Inhibitor/Enemy) and 'Effective/Ineffective'

Take the element of the Body of Use line as the benchmark for the Four Spirits: Source = engenders Body, Inhibitor = controls Body, Enemy = controls Source/engenders Inhibitor. Source/Inhibitor Spirit must be effective to engender/control the Body of Use — Source weak/retiring, monthly breaking, retreating transformation, entering tomb means 'engendering but not engendering'; Inhibitor weak/retiring, monthly breaking, retreating transformation, entering tomb means 'though moving, does not control'. When judging the Four Spirits, always simultaneously judge their effectiveness or lack thereof; do not rejoice at seeing Source or fear at seeing Inhibitor. Moreover, the Body of Use must have a root; without a root, even an effective Source cannot easily engender, and an ineffective Inhibitor is still not to be delighted. See references/09-四神与有力无力.md for details.

10. Reciprocal / Supine Chant / Hexagram Transformation Engendering/Control

Hexagram transformation controlling the primary hexagram = great misfortune (regardless of Body's strength/weakness, it is inauspicious); Reciprocal Chant (hexagram Mutually Clashing) indicates repeated turbulence (success/failure, gain/loss, coming/going); Supine Chant (hexagram transforms but earthly branch element unchanged) indicates stagnation and moaning. All three indicate overall trends and oscillation; for long-term matters, they must be checked. See references/10-卦变反伏.md.

Quick Reference — Tables

Body of Use Extraction (Common)

MatterBody of Use
Parents, elders, documents, house, vehicle, studiesParent
Brothers, sisters, peers, competitorsBrother
Children, juniors, subordinates, medicine, monks, petsChild/Descendant
Wife, girlfriend, money, property, grainWealth
Husband, boyfriend, office, job, exams, illness, thief, worryOfficial Ghost
Divining for others, no specific Six Relative matterLook at Response Line

Male divining love uses Wealth as Body of Use; female divining love uses Official Ghost as Body of Use. For self-divination of fortune, use the Self line as primary.

Five Element Season Strength (Based on the monthly order's commanding element)

The commanding element is Flourishing; that which engenders the commanding element is Successful (second strongest); that which the commanding element engenders is Retiring; that which controls the commanding element is Sick; that which the commanding element controls is Dead.

Twelve Longevities (Element Tomb Storage Quick Reference)

ElementGrowth (Chang Sheng)Prosperity (Di Wang)TombDeath (Jue)
WoodHaiMaoWeiShen
FireYinWuXuHai
MetalSiYouChouYin
WaterShenZiChenSi

Eight Trigrams Nail Armor (Heavenly Stems)

Qian inner Jia, outer Ren | Kun inner Yi, outer Gui | Kan Wu | Li Ji | Zhen Geng | Xun Xin | Gen Bing | Dui Ding

Six Spirits Activation (Day Stem starts the first line)

Jia Yi → Azure Dragon | Bing Ding → Scarlet Bird | Wu → Gou Chen | Ji → Snake | Geng Xin → White Tiger | Ren Gui → Mystical Warrior

Xun Emptiness Quick Reference

Jia-Zi Xun empties Xu Hai | Jia-Xu Xun empties Shen You | Jia-Shen Xun empties Wu Wei | Jia-Wu Xun empties Chen Si | Jia-Chen Xun empties Yin Mao | Jia-Yin Xun empties Zi Chou

Four Spirits (Based on the element of the Body of Use line)

Source = engenders Body | Inhibitor = controls Body | Enemy = controls Source / engenders Inhibitor | Idle = no direct engendering/control. Example: Body is Metal → Source Earth · Inhibitor Fire · Enemy Wood. Source/Inhibitor must be effective to engender/control (weak/retiring/monthly breaking/retreating transformation = does not engender or control).

True Emptiness (Xun Emptiness + seasonal death, completely empty)

Spring Earth · Summer Metal · Autumn Wood · Winter Fire; Seasonal months (Chen Xu Chou Wei) have no true emptiness.

Timing Mnemonic

Still lines await filling clash | Moving lines await value combination | Strong lines await tomb clash | Weak lines await engendering strength | Tomb awaits clash (clash tomb to exit) | Combination awaits clash | Breaking awaits filling | Emptiness awaits filling/clash | Advance transformation awaits value/combination, retreat transformation avoids value clash. See references/08.

Common Mistakes — Frequent Errors

ErrorCorrect Interpretation
Strong line meeting daily clash is judged as daily breakingStrong line meeting daily clash is hidden movement; weak/retiring meeting clash is daily breaking
Fifth line Sovereign position = strongest powerSovereign position is noble (status); strength/weakness still depends on month-day
Entering tomb is always inauspiciousEmpty tomb is easy to escape; tomb awaiting clash to exit may not be inauspicious
Treating monthly branch as emptyMonthly and day stem-branches are not considered empty; only lines in the hexagram that fall into Xun emptiness
Wei earth 'engendering and supporting' WoodEarth does not engender Wood (Wood controls Earth); Earth to Wood is tomb storage, not support
Retreating transformation has single causeRetreat indicates intention to retreat, but causes are multiple (Official Ghost + entering tomb + retreat…), do not attribute to one factor
A single 'auspicious/inauspicious' verdictShould give layered, conditional conclusion + timing
Widely discussing emptiness when no line is emptyFirst check all hexagram lines for Xun emptiness; if none, emptiness is not a major factor

Using the Engine — Cast with the Engine

# Cast board
python src/paipan.py --hexagram "Earth over Lake, Proceeding" --moving 2 --month Wei --day Mao
# Or use Python
from liuyao import cast_board
board = cast_board(hexagram="Earth over Lake, Proceeding", moving_line=2, month="Wei", day="Mao")

The engine output already includes: Six Relatives, Nail Armor, Six Spirits, Self/Response lines, movement/transformation, Emptiness, Monthly Breaking, Daily Breaking, Hidden Movement, Transformation Advance/Retreat, Entering Tomb. Before interpreting, verify that the engine output matches the given problem, then follow the above Eight-Step procedure.

Deep References — In-Depth Resources

Disclaimer

Liu Yao is a traditional cultural and divination art, not science. It divines 'tendency, image, timing', not factual prophecy. Conclusions must be combined with rational judgment in reality and do not replace professional advice.

相关技能