Files
crimson_leaf_publishing/templates/book_research.yml
David Baity 50749f8e2b feat(clp): build full CLP agent roster, templates, and skills library
- 8 company agents: Lyra (intake), Selene (CEO), Atlas (research),
  Nova (publishing ops), Iris (author), Devon (dev editor),
  Lane (line editor), Cora (continuity editor)
- 19 additional templates (20 total): blog, recipe, short_story,
  book pipeline, ai_article, planning, boardroom, quick, project_index
- 5 skill guides: YA, Romance, SciFi, Blog, Recipe writing
- Rewritten charter and business plan

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

95 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}"
agent: Atlas
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"