Identify recurring patterns in tasks and wiki files that could become conventions
Scan lab/tasks/ and/or wiki/ files for recurring structural, formatting, or writing patterns that appear consistently across files but are not yet documented as conventions.
Parse $ARGUMENTS to determine scope:
lab/tasks/ and wiki/tasks → scan only lab/tasks/wiki → scan only wiki/lab/tasks/ or wiki/ → use that file's directory as the scopeList all .md files in the scope directories (recursively for lab/tasks/).
Read all convention files that apply to the scope:
instructors/context/conventions/common.mdlab/tasks/: read instructors/context/conventions/tasks.mdwiki/: read instructors/context/conventions/wiki.mdRead every .md file in the scope. For each file, note recurring elements:
Group identical or near-identical patterns across files. A pattern qualifies as a candidate if:
For each candidate pattern record:
Write the report to tmp/find-new-patterns/report.md. Create intermediate directories if they do not exist.
Structure:
After writing the file, print its path in the conversation so the user can find it.