9 bundled workflow templates: - data-pipeline: ETL extract/transform/validate - content-review: multi-agent draft/quality/accuracy/edit - customer-support: tiered triage/response/escalation - code-review: parallel correctness+security+style analysis - research: research/fact-check/summarize - content-pipeline: research → write → edit article creation - translate-polish: auto-detect language, translate, review - brainstorm: ideation → evaluation → action plan - weekly-report: raw notes → organized → polished report
21 lines
1.0 KiB
TOML
21 lines
1.0 KiB
TOML
id = "translate-polish"
|
|
name = "Translation & Polish"
|
|
description = "Auto-detect language, translate, and review for naturalness"
|
|
category = "language"
|
|
tags = ["translation", "language", "localization"]
|
|
|
|
[[parameters]]
|
|
name = "source_text"
|
|
description = "The text to translate"
|
|
param_type = "string"
|
|
required = true
|
|
|
|
[[steps]]
|
|
name = "translator"
|
|
prompt_template = "You are an expert translator. Translate the following text. Auto-detect the source language: if it's Chinese, translate to English; if it's English, translate to Chinese; for other languages, translate to both Chinese and English. Preserve the original tone, style, and formatting.\n\nText:\n{{source_text}}"
|
|
|
|
[[steps]]
|
|
name = "reviewer"
|
|
prompt_template = "You are a bilingual language expert. Review the following translation for accuracy and naturalness. Check for: 1) Mistranslations or meaning shifts 2) Awkward phrasing that sounds translated 3) Cultural context issues. Output the improved final translation only.\n\nTranslation to review:\n{{translator}}"
|
|
depends_on = ["translator"]
|