# 📐 METHODOLOGY: Ba Zhai Ming Jing System Reference

## 1. Ming Gua (命卦) Calculation — Authentic Formula

**Male:**
- Sum the four digits of the Gregorian birth year repeatedly until a single digit N (1–9).
- Ming Gua = 11 − N (if result = 10, use 1).
- Special rule: if 5, treat as 2 (Kun 坤).

**Female:**
- Sum the four digits of the Gregorian birth year to single digit N.
- Ming Gua = N + 4; reduce to single digit (subtract 9 if ≥10).
- Special rule: if 5, treat as 8 (Gen 艮).

**Trigram / Direction / Element / Group Table**

| Ming Gua | Trigram | Direction | Element | Group   |
|----------|---------|-----------|---------|---------|
| 1        | Kan 坎  | North     | Water   | East    |
| 2        | Kun 坤  | Southwest | Earth   | West    |
| 3        | Zhen 震 | East      | Wood    | East    |
| 4        | Xun 巽  | Southeast | Wood    | East    |
| 5 (M)    | Kun 坤  | Southwest | Earth   | West    |
| 5 (F)    | Gen 艮  | Northeast | Earth   | West    |
| 6        | Qian 乾 | Northwest | Metal   | West    |
| 7        | Dui 兌  | West      | Metal   | West    |
| 8        | Gen 艮  | Northeast | Earth   | West    |
| 9        | Li 離   | South     | Fire    | East    |

**East Four Lives (東四命)**: 1, 3, 4, 9
**West Four Lives (西四命)**: 2, 5, 6, 7, 8

## 2. House Gua (宅卦) & Sitting/Facing
Determine the house's innate trigram primarily from its sitting direction (座 — the mountain/back side) or by the direction opposite the main door (Qi mouth). Map that direction to the trigram table above. Example: Main door faces East → opposite (West) = Dui 兌 → West Four House.

## 3. Fu Yuan (福元) Compatibility
When the person's Ming Gua group matches the house Gua group, the residence provides a strong natural 'root of blessing.' Mismatched groups are still workable but require more precise internal star placement and remedies.

## 4. Da You Nian (大游年) Star Mapping
The classical heart of 《八宅明鏡》. For any given house Gua, the eight directions carry specific stars. The agent maintains the full matrix from the classic (生氣, 天醫, 延年, 伏位, 禍害, 五鬼, 六煞, 絕命) and applies it to the main door, bed position, stove, and other key features. When exact house-Gua mapping is ambiguous, fall back to the widely validated personal auspicious directions below while noting the classical foundation.

## 5. Personal Auspicious Directions (Practical Application Layer)
Derived from the Ming Jing tradition for bed head direction, desk facing, and door alignment:

| Kua | Sheng Qi (生氣) | Tian Yi (天醫) | Yan Nian (延年) | Fu Wei (伏位) |
|-----|----------------|---------------|-----------------|----------------|
| 1   | Southeast      | East          | South           | North          |
| 2   | Northeast      | West          | Northwest       | Southwest      |
| 3   | South          | North         | Southeast       | East           |
| 4   | North          | South         | East            | Southeast      |
| 6   | West           | Northeast     | Southwest       | Northwest      |
| 7   | Northwest      | Southwest     | Northeast       | West           |
| 8   | Southwest      | Northwest     | West            | Northeast      |
| 9   | East           | Southeast     | North           | South          |

## 6. Five-Element Remedy Principles
- Strengthen auspicious stars with productive-cycle elements (e.g., Water feeds Wood Sheng Qi).
- Weaken inauspicious stars with controlling-cycle elements (Metal wind chimes with 6 rods are classic for certain stars).
- Use color, lighting, plants, moving water, crystals, and tasteful symbolic objects. Prioritize beauty and livability.

## 7. The Ming Jing Diagnostic Flow (Internal)
1. Collect precise data.
2. Calculate all Ming Gua and house Gua.
3. Map current star influences on critical features.
4. Score alignment quality.
5. Generate tiered remedy plan focused on the client's stated goals (career, health, relationships, children, clarity).
6. Include activation timing and maintenance guidance.

This methodology produces results that feel both ancient and immediately practical.