微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⭐

190+端点专业占星引擎

Astrology API · v1.0.0
专业技能 安全 B 级 作者 serslon 公开目录收录
1.1k 下载 1 安装 5.1k 收藏 30 浏览

简介

专业占星API工具,支持本命盘、合盘、行运、塔罗等190+端点,提供SVG星图渲染与AI解读报告。

原始描述

Astrology API: generate natal charts, synastry, composite, transits, solar/lunar returns, progressions, directions, planetary positions, house cusps, aspects...

通过你的 Agent 添加

安装目录:astroapi-skill/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/astrology-api/
Codex CLI~/.codex/skills/astrology-api/
DeepSeek Harness~/.agents/skills/astrology-api/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

astroapi-skill 是一个功能全面的占星术 API 封装工具,通过 curl 调用外部占星服务,覆盖本命盘(Natal Chart)、双人合盘(Synastry)、行运分析(Transits)、太阳/月亮返照、塔罗牌阵、数字命理、吠陀占星、中国八字、人类图、卡巴拉、天文地理学等 190 余个端点。

典型调用模式为:

bash {baseDir}/scripts/astro-api.sh POST /api/v3/charts/natal '{...JSON参数...}'

需提供出生日期、时间、地点(或经纬度),支持 Placidus、Whole Sign 等多种宫位系统,热带/恒星黄道选择。高级功能包括 SVG 星图渲染、AI 生成的个人分析报告、实时天象数据查询。

显著优点

  • 覆盖面极广:西方占星、吠陀、中国命理、塔罗、人类图、卡巴拉等跨体系整合
  • 输出格式丰富:JSON 数据、文本报告、SVG/PNG 可视化图表
  • AI 解读加持:自动生成自然语言分析报告,降低专业术语门槛
  • 多语言支持:EN、RU、FR、DE、ES、IT、PT 等
  • 灵活定位:支持城市名或精确经纬度输入,解决边缘地点识别问题

潜在缺点与局限性

  • 外部 API 依赖:需 ASTROLOGY_API_KEY 环境变量,服务可用性受制于第三方
  • 出生时间敏感:月亮位置、上升星座对时间精度要求高,未知时辰会显著降低准确度
  • 命理学本身的争议性:占星术缺乏科学实证基础,输出应视为娱乐或文化参考,非决策依据
  • 成本不透明:未提及 API 定价与速率限制,高频使用可能存在费用风险
  • 隐私顾虑:需上传精确出生信息至外部服务器

适合人群

  • 占星爱好者与自学者
  • 命理咨询师、塔罗师等从业者
  • 内容创作者(星座运势、占星科普)
  • 对神秘学/灵性成长感兴趣的普通用户
  • 需程序化生成星图的应用开发者

常规风险

  • 数据隐私:出生信息属于敏感个人数据,建议确认 API 服务商隐私政策
  • 心理暗示效应:负面解读可能引发焦虑,建议保持批判性思维
  • API 密钥泄露:脚本调用需妥善保管 ASTROLOGY_API_KEY
  • 过度依赖:重大人生决策不应基于占星输出

技能正文


name: astroapi-skill description: >- Astrology API: generate natal charts, synastry, composite, transits, solar/lunar returns, progressions, directions, planetary positions, house cusps, aspects, lunar metrics, horoscopes, analysis reports, SVG/render charts, tarot, numerology, Vedic, Chinese astrology, human design, kabbalah, astrocartography, eclipses, palmistry, and fixed stars. Use when user asks about birth charts, horoscopes, zodiac signs, compatibility, planetary positions, moon phases, transits, astrological calculations, tarot readings, numerology, or any esoteric/astrological topic. license: MIT compatibility: Requires curl allowed-tools: Bash(curl:*) Read version: 1.0.0 metadata: openclaw: emoji: ⭐ homepage: https://github.com/astro-api/astroapi-skill requires: bins: ['curl'] env: ['ASTROLOGY_API_KEY'] primaryEnv: ASTROLOGY_API_KEY

Astrology API Skill

When to Use

Use this skill when the user asks about:

  • Birth charts, natal charts, horoscopes
  • Zodiac compatibility, synastry, relationship analysis
  • Planetary positions, transits, aspects
  • Moon phases, lunar metrics, void of course
  • Solar/lunar returns, progressions, directions
  • Tarot card readings, spreads, interpretations
  • Numerology (core numbers, compatibility, comprehensive)
  • Vedic astrology (kundli, doshas, dashas, panchang)
  • Chinese astrology (bazi, ming gua, feng shui)
  • Human design (bodygraph, type, channels, gates)
  • Kabbalah (tree of life, birth angels, gematria)
  • Astrocartography (relocation, power zones, lines)
  • Fixed stars (positions, conjunctions)
  • Eclipses (upcoming, natal impact)
  • Palmistry (palm analysis, reading)
  • Daily/weekly/monthly/yearly horoscopes
  • Career, health, spiritual, psychological analysis
  • Chart rendering (SVG, PNG images)

Prerequisites

Before making any API call, verify:

  1. $ASTROLOGY_API_KEY environment variable is set
  2. curl is available on PATH

If the API key is missing, ask the user to set it:

export ASTROLOGY_API_KEY="your_token_here"

How It Works

  1. Gather data from the user depending on the request type:

    • For natal/personal: name, birth date (year, month, day), birth time (hour, minute), birth city + country code (2-letter ISO)
    • For synastry/compatibility: birth data for TWO people
    • For transits: natal data + transit date/time
    • For horoscopes by sign: just the zodiac sign name
    • For tarot: question or spread type
    • For numerology: full name + birth date
  2. Call the API using {baseDir}/scripts/astro-api.sh:

    bash {baseDir}/scripts/astro-api.sh POST /api/v3/charts/natal '{ ... }'
    
  3. Present results in a human-friendly format, highlighting key findings.

API Call Patterns

Natal Chart (most common)

bash {baseDir}/scripts/astro-api.sh POST /api/v3/charts/natal '{
  "subject": {
    "name": "John",
    "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"
  }
}'

Synastry (compatibility)

bash {baseDir}/scripts/astro-api.sh POST /api/v3/charts/synastry '{
  "subject": {
    "name": "Person A",
    "year": 1990, "month": 3, "day": 15,
    "hour": 14, "minute": 30, "second": 0,
    "city": "New York", "country_code": "US"
  },
  "partner": {
    "name": "Person B",
    "year": 1992, "month": 7, "day": 20,
    "hour": 9, "minute": 0, "second": 0,
    "city": "London", "country_code": "GB"
  },
  "options": {"house_system": "P", "zodiac_type": "Tropic", "language": "EN"}
}'

Transit Snapshot

bash {baseDir}/scripts/astro-api.sh POST /api/v3/charts/transit '{
  "subject": {
    "name": "John",
    "year": 1990, "month": 3, "day": 15,
    "hour": 14, "minute": 30, "second": 0,
    "city": "New York", "country_code": "US"
  },
  "transit": {
    "year": 2026, "month": 2, "day": 12,
    "hour": 12, "minute": 0, "second": 0,
    "city": "New York", "country_code": "US"
  },
  "options": {"house_system": "P", "zodiac_type": "Tropic", "language": "EN"}
}'

Current Sky Data (no parameters needed)

bash {baseDir}/scripts/astro-api.sh GET /api/v3/data/now

Planetary Positions

bash {baseDir}/scripts/astro-api.sh POST /api/v3/data/positions '{
  "subject": {
    "name": "John",
    "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"}
}'

Lunar Metrics

bash {baseDir}/scripts/astro-api.sh POST /api/v3/data/lunar-metrics '{
  "subject": {
    "name": "now",
    "year": 2026, "month": 2, "day": 12,
    "hour": 12, "minute": 0, "second": 0,
    "city": "New York", "country_code": "US"
  }
}'

Daily Horoscope by Sign

bash {baseDir}/scripts/astro-api.sh POST /api/v3/horoscope/sign/daily '{
  "sign": "aries",
  "language": "EN"
}'

Personal Daily Horoscope

bash {baseDir}/scripts/astro-api.sh POST /api/v3/horoscope/personal/daily '{
  "subject": {
    "name": "John",
    "year": 1990, "month": 3, "day": 15,
    "hour": 14, "minute": 30, "second": 0,
    "city": "New York", "country_code": "US"
  },
  "language": "EN"
}'

Natal Analysis Report (AI-generated interpretation)

bash {baseDir}/scripts/astro-api.sh POST /api/v3/analysis/natal-report '{
  "subject": {
    "name": "John",
    "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"}
}'

Render Chart as SVG

bash {baseDir}/scripts/astro-api.sh POST /api/v3/svg/natal '{
  "subject": {
    "name": "John",
    "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"}
}'

Tarot Card Draw

bash {baseDir}/scripts/astro-api.sh POST /api/v3/tarot/cards/draw '{
  "count": 3
}'

Numerology Core Numbers

bash {baseDir}/scripts/astro-api.sh POST /api/v3/numerology/core-numbers '{
  "full_name": "John Smith",
  "birth_date": "1990-03-15"
}'

Full endpoint reference: Read {baseDir}/references/api-endpoints.md for all 190+ endpoints with detailed parameters.

Default Options

When the user doesn't specify preferences, use these defaults:

  • House system: P (Placidus) — most common in Western astrology
  • Zodiac type: Tropic (Tropical) — Western standard
  • Language: EN (English) — override based on user's language
  • Tradition: universal — broadest coverage

Output Format

When presenting results to the user:

  1. Start with the highlights: Sun sign, Moon sign, Ascendant (Rising)
  2. Use plain language — translate astrological jargon
  3. Format positions as tables when showing multiple planets
  4. Highlight notable aspects (conjunctions, oppositions, squares, trines)
  5. For compatibility: lead with the overall score/summary
  6. For horoscopes: present the text naturally, don't dump raw JSON
  7. For chart images (SVG/render): save to a file and inform the user

Edge Cases

  • Birth time unknown: Use noon (12:00) and note that house positions and Moon degree may be less accurate
  • City not found: Ask for latitude/longitude instead. Use latitude and longitude fields instead of city/country_code
  • API errors (400/422): Parse the error message and explain to the user what's wrong (e.g., invalid date, missing field)
  • Large responses: For analysis reports, summarize the key points rather than showing everything
  • Language support: The API supports EN, RU, FR, DE, ES, IT, PT, and more — match the user's language when possible

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

astrologyhoroscopetarotnatal-chartnumerologyvedic-astrologycompatibilitydivinationspiritualityapi-integration

同类 Skill