Problem
src/cli/commands/fix.ts violates the project's CLI architecture rule: "CLI commands must not contain business logic."
- It directly calls
parseMarkdownTool, reviewSeoTool, and updateFrontmatterTool instead of delegating to a workflow (lines 25–33).
- It accepts
--mode light|medium|strong (line 16) but never passes it anywhere — the writing review (reviewWritingTool) is never called, so fix only surfaces SEO critical suggestions, never grammar/writing fixes.
Expected behaviour
- A
fixDraftWorkflow should be created under src/workflows/fixDraftWorkflow.ts that composes parseMarkdownTool, reviewSeoTool, reviewWritingTool, and updateFrontmatterTool.
- The
fix command should delegate to that workflow and pass --mode correctly.
- Writing suggestions marked with high confidence should be included in the diff output.
Files affected
src/cli/commands/fix.ts
src/workflows/ (new file needed)
References
- Architecture rule:
CLAUDE.md — "CLI commands must not contain business logic."
- Plan §7.4 —
fix command should show grammar/writing fixes.
Problem
src/cli/commands/fix.tsviolates the project's CLI architecture rule: "CLI commands must not contain business logic."parseMarkdownTool,reviewSeoTool, andupdateFrontmatterToolinstead of delegating to a workflow (lines 25–33).--mode light|medium|strong(line 16) but never passes it anywhere — the writing review (reviewWritingTool) is never called, sofixonly surfaces SEO critical suggestions, never grammar/writing fixes.Expected behaviour
fixDraftWorkflowshould be created undersrc/workflows/fixDraftWorkflow.tsthat composesparseMarkdownTool,reviewSeoTool,reviewWritingTool, andupdateFrontmatterTool.fixcommand should delegate to that workflow and pass--modecorrectly.Files affected
src/cli/commands/fix.tssrc/workflows/(new file needed)References
CLAUDE.md— "CLI commands must not contain business logic."fixcommand should show grammar/writing fixes.