Skip to content

Commit 28b8f8e

Browse files
committed
Address review: case-insensitive checkboxes, preserve file verbatim
- Accept [x], [X], and leading whitespace for nested task items - Explicitly state only the [ ]/[x] marker is toggled; all other file content (headings, metadata, notes, ordering, whitespace) must remain unchanged to avoid noisy diffs
1 parent 2320542 commit 28b8f8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/commands/clarify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ Execution steps:
202202
- If it does NOT exist, skip this step silently.
203203
- If it exists:
204204
1. Read the checklist file.
205-
2. Identify all GitHub task-list checkbox lines — lines matching `- [ ]` or `- [x]` outside of code fences. Ignore all other content (headings, notes, non-checkbox bullets, metadata).
205+
2. Identify all GitHub task-list checkbox lines — lines matching `- [ ]`, `- [x]`, or `- [X]` (case-insensitive, tolerant of leading whitespace for nested items) outside of code fences. Ignore all other content (headings, notes, non-checkbox bullets, metadata).
206206
3. Re-evaluate each checkbox item against the **updated** spec (the version just saved in step 7).
207207
4. For each checkbox item, set its marker based solely on whether it passes against the current spec — prior state does not matter:
208208
- If the item passes: set to `- [x]`.
209209
- If the item does not pass: set to `- [ ]` (even if it was previously `- [x]` — spec edits can cause regressions).
210-
5. Save the updated checklist file.
210+
5. Save the updated checklist file. **Only toggle the `[ ]`/`[x]` marker portion of checkbox lines.** All other file content — headings, metadata, notes, line ordering, whitespace — must remain unchanged to avoid noisy diffs.
211211
6. Record the before/after pass counts as checked/total checkbox items for the Completion Report (e.g., "12/16 → 15/16 items passing").
212212
213213
Behavior rules:

0 commit comments

Comments
 (0)