anchor-based-lunisolar

Compute lunisolar calendar dates from explicit anchor dates and fixed cycles.

26|6|Updated Apr 14, 2024
One-click install
npx skills add https://github.com/CodapopKSP/LibraryOfTime --skill anchor-based-lunisolar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anchor-based-lunisolar
Source: https://github.com/CodapopKSP/LibraryOfTime/tree/main/.cursor/skills/anchor-based-lunisolar
Command: npx skills add https://github.com/CodapopKSP/LibraryOfTime --skill anchor-based-lunisolar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It addresses the difficulty of correctly implementing lunisolar calendars that rely on explicit anchor dates and fixed cycles, preventing errors such as wrong year, negative days, or incorrect leap‑month placement.

Core Features & Use Cases

  • Provides detailed rules for handling anchor dates, month boundaries, visibility constraints, and cycle calculations.
  • Guides developers on efficient year‑resolution algorithms, leap‑year handling before and after the anchor, and preventing negative day‑of‑month values.
  • Ideal for implementing or fixing calendars like Babylonian, Hebrew, Chinese, or any spec that defines dates via an anchor and Metonic‑type cycles.

Quick Start

Ask the skill to generate the lunisolar calendar date for April 15 2024 using the provided anchor and cycle rules.

Frequently Asked Questions about anchor-based-lunisolar

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a lunisolar calendar using anchor dates and Metonic cycles?

Lunisolar calendar implementation using anchor dates derives year boundaries and leap rules from fixed Metonic cycles rather than astronomical events, applying real new-moon data for accurate month boundary calculations and visibility constraints.

Why does my lunisolar calendar return negative days or wrong leap-month placement?

Negative days and incorrect leap-month placement occur when year-resolution algorithms lack proper O(1) year calculations and fail to handle leap-year rules correctly before and after the established anchor date.

What is the best way to calculate lunisolar dates with O(1) year resolution?

O(1) lunisolar date calculation requires deriving year boundaries and leap rules from a fixed anchor date and Metonic cycle, resolving years through explicit cycle math rather than iterating through astronomical events.

How do new-moon visibility rules affect lunisolar month boundaries?

New-moon visibility rules determine lunisolar month boundaries by applying real new-moon data to establish when months begin, ensuring accurate date computation within Metonic cycle frameworks.

Can I use anchor-based lunisolar calendars for historical calendar systems like Babylonian or Hebrew?

Anchor-based lunisolar calendars support historical systems like Babylonian, Hebrew, and Chinese by defining dates through explicit anchor dates and Metonic-type cycles with consistent leap-year handling.

Do I need astronomical event data to implement a Metonic cycle lunisolar calendar?

Metonic cycle lunisolar calendars do not require astronomical event data for year boundaries; they use fixed cycle rules derived from an anchor date, though real new-moon data is needed for month boundaries.