Communitygithub.com

ComeOnOliver/skillshub

建立與操作一個 AI 占星助手,使用 Swiss Ephemeris 邏輯計算本命盤、行星位置、宮位與相位。適用於製作命盤、出生圖計算機、占星 API、星座運勢機器人,或解讀行星位置。

skillshub 是什麼?

此技能讓 AI 代理能夠扮演專業占星師,準確計算並解讀個人出生星盤。它透過瑞士星曆表(Swiss Ephemeris)引擎,將使用者的出生日期、時間與地點轉換為 UTC,計算出行星在黃道上的精確經緯度、宮位系統的宮頭與尖軸,並分析行星之間的相位角度。此技能支援多種程式語言(Python、Node.js、R)與豐富的自訂選項,包括宮位系統(如 Placidus、Koch)、黃道系統(回歸或恆星制)以及小行星與虛點(如凱龍星、莉莉絲)。實作上,它提供了清晰的逐步工作流程與程式碼片段,涵蓋時間轉換、行星位置計算、宮位指派、相位計算與誤差容許度等核心步驟。對於開發聊天機器人、占星 API、出生圖計算機或任何需要天文計算的應用,此技能能大幅降低開發成本,確保計算邏輯與業界專業工具一致。

相容平台~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 的新對話。

說明文件

人工智慧占星助手

建立一個占星助手,使用與專業工具(例如 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)
日光節約時間是有觀測 / 未觀測
宮位系統否預設:Placidus
黃道系統否預設:回歸黃道

實作檢查清單

1. 時間轉換

# 當地時間 → UTC(套用時區 + DST)
# 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. 特殊點:福點、頂點、月亮交點、莉莉絲(若啟用)

主要常數

  • 行星 ID:太陽=0, 月亮=1, 水星=2, 金星=3, 火星=4, 木星=5, 土星=6, 天王星=7, 海王星=8, 冥王星=9, 平均交點=10, 真實交點=11, 凱龍星=12, 平均莉莉絲=15
  • 宮位系統:P=Placidus, K=Koch, R=Regiomontanus, C=Campanus, E=Equal, W=Whole Sign
  • 黃道星座:0°=牡羊座, 30°=金牛座, 60°=雙子座... 330°=雙魚座

福點

日生盤(太陽在地平線上):福點 = ASC + 月亮 - 太陽
夜生盤(太陽在地平線下):福點 = ASC + 太陽 - 月亮

錯誤處理

  • 未知出生時間:計算不含宮位的星盤;使用中午或提供「僅日期星盤」
  • 無效座標:拒絕或使用備用值(例如首都)
  • 極地緯度:Placidus 會失敗;建議 Equal 或 Whole Sign
  • 日期超出範圍:Swiss Ephemeris 涵蓋約 13,000 年;為一般用途驗證 1800–2100 年

相依性

  • Python:pyswisseph + 星曆表檔案(從 astro.com 下載)
  • Node.js:swisseph 或 astronomia
  • R:swephR

設定星曆表路徑:swe_set_ephe_path("/path/to/ephe")


參考資料與範例

  • 完整 API 規格、公式、歲差系統: reference.md
  • 使用者流程、回應格式、邊界案例: examples.md

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

相關技能