JB

    Japan Business Days

    by Miu

    1

    Deterministic Japanese business day and holiday calculator with Wareki era support for 2025-2027.

    Free

    Security scanned

    Works with the AI Agents you already use

    JB

    Japan Business Days

    Example session with this skill installed

    Calculate 5 business days after 2026-04-28 in Japan and convert the result to Wareki.

    • Read your context and instructions
    • Compiled the japan business days

    I have calculated the business day adjustment and converted the resulting date to the Japanese era format.

    Japanese Date Calculation Result

    AttributeValue
    Start Date2026-04-28
    Adjustment+5 Business Days
    Result Date2026-05-11
    Holiday Conflicts2026-04-29 (Showa Day), 2026-05-03 (Const.), 2026-05-04 (Greenery), 2026-05-05 (Children's), 2026-05-06 (Substitute)
    Wareki EraReiwa 8
    Formatted EraReiwa 8 (R8) - 2026-05-11
    Fiscal Year2026
    {
      "calculation": {
        "start": "2026-04-28",
        "days_added": 5,
        "result": "2026-05-11",
        "skipped_holidays": [
          "2026-04-29",
          "2026-05-03",
          "2026-05-04",
          "2026-05-05",
          "2026-05-06"
        ]
      },
      "wareki": {
        "era": "Reiwa",
        "year": 8,
        "formatted": "Reiwa 8 (R8)"
      }
    }
    

    Next steps

    • Use the 2026-05-11 date for scheduling your delivery or deadline.
    • Verify if any company-specific holidays apply to this window.
    • Run holidays 2026 to see the full list of observances for that year.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Agents frequently hallucinate Japanese holiday logic, failing to account for Substitute Holidays that cascade past other holidays or the Citizens' Holiday "sandwich" rule. This skill provides a deterministic Python engine for precise date arithmetic according to Japan's Act on National Holidays.

    What it does

    • Holiday identification confirms if a date is a national holiday, including complex shifts like Golden Week 2026.
    • Business day arithmetic adds or subtracts workdays while automatically skipping weekends and public holidays.
    • Wareki conversion transforms Gregorian dates into the Japanese era format, such as Reiwa 8.
    • Interval calculation counts the exact number of business days between two specific dates for project planning.
    • Fiscal year detection identifies the correct Japanese fiscal year, which begins on April 1.

    How it works

    1. Validation checks if the requested year is within the supported 2025 to 2027 range.
    2. Command execution runs the local Python script using specific modes like is-business-day, add, or between.
    3. Logic processing applies the "Happy Monday" system and calculates equinox dates based on official Cabinet Office announcements.
    4. JSON output returns structured data for easy integration into scheduling or reporting workflows.

    Frameworks & tools

    The skill uses a standalone Python 3.9+ script relying exclusively on the standard library. It requires no external dependencies and operates entirely offline.

    Why this beats prompting it yourself

    LLMs struggle with the logic of Substitute Holidays that move to the next available non-holiday weekday. This script replaces probabilistic guessing with a verified, deterministic implementation of Japanese law for 2025 through 2027.

    Use cases

    • Calculate exact shipping or delivery windows for Japanese customers during Golden Week.
    • Set payment deadlines that avoid banking holidays and weekends in Japan.
    • Generate Japanese fiscal year reports and official era (wareki) dates for documentation.
    • Build project schedules that account for Silver Week "sandwich" holidays.

    Known limitations

    Supports years 2025 through 2027 only. Does not include company-specific closures or regional festivals. Requires a Python 3.9+ environment to execute the scripts.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Listed7 days ago

    What's inside

    Creator

    M

    Miu

    2 skills on Agensi

    Frequently Asked Questions

    Large Language Models often struggle with Japan's complex 'Substitute Holiday' cascading logic. This skill solves the issue by replacing AI guessing with a deterministic Python engine that follows the actual Act on National Holidays.

    The skill supports the years 2025, 2026, and 2027. It includes precise calculations for the 'Happy Monday' system, equinox shifts, and the 'Citizens' Holiday' sandwich rules specific to these years.

    This skill is a standalone Python 3.9+ tool designed to be called by any AI agent or automation framework capable of executing local scripts. It returns structured JSON, making it easy to integrate into scheduling or reporting workflows.

    You will receive the core Python engine, documentation on the supported execution modes (like 'add' or 'between'), and the pre-configured logic for Japanese fiscal years and Wareki era conversions.

    No, the skill relies exclusively on the Python standard library and operates entirely offline. This ensures your scheduling data remains private and calculations are performed instantly without API latency.

    The logic handles all national public holidays and the standard Monday-Friday work week. It does not account for company-specific 'Obon' closures, year-end private bank holidays, or local regional festivals.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    Free