Skip to content

Astrology API skill for AI agents — birth charts, horoscopes, synastry, tarot, numerology. 240+ endpoints across Western, Vedic & Chinese astrology.

Notifications You must be signed in to change notification settings

astro-api/astroapi-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astrology API Skill

Get API Key API Documentation Postman Collection

An Agent Skills skill for the Astrology API — works across OpenClaw, Claude Code, OpenAI Codex, GitHub Copilot, Cursor, and other compatible platforms.

What It Does

Provides AI agents with access to professional astrological calculations:

  • Charts — natal, synastry, composite, transit, solar/lunar return, progressions, directions
  • Analysis — natal reports, career, psychological, karmic, spiritual, compatibility
  • Horoscopes — daily/weekly/monthly/yearly by sign or personalized
  • Tarot — card draws, single/three-card/Celtic cross spreads, birth cards
  • Numerology — core numbers, comprehensive readings, compatibility
  • Lunar — phases, void of course, mansions, events, calendar
  • Vedic — birth details, kundli matching, doshas, dashas, panchang
  • Chinese — BaZi, ming gua, compatibility, luck pillars
  • Human Design — bodygraph, type, compatibility, transits
  • Kabbalah — tree of life, birth angels, tikkun, gematria
  • Astrocartography — maps, power zones, relocation analysis
  • And more — eclipses, fixed stars, palmistry, horary, feng shui

240+ API endpoints powered by Swiss Ephemeris.

Prerequisites

export ASTROLOGY_API_KEY="your_token_here"

Installation

From ClawHub (recommended)

clawhub install astroapi-skill

Manual — OpenClaw

git clone https://github.com/astro-api/astroapi-skill ~/skills/astroapi-skill
ln -s ~/skills/astroapi-skill ~/.openclaw/skills/astroapi-skill

Manual — Claude Code

git clone https://github.com/astro-api/astroapi-skill ~/skills/astroapi-skill
ln -s ~/skills/astroapi-skill ~/.claude/skills/astroapi-skill

Manual — OpenAI Codex

git clone https://github.com/astro-api/astroapi-skill ~/skills/astroapi-skill
ln -s ~/skills/astroapi-skill ~/.codex/skills/astroapi-skill

Other Agent Skills Platforms

Symlink or copy the astroapi-skill directory to your platform's skills directory.

Project Structure

astroapi-skill/
├── SKILL.md                          # Skill definition (frontmatter + instructions)
├── README.md                         # This file (for humans / GitHub)
├── scripts/
│   └── astro-api.sh                  # curl wrapper with auth
├── references/
│   ├── api-endpoints.md              # Full 240+ endpoint reference
│   └── use-cases.md                  # User intent → endpoint mapping
├── assets/
│   └── openapi-astrology.json        # Canonical OpenAPI 3.1.0 spec
├── chatgpt/                          # ChatGPT GPT Actions setup
│   ├── openapi-gpt-actions.json      # Trimmed OpenAPI spec (32 endpoints)
│   ├── instructions.md               # GPT system prompt
│   └── README.md                     # Setup guide
├── .clawhubignore                    # Files excluded from ClawHub publish
└── .env.example

Quick Test

# Set your API key
export ASTROLOGY_API_KEY="your_token_here"

# Get current sky data
bash scripts/astro-api.sh GET /api/v3/data/now

# Generate a natal chart
bash scripts/astro-api.sh POST /api/v3/charts/natal '{
  "subject": {
    "name": "Test",
    "year": 1990, "month": 3, "day": 15,
    "hour": 14, "minute": 30, "second": 0,
    "city": "New York", "country_code": "US"
  },
  "options": {"house_system": "P", "zodiac_type": "Tropic", "language": "EN"}
}'

Publishing to ClawHub

First-time setup

npm i -g clawhub
clawhub login

Publish

clawhub publish . --slug astroapi-skill --name "Astrology API" \
  --version 1.0.0 --tags latest --changelog "Initial release"

Update an existing version

Bump the version field in SKILL.md frontmatter, then:

clawhub publish . --slug astroapi-skill \
  --version 1.1.0 --changelog "Description of changes"

Verify

clawhub inspect astroapi-skill

Files listed in .clawhubignore (chatgpt/, .env.example, .git/) are excluded from the published bundle. Only SKILL.md, scripts/, and references/ are shipped to ClawHub.

ChatGPT Integration

For ChatGPT GPT Actions (separate from Agent Skills), see chatgpt/README.md.

API Documentation

License

MIT

About

Astrology API skill for AI agents — birth charts, horoscopes, synastry, tarot, numerology. 240+ endpoints across Western, Vedic & Chinese astrology.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages