[skill]
name = "translate-doc"
description = "Translate a document from one language to another while preserving formatting"
version = "0.1.0"
author = "openjarvis"

[[skill.steps]]
tool_name = "file_read"
arguments_template = '{"path": "{file_path}"}'
output_key = "original_content"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Detect the source language and analyze the document structure, formatting, and any specialized terminology: {original_content}"}'
output_key = "analysis"

[[skill.steps]]
tool_name = "llm_call"
arguments_template = '{"prompt": "Translate the following text to {target_language}, preserving all formatting, technical terms, and document structure: {original_content}"}'
output_key = "translation"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Review the translation for accuracy, natural phrasing, and formatting preservation. Note any terms that may need human review: {translation}"}'
output_key = "reviewed_translation"
