Install
openclaw skills install @voronindenis5/pto-maximizerUse when planning vacation days for the year: turns N PTO days into the maximum number of long weekends and extended breaks by bridging public holidays, warns about holiday blackout windows, balances consumption across quarters, and exports the full year plan with ICS calendar events.
openclaw skills install @voronindenis5/pto-maximizerMost workers use vacation days reactively — a day here, a sick-ish Friday there — and discover in November they're sitting on 6 unused days and a use-it-or-lose-it deadline. The alternative is arithmetic: public holidays fall on fixed weekdays; a single PTO day adjacent to one buys a 4-day weekend; two days around one can buy a 9-day break.
The leverage points:
The script computes, for a given country/year and PTO budget, the best-value bridges: every placement of PTO days adjacent to holidays and weekends, ranked by days-off per PTO-day spent (efficiency), with an efficiency filter so you don't burn 5 days on a mediocre arc.
Don't use for: employer-specific policy math (accrual rates, carryover caps, negative balances — read your handbook; the script takes a fixed budget), or school-calendar coordination beyond US/UK/EU generic spring breaks.
The four canonical 1-day bridges (efficiency 4.0 — the best in the game):
| Holiday weekday | PTO placement | PTO days | Consecutive days off |
|---|---|---|---|
| Monday | Fri before | 1 | 4 (Fri–Mon) |
| Tuesday | Mon after | 1 | 4 (Sat–Tue) |
| Thursday | Fri after | 1 | 4 (Thu–Sun) |
| Friday | Mon before | 1 | 4 (Fri–Mon) |
Bigger shapes:
| Shape | PTO days | Consecutive off | Efficiency |
|---|---|---|---|
| Wed holiday: Tue or Thu | 1 | 2 (midweek pair) | 2.0 — bridge-poor |
| Fri–Mon bracket around a weekend holiday | 2 | 5–6 | 2.5–3.0 |
| Full week Mon–Fri | 5 | 9 (Sat–Sun arc) | 1.8 |
| Two adjacent holidays (e.g., Thu+Fri): Mon–Wed before | 3 | 10 (Sat–Mon) | 3.3 |
Efficiency = consecutive days off ÷ PTO days spent. Rules of thumb:
# US worker with 15 PTO days, current year
python3 scripts/pto_planner.py --country US --year 2026 --budget 15
# UK, 25 days, avoid school-holiday price spikes flag (blackout = Aug peak)
python3 scripts/pto_planner.py --country UK --year 2026 --budget 25
# Only bridges worth >= 3.0 efficiency, JSON for further processing
python3 scripts/pto_planner.py --country US --year 2026 --budget 10 --min-eff 3.0 --json
# Reserve 5 days for a summer week; plan the rest as bridges
python3 scripts/pto_planner.py --country US --year 2026 --budget 15 --reserve-summer 5
# Export the chosen plan to calendar
python3 scripts/pto_planner.py --country US --year 2026 --budget 15 --ics pto_2026.ics