Vedic astrology

From ankitjh4/indic-ai-skills · View interactive version

Vedic astrology is an AI agent skill from the GitHub repository ankitjh4/indic-ai-skills. Complete Vedic astrology chart generation and interpretation. Generate birth charts (D1-D60), calculate Panchanga, Shadbala, Vimshottari Dasha, Ashtakavarga, and provide interpretations using Krishnamurthi Paddhati (KP) system, classical Parashara principles, and traditional texts. Supports both nat

How to use this skill

Skill file

Vedic Astrology Skill

Generate and interpret complete Vedic astrology birth charts using multiple systems including Krishnamurthi Paddhati (KP), classical Parashara principles, and traditional Vedic texts.

Overview

This skill combines three powerful Python libraries for comprehensive Vedic astrology:

  1. flatlib - Traditional astrology calculations with Swiss Ephemeris
  2. VedicAstro - Krishnamurthi Paddhati (KP) system specialization
  3. jyotishganit - Professional grade Vedic calculations with NASA JPL ephemeris

All three libraries are integrated to provide:

Installation

The scripts automatically install required libraries on first run:

# All dependencies auto-installed:
# - flatlib (from sidereal branch)
# - vedicastro  
# - jyotishganit
# - pyswisseph
# - skyfield

Usage

Generate Complete Birth Chart

# Basic natal chart
bun scripts/generate-chart.ts \
  --date "1990-07-15" \
  --time "14:30:00" \
  --lat 28.6139 \
  --lon 77.2090 \
  --tz 5.5 \
  --name "Sample Person" \
  --place "New Delhi"

# Saves to: Charts/sample-person-chart.json

Output includes:

Horary (Prasna) Chart

# Question-based horary chart
bun scripts/generate-horary.ts \
  --question "Will I get the job?" \
  --lat 19.0760 \
  --lon 72.8777 \
  --tz 5.5 \
  --place "Mumbai"

# Uses current time or specify:
bun scripts/generate-horary.ts \
  --question "Should I invest in this business?" \
  --date "2024-03-15" \
  --time "10:45:00" \
  --lat 12.9716 \
  --lon 77.5946 \
  --tz 5.5 \
  --place "Bangalore"

Interpret Chart

# Get detailed interpretation
bun scripts/interpret-chart.ts \
  --chart "Charts/sample-person-chart.json" \
  --focus "career" \
  --system "kp"

# Focus areas: career, marriage, health, wealth, education, children
# Systems: kp, parashara, combined

Dasha Predictions

# Current dasha period analysis
bun scripts/analyze-dasha.ts \
  --chart "Charts/sample-person-chart.json" \
  --date "2024-03-15"

# Get upcoming events
bun scripts/analyze-dasha.ts \
  --chart "Charts/sample-person-chart.json" \
  --period "next-year"

Panchanga (Daily Almanac)

# Today's panchanga
bun scripts/panchanga.ts \
  --lat 28.6139 \
  --lon 77.2090 \
  --tz 5.5

# Specific date
bun scripts/panchanga.ts \
  --date "2024-04-15" \
  --lat 13.0827 \
  --lon 80.2707 \
  --tz 5.5 \
  --place "Chennai"

Transit Analysis

# Current planetary transits
bun scripts/transit.ts \
  --chart "Charts/sample-person-chart.json"

# Future transit
bun scripts/transit.ts \
  --chart "Charts/sample-person-chart.json" \
  --date "2024-06-01"

Compatibility (Synastry)

# Match two charts
bun scripts/compatibility.ts \
  --chart1 "Charts/person1-chart.json" \
  --chart2 "Charts/person2-chart.json"

# Includes:
# - Kuta/Guna matching
# - Mangal Dosha check
# - Nadi, Bhakuta, Gana compatibility
# - Overall score and recommendations

Key Concepts

Krishnamurthi Paddhati (KP) System

What makes KP unique:

KP Significators (ABCD):

Divisional Charts (Vargas)

| Chart | Name | Significance |

|-------|------|--------------|

| D1 | Rasi | Overall life, personality |

| D2 | Hora | Wealth, financial potential |

| D3 | Drekkana | Siblings, courage |

| D4 | Chaturthamsa | Property, fixed assets |

| D7 | Saptamsa | Children, progeny |

| D9 | Navamsa | Marriage, spouse, dharma |

| D10 | Dasamsa | Career, profession |

| D12 | Dwadasamsa | Parents, ancestry |

| D16 | Shodasamsa | Vehicles, luxuries |

| D24 | Chaturvimsamsa | Education, learning |

| D27 | Bhamsha | Physical strength |

| D30 | Trimsamsa | Misfortunes, suffering |

| D60 | Shashtiamsa | Past life karma |

Panchanga (Five Limbs)

  1. Tithi - Lunar day (1-30)
  2. Nakshatra - Moon's constellation (27 divisions)
  3. Yoga - Sun-Moon combination (27 types)
  4. Karana - Half of tithi (11 types)
  5. Vaara - Weekday (7 days)

Vimshottari Dasha

120-year planetary period system:

Each Mahadasha divided into Antardashas, Pratyantardashas, etc.

Shadbala (Six-Fold Strength)

  1. Sthanabala - Positional strength
  2. Kaalabala - Temporal strength
  3. Digbala - Directional strength
  4. Cheshtabala - Motional strength
  5. Naisargikabala - Natural strength
  6. Drikbala - Aspectual strength

Minimum required strength (Rupas):

Ashtakavarga

Point-based system showing strength in each sign:

Output Format

Charts are saved as JSON with complete astrological data:

{
  "person": {
    "name": "Sample Person",
    "birth_date": "1990-07-15T14:30:00",
    "latitude": 28.6139,
    "longitude": 77.2090,
    "timezone": 5.5,
    "place": "New Delhi"
  },
  "ayanamsa": 23.87,
  "d1_chart": {
    "ascendant": {"sign": "Libra", "degrees": 12.45},
    "planets": [...],
    "houses": [...]
  },
  "divisional_charts": {
    "d9": {...},
    "d10": {...}
  },
  "panchanga": {
    "tithi": "Krishna Chaturthi",
    "nakshatra": "Pushya",
    "yoga": "Vyaghata",
    "karana": "Bava",
    "vaara": "Sunday"
  },
  "dashas": {
    "current_mahadasha": "Venus",
    "current_antardasha": "Moon",
    "periods": [...]
  },
  "kp_data": {
    "significators": {...},
    "sublords": {...}
  },
  "shadbala": {...},
  "ashtakavarga": {...}
}

Chart Interpretation Principles

House Significations (Parashara System)

  1. 1st House (Lagna): Self, body, personality, general fortune
  2. 2nd House: Wealth, family, speech, food, early education
  3. 3rd House: Siblings, courage, communication, short journeys
  4. 4th House: Mother, home, property, vehicles, happiness
  5. 5th House: Children, education, intelligence, romance, speculation
  6. 6th House: Enemies, diseases, debts, service, obstacles
  7. 7th House: Spouse, marriage, partnerships, business
  8. 8th House: Longevity, inheritance, occult, sudden events
  9. 9th House: Father, dharma, fortune, higher education, long journeys
  10. 10th House: Career, profession, status, authority, fame
  11. 11th House: Gains, income, friends, ambitions, elder siblings
  12. 12th House: Losses, expenses, foreign lands, spirituality, isolation

Planetary Natures

Natural Benefics:

Natural Malefics:

Functional Benefics/Malefics:

Depends on ascendant and lordship of houses.

Yogas (Planetary Combinations)

Powerful Yogas:

Challenging Yogas:

Dasha Interpretation Rules

  1. Mahadasha Lord:
  1. Antardasha Lord:
  1. Transit Influence:

KP Judgment Rules

For any event to manifest:

  1. Significators must be present:
  1. Dasha must be supportive:
  1. Sublord must promise:

Example (Marriage timing):

Traditional Texts Referenced

The interpretation incorporates wisdom from:

  1. Brihat Parashara Hora Shastra - Foundation of Vedic astrology
  2. Brihat Jataka (Varahamihira) - Classical text on natal astrology
  3. Saravali (Kalyana Varma) - Comprehensive horoscopy
  4. Phaladeepika (Mantreswara) - Results of planetary positions
  5. Jataka Parijata (Vaidyanatha) - Natal astrology compendium
  6. KP Readers (K.S. Krishnamurti) - KP system foundation

Environment Variables

Set these in Settings > Advanced if needed:

# Optional: Swiss Ephemeris path
SWISSEPH_PATH="/custom/path/to/ephe"

# Optional: Output directory
ASTRO_CHARTS_DIR="./Charts"

Technical Details

Ayanamsa Used:

Ephemeris Source:

Coordinate System:

Common Use Cases

Career Guidance

# Generate chart and get career insights
bun generate-chart.ts --date "1990-05-20" --time "08:15:00" \
  --lat 18.5204 --lon 73.8567 --tz 5.5 --name "Client" --place "Pune"
  
bun interpret-chart.ts --chart "Charts/client-chart.json" --focus "career" --system "combined"

Marriage Timing

# Check marriage prospects
bun interpret-chart.ts --chart "Charts/client-chart.json" --focus "marriage"

# Check compatibility with partner
bun compatibility.ts --chart1 "Charts/person1.json" --chart2 "Charts/person2.json"

Health Analysis

# Health indicators
bun interpret-chart.ts --chart "Charts/client-chart.json" --focus "health"

# Check current dasha for health matters
bun analyze-dasha.ts --chart "Charts/client-chart.json"

Business Partnership

# Horary question
bun generate-horary.ts --question "Should I partner with this person?" \
  --lat 22.5726 --lon 88.3639 --tz 5.5 --place "Kolkata"

# Interpret horary chart using KP rules
bun interpret-chart.ts --chart "Charts/horary-*.json" --system "kp"

Muhurta (Auspicious Timing)

# Find auspicious time for event
bun panchanga.ts --date "2024-04-15" --lat 28.6139 --lon 77.2090 --tz 5.5

# Check multiple dates
bun panchanga.ts --start-date "2024-04-01" --end-date "2024-04-30" \
  --lat 12.9716 --lon 77.5946 --tz 5.5 --format "table"

Ethical Guidelines

When using this skill for chart interpretation:

  1. Emphasize Free Will: Charts show potentials, not certainties
  2. Be Compassionate: Avoid fatalistic language
  3. Provide Remedies: Suggest mantras, gemstones, charity
  4. Respect Privacy: Handle birth data confidentially
  5. Continuous Learning: Cross-reference with classical texts
  6. Seek Expertise: For complex charts, consult experienced astrologers

Troubleshooting

Missing ephemeris data:

# Libraries auto-download on first run
# If issues, check internet connection and:
pip install --upgrade pyswisseph skyfield

Wrong positions:

# Verify timezone is correct (IST = 5.5)
# Check latitude/longitude format (decimal degrees)
# Ensure date format: YYYY-MM-DD
# Ensure time format: HH:MM:SS (24-hour)

Interpretation accuracy:

# Always verify birth time accuracy (±5 minutes changes ascendant)
# Birth time rectification may be needed
# Use divisional charts (D9, D10) to confirm D1 readings

Further Learning

Books:

Online Resources:

API Integration

For programmatic access, you can import the Python modules directly:

from vedicastro import VedicHoroscopeData
from jyotishganit import calculate_birth_chart
from flatlib import const
from flatlib.datetime import Datetime
from flatlib.geopos import GeoPos
from flatlib.chart import Chart

# Use in your own scripts
# See references/api-examples.py for detailed usage

Contributing

To enhance this skill:

  1. Add more interpretation rules from classical texts
  2. Implement additional yoga calculations
  3. Add regional variations (Tamil, Kerala systems)
  4. Enhance remedy suggestions
  5. Add PDF report generation

References

See references/ directory for:

When to Use This Skill

Use this skill when you need to:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.