Files
crimson_leaf_publishing/templates/chapter_polish.yml
David Baity db06dce05d feat: wire skills guides into templates, deduplicate Iris RAG
Skills guides wired (all were dead code — no templates declared skills:):
- book_chapter.yml: YAFictionGuide + RomanceFictionGuide + SciFiFictionGuide
- chapter_review.yml: same (Devon, Lane, Cora reviewers now have genre context)
- chapter_roundtable.yml: same (debate participants use genre craft knowledge)
- chapter_polish.yml: same (Iris polishes with full genre guide in context)
- short_story.yml: same
- blog_write.yml: BlogWritingGuide
- recipe_develop.yml: RecipeWritingGuide

All templates updated to include 'skills' in sections list so guides
are injected as SKILLS & GUIDES block in the prompt.

Iris RAG deduplication:
- agents/iris/rag/agent.rag.md: 15 near-identical entries -> 2 canonical
  Entry 1: Bible & Continuity Check requirement
  Entry 2: Editorial assignments (Devon/Lane/Cora with their roles)
  13 duplicates removed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 09:39:05 -04:00

70 lines
1.5 KiB
YAML

name: chapter_polish
description: >
Iris polishes the chapter using the editorial consensus from the review roundtable.
debug: true
model: power
skills:
- guides/YAFictionGuide.md
- guides/RomanceFictionGuide.md
- guides/SciFiFictionGuide.md
sections:
- agent
- project
- rag
- skills
- message
- instructions
steps:
- type: think
hint: |
You are Iris, a fiction author.
Genre: {genre_name} | Audience: {genre_audience}
Chapter: {task.message}
You have received a full editorial review from three editors.
EDITORIAL CONSENSUS:
{consensus_critique}
KEY CHANGES REQUESTED:
{key_changes}
VERDICT: {chapter_verdict}
---
ORIGINAL CHAPTER:
{chapter_text}
---
Rewrite the chapter addressing all CONCERNS and KEY CHANGES from the editorial team.
Preserve everything the editors marked as STRENGTHS.
Do not add new plot elements not already present.
Match the genre tone and audience level throughout.
- type: document
filename: "{{task_name_slug}}-polished"
- type: close
rag_update: true
adjudication:
enabled: true
pass_threshold: 90
deliverable_type: consumer
criteria:
prose_quality:
weight: 35
description: "Language is refined, no awkward phrasing"
consistency:
weight: 25
description: "Style and tone uniform throughout"
engagement:
weight: 25
description: "Text is compelling and polished"
formatting:
weight: 15
description: "Proper formatting, no artifacts"