Command Palette

Search for a command to run...

Back to skills
skill № 58971

shabbat-aware-scheduler

Schedule meetings, deployments, and events respecting Shabbat, Israeli holidays (chagim), and Hebrew calendar constraints. Use when user asks to schedule…

FreeRuns bundled scripts
skills-ilby skills-il★ 28 GitHub stars

Install shabbat-aware-scheduler in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Shabbat-Aware Scheduler

This tool computes calendar times and business scheduling only. It does not issue halachic rulings; for halachic questions consult a rabbi.

Instructions

Step 1: Determine Scheduling Context

Context Key Constraints Examples
Meeting scheduling Israeli business hours (Sun-Thu), Shabbat, chagim "Schedule a team meeting next week"
Deployment planning No deploys during Shabbat, chagim, or Erev Chag "When can we deploy this release?"
Event planning Hebrew calendar restrictions, venue availability "Plan a product launch event"
Cron/automation Skip Shabbat and holidays for recurring tasks "Run this job daily except Shabbat"
Notification timing Don't send during Shabbat or late hours "Schedule push notification campaign"

Step 2: Get Zmanim and Holiday Data

Use the HebCal API to retrieve Shabbat times and holiday data. See scripts/check_shabbat.py for a ready-to-use utility.

Query HebCal API for Shabbat times: Prefer geonameid over raw coordinates. When you pass a geonameid, Hebcal applies that city's own candle-lighting minhag for you and there is no b= value to get wrong. Reach for latitude/longitude plus a hand-picked b= only for a location with no geonameid.

import requests
from datetime import datetime, timedelta

CITY_GEONAMEID = {
    "jerusalem": 281184, "tel_aviv": 293397, "haifa": 294801,
    "beersheba": 295530, "tiberias": 293322, "safed": 293100,
}

def get_shabbat_times(date=None, geonameid=281184):
    """Candle lighting and havdalah for the Shabbat of the week containing `date`."""
    if date is None:
        date = datetime.now()

    # Anchor on the Friday of the CURRENT Shabbat week. Saturday belongs to the
    # Shabbat that started the evening before, so it looks BACK one day. Adding
    # (4 - weekday) % 7 unconditionally returns next week's Shabbat all Saturday,
    # which is 8 days wrong exactly when someone asks "when does Shabbat end?".
    if date.weekday() == 5:
        friday = date - timedelta(days=1)
    else:
        friday = date + timedelta(days=(4 - date.weekday()) % 7)

    response = requests.get("https://www.hebcal.com/shabbat", params={
        "cfg": "json",
        "gy": friday.year, "gm": friday.month, "gd": friday.day,
        "geonameid": geonameid,
        "M": "on",    # Havdalah at tzeit hakochavim (sun 8.5 deg below horizon)
        # Alternative: m=50 or m=72 for a fixed number of minutes after sunset
    })

    data = response.json()
    times = {}
    for item in data.get("items", []):
        if item["category"] == "candles":
            times["candle_lighting"] = item["date"]
        elif item["category"] == "havdalah":
            times["havdalah"] = item["date"]

    return times

Hebcal's b= default is 18 minutes before sunset, 40 for Jerusalem and 30 for Haifa and Zikhron Ya'akov, and the same offset governs Erev Chag (Rosh Hashana, Yom Kippur, Sukkot, Shmini Atzeret, Simchat Torah, Pesach, Shavuot), not only Erev Shabbat.

Get all Israeli holidays for a year:

def get_holidays(year):
    """Get all Israeli holidays for a given year."""
    response = requests.get("https://www.hebcal.com/hebcal", params={
        "v": 1,
        "cfg": "json",
        "year": year,
        "month": "x",  # All months
        "maj": "on",   # Major holidays
        "min": "on",   # Minor holidays
        "mod": "on",   # Modern holidays
        "mf": "on",    # Minor fasts. WITHOUT this, Tzom Gedaliah, Asara
                       # B'Tevet, Ta'anit Esther, Ta'anit Bechorot and
                       # Tzom Tammuz are absent from the response entirely.
        "i": "on",     # Israeli holidays (1-day yom tov)
        "nx": "off",
        "ss": "off"
    })

    data = response.json()
    holidays = []
    for item in data.get("items", []):
        if item["category"] in ["holiday", "roshchodesh"]:
            holidays.append({
                "title": item["title"],
                "date": item["date"],
                "category": item.get("subcat", item["category"]),
                "yomtov": item.get("yomtov", False),
                "memo": item.get("memo", "")
            })

    return holidays

Step 3: Implement Scheduling Logic

Israeli business hours:

Day Hours Notes
Sunday 08:00-18:00 First day of Israeli workweek
Monday 08:00-18:00 Regular business day
Tuesday 08:00-18:00 Regular business day
Wednesday 08:00-18:00 Regular business day
Thursday 08:00-18:00 Regular business day
Friday 08:00-13:00 Half day (closes before Shabbat)
Saturday Closed Shabbat (no business)

Core scheduling function:

from datetime import datetime, timedelta, time
import pytz

IL_TZ = pytz.timezone("Asia/Jerusalem")

BUSINESS_HOURS = {
    6: (time(8, 0), time(18, 0)),  # Sunday
    0: (time(8, 0), time(18, 0
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01Bash(python:*)
  2. 02Bash(pip:*)
  3. 03Bash(curl:*)

Bundled files

  • SKILL_HE.md
  • evidence.json
  • metadata.json
  • optimization-log.json
  • references/domain-checklist.md
  • references/israeli-holiday-calendar.md
  • scripts/check_shabbat.py

FAQ

What does the shabbat-aware-scheduler skill do?

Schedule meetings, deployments, and events respecting Shabbat, Israeli holidays (chagim), and Hebrew calendar constraints. Use when user asks to schedule around Shabbat, "zmanim", check Israeli holidays, plan around chagim, set Israeli business hours, or needs Hebrew calendar-aware scheduling logic. Includes halachic times (zmanim) via HebCal API, full Israeli holiday calendar, and Israeli business hour conventions. Do NOT use for religious halachic rulings (consult a rabbi) or diaspora 2-day holiday scheduling.

How do I install the shabbat-aware-scheduler skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the shabbat-aware-scheduler skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare shabbat-aware-scheduler with