Comp date range

From 2017YANR02/cuberoot.me · View interactive version

Comp date range is an AI agent skill from the GitHub repository 2017YANR02/cuberoot.me. Use when rendering WCA competition dates anywhere in UI (popups, cards, modal headers, day list, bin-panel). All dates must be ISO yyyy-mm-dd; cross-day ranges use compact form (2026-06-06~07) — never locale month names (May 1–3). Triggers: \"比赛日期\", \"日期区间\", \"date range\", \"start_date end_date\"

How to use this skill

Skill file

比赛日期格式

全项目统一 ISO yyyy-mm-dd,不按 isZh 切英文/中文月名。跨天比赛用紧凑区间(不重复年月):

| 场景 | 格式 |

|---|---|

| 同天 | 2026-06-06 |

| 同月 | 2026-06-06~07 |

| 同年跨月 | 2026-06-28~07-02 |

| 跨年 | 2025-12-30~2026-01-02 |

工具 `utils/date_range.ts`

formatDateRangeIso(startISO, endISO?) → 紧凑区间字符串
toIsoDate(date) → Date → 'YYYY-MM-DD'(本地时区)

禁止

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.