From taiwan-calendar
Taiwan calendar query for accurate working day/holiday information. Use when user asks about Taiwan dates, working days, holidays, make-up workdays, or needs date calculations. Solves Claude's knowledge cutoff issues with Taiwan's administrative calendar.
How this skill is triggered — by the user, by Claude, or both
Slash command
/taiwan-calendar:taiwan-calendarThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Provides accurate Taiwan working day and holiday information by querying government open data APIs in real-time.
Provides accurate Taiwan working day and holiday information by querying government open data APIs in real-time.
Claude Code frequently makes errors with Taiwan date-related queries due to knowledge cutoff:
This skill queries Taiwan's government administrative calendar API to provide accurate, up-to-date information.
Trigger actively when user asks about:
Also use for:
All commands use: uv run --managed-python scripts/taiwan_calendar.py <command>
today - Today's date and statusuv run --managed-python scripts/taiwan_calendar.py today
Output example:
2025-01-06 (週一) 是工作日。
check <date> - Check specific dateuv run --managed-python scripts/taiwan_calendar.py check 2025-01-01
uv run --managed-python scripts/taiwan_calendar.py check 01/01
Output example:
2025-01-01 (週三) 是非工作日 - 元旦。
Date formats supported:
YYYY-MM-DD (e.g., 2025-01-01)YYYY/MM/DD (e.g., 2025/01/01)MM/DD (assumes current year, e.g., 01/01)range <start> <end> - Count working days in rangeuv run --managed-python scripts/taiwan_calendar.py range 2025-01-01 2025-01-31
Output example:
2025-01-01 到 2025-01-31 共有 23 個工作日。
期間假日:
- 2025-01-01 (週三) - 元旦
- 2025-01-29 (週三) - 春節
add-days [date] <n> - Calculate N working days later# From today
uv run --managed-python scripts/taiwan_calendar.py add-days 5
# From specific date
uv run --managed-python scripts/taiwan_calendar.py add-days 2025-01-06 5
Output example:
從 2025-01-06 算起 5 個工作日後是 2025-01-13 (週一)。
next-working [date] - Find next working day# From today
uv run --managed-python scripts/taiwan_calendar.py next-working
# From specific date
uv run --managed-python scripts/taiwan_calendar.py next-working 2025-01-03
Output example:
下一個工作日是 2025-01-06 (週一)。
next-holiday [date] - Find next holiday# From today
uv run --managed-python scripts/taiwan_calendar.py next-holiday
# From specific date
uv run --managed-python scripts/taiwan_calendar.py next-holiday 2025-01-06
Output example:
下一個假日是 2025-01-29 (週三) - 春節。
User: "今天是幾號?"
Response:
[Run: uv run --managed-python scripts/taiwan_calendar.py today]
Output: 2025-01-06 (週一) 是工作日。
"今天是 2025 年 1 月 6 日(週一),是工作日。"
User: "元旦是放假嗎?"
Response:
[Run: uv run --managed-python scripts/taiwan_calendar.py check 01/01]
Output: 2025-01-01 (週三) 是非工作日 - 元旦。
"是的,元旦(1/1)是國定假日。"
User: "報告要 5 個工作天內交,今天開始算那是哪天?"
Response:
[Run: uv run --managed-python scripts/taiwan_calendar.py add-days 5]
Output: 從 2025-01-06 算起 5 個工作日後是 2025-01-13 (週一)。
"從今天算起 5 個工作日後是 1 月 13 日(週一)。"
User: "這個月有幾個工作日?"
Response:
[Run: uv run --managed-python scripts/taiwan_calendar.py range 2025-01-01 2025-01-31]
Output: 2025-01-01 到 2025-01-31 共有 23 個工作日。
期間假日:
- 2025-01-01 (週三) - 元旦
"這個月(1月)有 23 個工作日,期間有元旦(1/1)放假。"
User: "下一個連假是什麼時候?"
Response:
[Run: uv run --managed-python scripts/taiwan_calendar.py next-holiday]
Output: 下一個假日是 2025-01-29 (週三) - 春節。
"下一個假日是春節,從 1 月 29 日(週三)開始。"
tempfile.gettempdir())taiwan-calendar-cache.json✅ DO use for:
❌ DON'T use for:
The script outputs Chinese (Traditional) responses. Use these directly when responding to users, or translate if needed.
Always use the full command with uv run --managed-python:
uv run --managed-python scripts/taiwan_calendar.py <command> [args]
NEVER use:
python scripts/taiwan_calendar.py ❌cd scripts && uv run taiwan_calendar.py ❌The script path is relative to the skill directory.
Cause: All API sources unavailable
Solution:
Cause: Unrecognized date format
Solution: Use supported formats:
YYYY-MM-DD (e.g., 2025-01-06)YYYY/MM/DD (e.g., 2025/01/06)MM/DD (e.g., 01/06)Cause: Ambiguous date input
Solution: Be explicit with year for dates far from today
This is the main skill file. All essential information is included here for immediate use.
For implementation details, see: scripts/taiwan_calendar.py
npx claudepluginhub pigfoot/claude-code-hubs --plugin taiwan-calendarUse this skill for any task involving Thai date formatting, Buddhist Era (พ.ศ.) ↔ Gregorian (ค.ศ.) year conversion, or Arabic ↔ Thai numeral conversion. Trigger whenever the user asks to: convert พ.ศ. to ค.ศ. or vice versa, format a date in Thai government / business / casual style, parse a Thai date string with full or abbreviated month names, or convert digits between 0123456789 and ๐๑๒๓๔๕๖๗๘๙. Also trigger for requests like "แปลง พ.ศ. เป็น ค.ศ.", "จัดรูปแบบวันที่ไทย", "วันที่แบบราชการ", "เปลี่ยนเป็นเลขไทย", or any variation involving Thai calendar dates.
Executes Bash command to fetch current UTC date and time, ensuring accurate temporal context for time-sensitive tasks, deadlines, and documentation.
Provides a date input component that accepts Japanese era (Wareki) dates and converts them to Gregorian dates. Useful for forms requiring Japanese calendar input.