[skill]
name = "topic-research"
description = "Research a topic using web search, check memory for prior knowledge, and synthesize findings"
version = "0.1.0"
author = "openjarvis"

[[skill.steps]]
tool_name = "memory_search"
arguments_template = '{"query": "{topic}"}'
output_key = "prior_knowledge"

[[skill.steps]]
tool_name = "web_search"
arguments_template = '{"query": "{topic}"}'
output_key = "search_results"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Synthesize a comprehensive research summary combining prior knowledge and new findings. Prior: {prior_knowledge}. New: {search_results}"}'
output_key = "synthesis"

[[skill.steps]]
tool_name = "memory_store"
arguments_template = '{"content": "{synthesis}", "metadata": "topic_research:{topic}"}'
output_key = "stored"
