[skill]
name = "email-draft"
description = "Draft a professional email response based on context and intent"
version = "0.1.0"
author = "openjarvis"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Analyze the email context and determine the appropriate tone, key points to address, and desired outcome. Context: {context}. Intent: {intent}"}'
output_key = "analysis"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Draft a professional email with proper greeting, body paragraphs addressing each key point, and appropriate closing. Analysis: {analysis}. Recipient: {recipient}"}'
output_key = "draft"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Review the draft for clarity, tone, grammar, and completeness. Suggest improvements if needed: {draft}"}'
output_key = "final_draft"
