From 0d7de00865f6229dafc9a88b155af94a2eb1d40e Mon Sep 17 00:00:00 2001 From: "k.hiro1818" Date: Sun, 11 Oct 2026 05:33:41 +0000 Subject: [PATCH] docs: clarify classification order in add-tasks skill Co-Authored-By: Claude Sonnet 5.5 --- .agents/skills/add-tasks/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.agents/skills/add-tasks/instructions.md b/.agents/skills/add-tasks/instructions.md index 6676dca1b..0cb806244 100644 --- a/.agents/skills/add-tasks/instructions.md +++ b/.agents/skills/add-tasks/instructions.md @@ -8,7 +8,7 @@ - `ABC_LIKE` / `ARC_LIKE`: exact match — a sequel (e.g. `diverta2019-2` next to `diverta2019`) needs its own key - `AGC_LIKE` / `ATCODER_UNIVERSITIES` / `ATCODER_OTHERS`: prefix match — check an existing key does not already swallow the new id with the wrong type - AOJ: regex (`regexForJag`, `regexForAojUniversity`) — no map edit if the id already matches; otherwise widening the regex also affects `getContestNameLabel` and `AojGenerator.canHandle`, so switch to `add-contest-table-provider` -- Rules are first-match-wins (`CLASSIFICATION_RULES` in `classification.ts`); confirm no earlier rule (`abc\d{3}`, `past`, `joi`, ...) catches the id +- `classifyContest` checks the exact-match `CONTEST_TYPES_BY_ID` first, then first-match-wins `CLASSIFICATION_RULES`; confirm no earlier rule (`abc\d{3}`, `past`, `joi`, ...) catches the id. If it already returns the intended type (e.g. adding tasks to `typical90`), skip the `prefixes.ts` edit - Use the official contest name; Japanese if one exists ## Collect rows