@@ -57,6 +57,21 @@ Review prose docs for internal consistency.
5757- Outdated references to removed features
5858- Tone inconsistencies
5959
60+ ### 4. Code Pattern Drift
61+
62+ Check that code follows established conventions in CONVENTIONS.md.
63+
64+ **Check for:**
65+ - CLI output methods: `fmt.Print*` instead of `cmd.Print*` in CLI code
66+ - Other patterns documented in CONVENTIONS.md
67+
68+ **Method:**
69+ 1. Read CONVENTIONS.md to understand established patterns
70+ 2. Grep for violations (e.g., `fmt.Print` in `internal/cli/**/ *.go ` )
71+ 3. Flag files that violate conventions
72+
73+ **Files to scan:** ` internal/cli/**/ *.go ` for CLI patterns
74+
6075## Output Format
6176
6277Produce a structured report:
@@ -68,6 +83,7 @@ Produce a structured report:
6883- X Go docstring issues found
6984- Y CLI/docs mismatches found
7085- Z narrative inconsistencies flagged
86+ - W code pattern violations found
7187
7288## Go Docstring Issues
7389
@@ -92,14 +108,22 @@ Produce a structured report:
92108
93109### Outdated References
94110- ` docs/integrations.md:45` — References removed ` --minimal` flag
111+
112+ ## Code Pattern Violations
113+
114+ ### CLI Output Methods
115+ - ` internal/cli/task/run.go:127` — Uses ` fmt.Printf` instead of ` cmd.Printf`
116+ - ` internal/cli/watch/run.go:45` — Uses ` fmt.Println` instead of ` cmd.Println`
95117` ` `
96118
97119## Execution
98120
99- 1. **Scan Go files** for docstring patterns
100- 2. **Parse docs/*.md** for CLI references
101- 3. **Run ctx --help** variants to get actual CLI surface
102- 4. **Compare and report**
121+ 1. **Read CONVENTIONS.md** to understand established patterns
122+ 2. **Scan Go files** for docstring patterns
123+ 3. **Parse docs/*.md** for CLI references
124+ 4. **Run ctx --help** variants to get actual CLI surface
125+ 5. **Check code patterns** against conventions (e.g., CLI output methods)
126+ 6. **Compare and report**
103127
104128Do NOT auto-fix anything. This audit produces a report for human review.
105129
0 commit comments