/israel-opening-hours:hours-rules-authoringfrom israel-opening-hours
Write or edit an hours-rules JSON file — the format that encodes Israeli opening hours including Shabbat- and chag-relative rules, for resolution by israel_hours.py. Covers the schema, selector precedence, anchor expressions, hybrid earliest_of/latest_of closings, and how to translate Hebrew hours phrasing into rules. Use after collecting stated hours from Google or easy.co.il.
Ships in israel-opening-hours. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An hours-rules file encodes what a business's hours mean, so they can be
evaluated against any date. Schema: ${CLAUDE_PLUGIN_ROOT}/schema/hours-rules.schema.json.
Worked example: ${CLAUDE_PLUGIN_ROOT}/examples/makolet-jerusalem.json.
{
"name": "Business name",
"location": { "city": "jerusalem" },
"source": "google + easy.co.il",
"confidence": "friday close is derived, not stated",
"stated_hours_verbatim": { "he": "...", "en": "..." },
"weekly": { "sun": [ ... ], "mon": [ ... ] },
"day_types": { "erev_shabbat": [ ... ], "shabbat": [ ... ] },
"dates": [ { "date": "2026-09-11", "windows": [ ... ] } ],
"default": [ ]
}
Always fill stated_hours_verbatim with the merchant's original wording,
Hebrew included. It is the audit trail for every derived time, and it lets a
later session re-derive the rules without refetching.
Most specific wins, first match only:
dates[] — an exact dateday_types{} — the day's classificationweekly{} — sun…satdefault[]A day has exactly one day_type, resolved by israel_hours.py itself. A Friday
before a chag classifies as erev_yom_tov, not erev_shabbat. A Saturday that
is also yom tov classifies as shabbat_yom_tov. So define erev_yom_tov and
shabbat_yom_tov explicitly if the business treats them differently — they will
not fall through to erev_shabbat / shabbat.
{ "open": <endpoint>, "close": <endpoint>, "label": "human explanation" }
An empty window list means closed all day. If close is earlier than
open, the window is taken to run past midnight and is flagged
crosses_midnight.
| Form | Meaning |
|---|---|
"14:30" | clock time on that date, in the location's own UTC offset |
{"anchor": "havdalah", "offset_min": 60} | 60 min after havdalah |
{"anchor": "candle_lighting", "offset_min": -90} | 90 min before candle lighting |
{"anchor": "sunset", "offset_min": -30, "anchor_date": "2026-09-13"} | anchor taken from a specific other date |
{"earliest_of": [ ... ]} | whichever resolves earliest |
{"latest_of": [ ... ]} | whichever resolves latest |
Anchors: sunrise, sunset, chatzot, tzeit (every day);
candle_lighting, havdalah (only on days they occur).
A window anchored to candle_lighting or havdalah on a day that has neither
is skipped, not an error — recorded in notes as "window not applicable".
That is how a motzei-chag reopening correctly does nothing on the first day of
a two-day chag.
earliest_of for Friday closingsThis is the single most important modelling point, and getting it wrong is the most common source of bad estimates.
A bare offset before candle lighting does not extrapolate across the year. Candle lighting in Jerusalem ranges from ~16:00 in midwinter to ~19:15 in midsummer. A shop observed closing at 14:30 on a January Friday is not closing at 17:45 in July — staff still leave mid-afternoon. In winter the constraint is Shabbat; in summer it is the working day.
Model it as a hybrid:
"close": { "earliest_of": ["15:00", {"anchor": "candle_lighting", "offset_min": -90}] }
Verified behaviour, Jerusalem: Friday 2026-01-02 → closes 14:37 (candle lighting 16:07 drives it). Friday 2026-07-31 → closes 15:00 (the clock cap drives it).
Only use a bare offset when the source explicitly states one ("עד שעה לפני כניסת השבת").
| Phrase | Rule |
|---|---|
עד כניסת השבת | {"anchor": "candle_lighting", "offset_min": 0} |
שעה לפני כניסת השבת | {"anchor": "candle_lighting", "offset_min": -60} |
חצי שעה לפני כניסת השבת | offset_min: -30 |
שעה לאחר צאת השבת | {"anchor": "havdalah", "offset_min": 60} |
מיד במוצ"ש | {"anchor": "havdalah", "offset_min": 15} — allow a short grace |
סגור בשבת | "shabbat": [] |
פתוח בשבת | give shabbat normal clock windows |
ערב חג כמו ערב שבת | copy the erev_shabbat windows into erev_yom_tov |
Google gives you "Friday 08:00–15:00" and nothing else. You do not know whether 15:00 is a fixed time or a Shabbat-derived one. Do this:
earliest_of with the clock time as the cap.confidence and tell the user the
Friday time is an inference.Do not invent precision. A rules file that says "we don't know the Friday rule"
in confidence is more useful than one that quietly guesses.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/check-opening-hoursAnswer "is this Israeli business open" / "what time does it open" / "will it be open before Shabbat" for a named business. Gathers stated hours from Google Business and easy.co.il, then resolves any Shabbat- or chag-relative phrasing into concrete clock times for the requested date using Hebcal candle-lighting and havdalah times. Use for any opening-hours question about a business in Israel./easy-co-il-lookupLook up an Israeli business on easy.co.il (the Israeli business directory, דפי עסקים) for opening hours, phone and address. Often carries the merchant's own Hebrew hours text with Shabbat-relative wording intact, which Google strips. Requires a real browser — the site is behind a Cloudflare JavaScript challenge. Use when Google has no entry, the entry looks stale, or you need the original Hebrew phrasing.Other plugins' skills for the same job
/google-business-hoursisrael-opening-hours@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin israel-opening-hours