Communitygithub.com

AI占星助手

构建并运行一个AI占星助手,能够使用瑞士星历逻辑计算出生星盘、行星位置、宫位和相位。适用于创建出生星盘、出生图计算器、占星API、星座运势机器人或解读行星位置。

AI占星助手 是什么?

该技能帮助开发者构建一个基于瑞士星历(Swiss Ephemeris)的专业AI占星助手,能够精确计算出生星盘,包括行星位置、宫位和相位。它与Astro-Seek等专业工具使用相同的计算逻辑,支持Python、Node.js和R等多种编程语言。工作流程涵盖从解析出生数据(日期、时间、地点)到生成完整星盘报告的全过程,包括时间转换、行星位置计算、宫位分配和相位关系分析。该技能还处理了多种边缘情况,如未知出生时间、无效坐标、极地纬度和日期范围限制,确保在各种输入条件下的稳定性和准确性。

兼容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/anna-oya-ai/astro-skill.md/SKILL.md

在你喜欢的 AI 中提问

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

文档

AI占星助手 是做什么的?

构建一个占星助手,能够使用与专业工具(例如 Astro-Seek)相同的逻辑计算出生星盘。使用 Swiss Ephemeris(或 pyswisseph、swephR、swisseph-js)作为计算引擎。

何时应用此技能

  • 用户要求通过出生数据计算出生星盘、本命盘或星座运势
  • 构建占星API、聊天机器人或网络计算器
  • 解读行星位置、宫位或相位
  • 实现基于星历的占星功能

核心工作流

1. 解析出生数据(日期、时间、地点)→ 验证输入
2. 将本地时间转换为 UTC → 儒略日
3. 计算行星位置(swe_calc_ut)
4. 计算宫位、上升点、中天(swe_houses)
5. 将行星分配到宫位(swe_house_pos)
6. 计算所有行星对之间的相位
7. 可选:应用恒星黄道岁差(ayanamsha)
8. 格式化并解读结果

必需输入

输入项是否必需备注
出生日期是日、月、年
出生时间否*当地时间(时、分、秒)。*宫位/上升点计算必需
出生地点是城市名称或经纬度
时区是从地点自动获取或手动输入(例如 UTC+1)
夏令时是已实施 / 未实施
宫位系统否默认:普拉西德制
黄道系统否默认:回归黄道

实现检查清单

1. 时间转换

# 本地时间 → UTC(应用时区 + 夏令时)
# UTC → 儒略日
jd_ut = swe_utc_to_jd(year, month, day, hour, min, sec, SE_GREG_CAL)
# 返回:dret[0]=JD_TT, dret[1]=JD_UT

2. 行星位置

# 对每个天体:太阳(0)、月亮(1)、水星(2)……冥王星(9)、北交点(10/11)、凯龙星(12)、莉莉丝(15)
ret, xx = swe_calc_ut(jd_ut, planet_id, SEFLG_SWIEPH)
# xx[0]=黄经, xx[1]=黄纬, xx[2]=距离, xx[3]=速度(逆行时 < 0)

3. 宫位

# 需要:jd_ut, latitude, longitude, house_system
cusps, ascmc = swe_houses(jd_ut, lat, lon, hsys)
# cusps[1..12] = 宫头, ascmc[0]=上升点, ascmc[1]=中天

4. 宫位分配

house = swe_house_pos(armc, lat, obliquity, hsys, [lon, lat])

5. 相位

计算每对行星之间的角度距离。如果 |距离 - 相位角度| <= 容许度,则该相位有效。

相位角度默认容许度
合相0°8°
对分相180°7°
三分相120°6°
四分相90°6°
六分相60°4°

6. 恒星黄道(可选)

swe_set_sid_mode(ayanamsha_type)  # 例如 SE_SIDM_LAHIRI
# 然后 swe_calc_ut 返回恒星位置
# 或:sidereal_lon = tropical_lon - swe_get_ayanamsa_ut(jd_ut)

输出格式

按以下格式呈现结果:

  1. 行星表格:行星 | 星座 | 度数 | 宫位 | 逆行
  2. 宫头:上升点(ASC)、中天(MC)以及宫位 1–12
  3. 相位列表:行星 A – 相位 – 行星 B(容许度)
  4. 特殊点:福点、顶点(Vertex)、南北交点、莉莉丝(如果启用)

关键常量

  • 行星ID:太阳=0, 月亮=1, 水星=2, 金星=3, 火星=4, 木星=5, 土星=6, 天王星=7, 海王星=8, 冥王星=9, 平均北交点=10, 真北交点=11, 凯龙星=12, 平均莉莉丝=15
  • 宫位系统:P=普拉西德制, K=科赫制, R=瑞吉欧蒙塔纳斯制, C=坎帕纳斯制, E=等宫制, W=整宫制
  • 黄道星座:0°=白羊座, 30°=金牛座, 60°=双子座……330°=双鱼座

福点

昼生(太阳在地平线上):福点 = 上升点 + 月亮 - 太阳
夜生(太阳在地平线下):福点 = 上升点 + 太阳 - 月亮

错误处理

  • 未知出生时间:计算不含宫位的星盘;使用中午或提供“仅日期星盘”选项
  • 无效坐标:拒绝或使用后备值(例如首都城市)
  • 极地纬度:普拉西德制失效;建议使用等宫制或整宫制
  • 日期超出范围:瑞士星历涵盖约 13,000 年;为典型用途验证 1800–2100 年

依赖项

  • Python:pyswisseph + 星历文件(从 astro.com 下载)
  • Node.js:swisseph 或 astronomia
  • R:swephR

设置星历路径:swe_set_ephe_path("/path/to/ephe")


参考与示例

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能