From f33457ee4cc76ea51259a5e35d4733aca14274a7 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Thu, 22 Jan 2026 21:24:00 -0800 Subject: [PATCH] feat: add optional style_guide input to editorial review tasks When provided, the style_guide input overrides all generic principles (including Microsoft Style Guide baseline, reader-type priorities, and structure-model selection) except CONTENT IS SACROSANCT. Changes to both editorial-review-structure.xml and editorial-review-prose.xml: - Add style_guide input after content input - Add STYLE GUIDE OVERRIDE instruction in llm section - Add "Consult style_guide" action in Step 3 for mid-flow refresh Co-Authored-By: Claude Opus 4.5 --- src/core/tasks/editorial-review-prose.xml | 11 ++++++++++- src/core/tasks/editorial-review-structure.xml | 11 +++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/core/tasks/editorial-review-prose.xml b/src/core/tasks/editorial-review-prose.xml index f6714b43..ab0aefca 100644 --- a/src/core/tasks/editorial-review-prose.xml +++ b/src/core/tasks/editorial-review-prose.xml @@ -7,6 +7,10 @@ + @@ -32,7 +36,11 @@ No conflicts: Merge overlapping fixes into single entries Respect author voice: Preserve intentional stylistic choices - + STYLE GUIDE OVERRIDE: If a style_guide input is provided, + it overrides ALL generic principles in this task (including the Microsoft + Writing Style Guide baseline and reader_type-specific priorities). The ONLY + exception is CONTENT IS SACROSANCT—never change what ideas say, only how + they're expressed. When style guide conflicts with this task, style guide wins. @@ -54,6 +62,7 @@ + Consult style_guide now and note its key requirements—these override default principles for this review Review all prose sections (skip code blocks, frontmatter, structural markup) Identify communication issues that impede comprehension For each issue, determine the minimal fix that achieves clarity diff --git a/src/core/tasks/editorial-review-structure.xml b/src/core/tasks/editorial-review-structure.xml index 26ef400a..fb8f0af6 100644 --- a/src/core/tasks/editorial-review-structure.xml +++ b/src/core/tasks/editorial-review-structure.xml @@ -11,6 +11,10 @@ + @@ -41,6 +45,12 @@ Propose, don't execute: Output recommendations-user decides what to accept CONTENT IS SACROSANCT: Never challenge ideas—only optimize how they're organized. + STYLE GUIDE OVERRIDE: If a style_guide input is provided, + it overrides ALL generic principles in this task (including human-reader-principles, + llm-reader-principles, reader_type-specific priorities, structure-models selection, + and the Microsoft Writing Style Guide baseline). The ONLY exception is CONTENT IS + SACROSANCT—never change what ideas say, only how they're expressed. When style + guide conflicts with this task, style guide wins. These elements serve human comprehension and engagement-preserve unless clearly wasteful: Visual aids: Diagrams, images, and flowcharts anchor understanding @@ -122,6 +132,7 @@ Note reader_type and which principles apply (human-reader-principles or llm-reader-principles) + Consult style_guide now and note its key requirements—these override default principles for this analysis Map the document structure: list each major section with its word count Evaluate structure against the selected model's primary rules (e.g., 'Does recommendation come first?' for Pyramid)