public-holidays

GitHub

查询全球100+国家公共假日,支持单日期验证、全年列表、长周末检测及跨国团队协同排期。通过Nager.Date API获取带本地名称的假期信息,并智能处理区域限制和假期类型差异,提供精确的curl命令。

plugins/pm-live/skills/public-holidays/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

查询某国某年有哪些公共假日 判断特定日期是否为假日 寻找今年的长周末 协调多国团队的共同休息日

Install

npx skills add mohitagw15856/pm-claude-skills --skill public-holidays -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-live/skills/public-holidays -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@public-holidays

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill public-holidays -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "public-holidays",
    "description": "Look up public holidays for any country and year with zero API keys — the Nager.Date API via curl, with long-weekend detection and cross-country planning. Use when asked what are the holidays in a country, is date X a holiday somewhere, find long weekends this year, or which days is the team in Japan and Germany both off. Produces the holiday list with local names, the specific-date answer, long-weekend candidates, and the rerunnable command."
}

Public Holidays Skill

"Is Monday a holiday in Germany?" is a five-second question that decides deploy schedules, invoice due dates, and vacation math — and Nager.Date answers it for 100+ countries over keyless HTTPS. This skill fetches, answers the actual question (a date, a plan, a long weekend), and respects the two traps: regional holidays that don't apply nationwide, and the countries whose holiday culture the API's global flag quietly encodes.

What This Skill Produces

  • The answer — is/isn't a holiday, the next one coming, or the year's list — whichever was asked
  • Local names alongside English — 元日 reads differently than "New Year's Day," and the local name is what colleagues will say
  • Long-weekend candidates — holidays adjacent to weekends, the planning gold
  • The command — exact curl, rerunnable

Required Inputs

Ask for these if not provided:

  • Country (or countries) — ISO two-letter codes resolved from names; multi-country questions are batched, one call each
  • Year — default the current year; "next 12 months" spans two calls
  • The real question — a specific date, planning a trip, scheduling around a team, or hunting long weekends — the output shapes to it

Framework: The Calls and the Traps

  1. The year list: curl -s "https://date.nager.at/api/v3/PublicHolidays/2026/JP" → JSON array with date, localName, name, global, counties, types. Next holidays: .../api/v3/NextPublicHolidays/DE. Specific-date check: fetch the year, match the date. Long weekends, precomputed: .../api/v3/LongWeekend/2026/DE — the API does the adjacency math itself.
  2. The global flag is the regional trap: global: false + a counties array means the holiday applies only in listed regions (Bavaria's extra days, Scotland vs England). Answering "Germany has a holiday" for a Bavaria-only day is the classic wrong answer — quote the regions.
  3. types matters at the edges: most entries are Public, but some countries include Bank, School, Optional, Observance — an Observance is not a day off; filter or label by type when the question is "is the office closed."
  4. Cross-country scheduling: fetch each country, then intersect/union per the question ("when are BOTH teams off" vs "when is ANYONE off"); present as a small table with local names.
  5. Coverage honesty: ~110 countries; religious holidays following lunar calendars are included where official but company/regional observances (Diwali bonus days, US company holidays like day-after-Thanksgiving) may not be — say when a workplace calendar could differ from the public list.

Output Format

Holidays: [country/countries, year]

[The direct answer to the actual question first.]

Date Holiday (local · English) Scope
[Filtered to the question — the date, the range, the intersection; regional entries labeled with their regions]

[Long-weekend section when planning was the intent]

Source: Nager.Date · rerun: [exact curl] [Coverage caveat when workplace/regional nuance is in play]

Quality Checks

  • The specific question is answered before any list appears
  • Regional (global: false) holidays are labeled with their regions, never presented as national
  • Non-public types are filtered or labeled when "day off" is the question
  • Local names appear alongside English
  • Multi-country answers show the intersection/union the question implied

Anti-Patterns

  • Do not answer from memory — holiday rules change and lunar dates move; fetch or hand over the command
  • Do not present a regional holiday as nationwide — the global flag exists to be read
  • Do not count observances as days off
  • Do not dump 15 holidays when the question was one date
  • Do not promise a workplace is closed — public holidays and company calendars are cousins, not twins

Version History

  • 54fad50 Current 2026-07-19 13:04

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
2ba2f8a2
Indexed
2026-07-19 13:04

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-30 11:14
浙ICP备14020137号-1 $방문자$