Clean up a file-review report by removing addressed problems and writing "No issues found." for empty sections
Remove addressed (strikethrough-marked) problem entries from a file-review report and replace emptied sections with the appropriate "no issues" placeholder.
Parse $ARGUMENTS to get the file path. Accept:
lab/tasks/ (e.g., lab/setup/setup-full.md, lab/tasks/required/task-2.md)wiki/ (e.g., wiki/api.md)contributing/conventions/ (e.g., contributing/conventions/writing/common.md)AGENTS.md fileinstructors/meetings/week-N/meeting-M/report.mdIf the path is missing or does not match one of these patterns, ask the user.
Derive the review file path:
instructors/meetings/ files: report-review.md in the same directory as the source file (e.g., instructors/meetings/week-2/meeting-1/report-review.md for ).instructors/meetings/week-2/meeting-1/report.mdinstructors/file-reviews/<repo-root-path>, where <repo-root-path> is the target file's path from the repository root (e.g., instructors/file-reviews/lab/tasks/required/task-1.md).If the review file does not exist, tell the user to run /review-file <path> first and stop.
Read the review file.
Identify addressed items. An item is addressed if its opening line is a numbered list entry where the content is wrapped in strikethrough: 1. ~~…~~. Multi-line items have their continuation lines (indented paragraphs and their blank separator lines) also wrapped in strikethrough.
Remove each addressed item — the numbered list line, any blank lines that follow it within the same item, and any indented continuation paragraphs (lines starting with three or more spaces that belong to the same item). Re-number the remaining items in each section sequentially starting from 1.
Replace emptied sections. After removal, if a section heading (e.g., ### D3. Student navigation or ### 4.2. Terminal commands) has no remaining numbered items beneath it, replace the empty body with a single line matching the original placeholder style:
No issues found. for Conceptual findings sections, Convention findings sections, and Meeting report findings sections.Not applicable. only if the original section already said "Not applicable." and no items were removed from it (i.e., it was already not applicable — do not change it).No TODOs found. for the TODOs section.No empty sections found. for the Empty sections section.Update the Summary table. Recount all remaining items in the report (excluding strikethrough lines) and update the counts in the summary table. Recalculate the Total row. Rewrite the Overall assessment paragraph to reflect the current state of the file (remaining issues only).
~~ strikethrough. Never remove items that are not marked.1., 2., 3., …).After editing the report, print a one-line summary: how many items were removed and how many remain.