SA
Sun and Moon
🔵 Stable🕐 updated 2026-07-18
🔷 SkillSpec L3
pm-live
Get sunrise, sunset, golden hour, day length, and moon phase for any location with zero API keys — sunrise-sunset.org and Open-Meteo via curl, times converted to local. Use when asked when is sunset today, golden hour for a photo shoot, how long is the day, what's the moon phase tonight, or sun times for a date and place. Produces the sun/moon times in the user's local zone (the UTC trap handled), the photography windows, and the rerunnable command.
What to give it
▸Location — lat/lon or a place name (geocode via `https://geocoding-api.open-meteo.com/v1/search?name=Lisbon&count=1`)
▸The date — today default; any date works (both services take past and future dates)
▸The real question — a shoot wants golden hour, a hike wants last-light, "is it a full moon" wants the phase — lead with theirs
✅ The bar it holds itself to
Every skill in this library self-verifies — these are this skill's own quality checks, straight from its definition.
✓Every time is explicitly local to the location, with the zone named
✓`formatted=0` was used and UTC→local conversion applied (or timezone=auto took care of it)
✓The asked-for window (golden hour, last light) leads the answer
✓Moon phase carries its name, not just an emoji
✓Computed values (moon %, golden hour) are labeled as derived
⚠️ What it refuses to do
Do not serve UTC times as local — the single failure mode this skill exists to prevent
Do not answer from memory — sun times shift daily and by latitude dramatically
Do not give bare sunset when the question was a photography or safety window
Do not overstate moon precision — phase and rough illumination, not fake decimals
Do not ignore polar edge cases — high latitudes in summer/winter return no-sunset/no-sunrise; report that as the (correct) answer, not an error
Install
npx pm-claude-skills add --agent claude # or codex · cursor · gemini · hermes
# or one-line MCP (every skill, any client):
claude mcp add pm-skills -- npx -y pm-claude-skills-mcp
Related skills
🔌 Embed this skill
Drop this on your blog, docs, or site — it renders a "Run this skill" card:
<div data-pm-skill="sun-and-moon"></div>
<script src="https://mohitagw15856.github.io/pm-claude-skills/embed.js" async></script>
💬 Discussion
Sun and Moon is one of 599 open-source professional AI agent skills — all SkillSpec L3.
Try them all in the browser · ⭐ Star on GitHub · Browse the full catalog