Files
crimson_leaf_publishing/templates/book_research.yml
David Baity 1f811e98e1 fix(clp): genericise templates — no hardcoded agents/companies/task-types
- planning.yml: roster-driven task types, no hardcoded agent names or generic types
- chapter_roundtable.yml: removed fixed [Devon,Lane,Cora] participant list, any editor can join
- book_chapter.yml: removed hardcoded agents from roundtable spawn
- book_research.yml: removed agent: Atlas from book_outline spawn (Bouncer routes by type)
- ai_article_research.yml: removed agent_name: Atlas from plan spawn
- book_editorial.yml: removed Shadow Heir/Elara/Kai/Alpha Publishing/Wattpad hardcoding
- project_index.yml: removed Wattpad reference
- ai_article_write.yml: fixed adjudication criteria (article, not fiction chapter)
- chapter_review.yml: reply→document so reviews are committed and accessible

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:34:36 -04:00

94 lines
2.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: book_research
description: "Research trends and context for a book — live search + synthesis + documented findings."
debug: true
system: agent_prompt
agent_prompt:
- "= identity.md"
- "agent.rag.json"
sections:
- agent
- project
- history
- rag
- prior_results
- message
- instructions
builders:
prior_results: |
*** WEB SEARCH RESULTS ***
{steps[1].text}
(If the above is empty, use your expert training knowledge to answer this question.)
steps:
- type: think
hint: |
You are researching the current {genre_name} fiction landscape.
TARGET AUDIENCE: {genre_audience}
GENRE: {genre_name}
RESEARCH FOCUS: {research_focus}
Your mission: identify the single best search query to find what's TRENDING RIGHT NOW
in {genre_name} fiction in 20252026.
State your analysis, then on the last line write:
SEARCH QUERY: [your query here]
Query rules: 38 words. Specific.
- type: tool
capability: Tool_WebSearcher
input_from: last_text
- type: think
hint: |
You have live search results above (in PRIOR RESULTS).
If the web search results are empty or unavailable, use your expert training knowledge.
Synthesize the findings into an actionable publishing brief for a {genre_name} book:
1. TOP TRENDING — What sub-genres and themes are hot right now? Rank them.
2. AUDIENCE INSIGHTS — What does the target reader ({genre_audience}) demand?
3. STORY MECHANICS — What structural patterns are winning?
4. HOT TOPIC RECOMMENDATIONS — Give 3 distinct book concept seeds, each with:
- Working title
- Core hook (one sentence)
- Protagonist archetype
- Central conflict
- Why it will resonate now
5. COMPETITIVE GAPS — Where is the market undersupplied?
6. SOURCES — Key URLs or references.
- type: document
filename: "{{task_name_slug}}"
- type: spawn
task_type: book_outline
task_name: "Book Outline: {project.name}"
message: "{task.message}"
- type: close
rag_update: true
adjudication:
enabled: true
pass_threshold: 65
deliverable_type: coordination
criteria:
accuracy:
weight: 35
description: "Facts are correct and verifiable"
thoroughness:
weight: 30
description: "Topic covered in sufficient depth"
source_quality:
weight: 20
description: "Sources are credible and relevant"
organization:
weight: 15
description: "Findings are well-structured"