{
  "schemaVersion": "1.0",
  "item": {
    "slug": "subtitle-translate-skill",
    "name": "Subtitle Translator",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Thetail001/subtitle-translate-skill",
    "canonicalUrl": "https://clawhub.ai/Thetail001/subtitle-translate-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/subtitle-translate-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=subtitle-translate-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/srt_format.md",
      "scripts/list_models.py",
      "scripts/translate_srt.py",
      "scripts/validate_srt.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/subtitle-translate-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/subtitle-translate-skill",
    "agentPageUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "Translate SRT subtitle files using LLM APIs. Supports OpenAI-compatible API format with customizable URL, API key, and model selection. Outputs single-language or bilingual subtitles with original timestamps preserved."
      },
      {
        "title": "Features",
        "body": "Format Support: SRT subtitles\nAPI Compatibility: OpenAI-compatible endpoints\nOutput Modes: Single-language or bilingual (translation above original)\nBatch Processing: 50 sentences per batch (configurable) with 1-second intervals\nProgress Tracking: Detailed logging of task progress and execution\nValidation: Ensures sentence count consistency and timestamp preservation"
      },
      {
        "title": "Basic Translation",
        "body": "python3 scripts/translate_srt.py \\\n  --input video.srt \\\n  --output video_zh.srt \\\n  --source-lang en \\\n  --target-lang zh \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-... \\\n  --model gpt-4"
      },
      {
        "title": "Bilingual Output",
        "body": "python3 scripts/translate_srt.py \\\n  --input video.srt \\\n  --output video_bilingual.srt \\\n  --source-lang en \\\n  --target-lang zh \\\n  --bilingual \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-..."
      },
      {
        "title": "Validate SRT File",
        "body": "python3 scripts/validate_srt.py input.srt"
      },
      {
        "title": "List Available Models",
        "body": "python3 scripts/list_models.py \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-..."
      },
      {
        "title": "Option 1: Environment Variables (Recommended)",
        "body": "export SUBTITLE_API_URL=\"https://api.openai.com/v1\"\nexport SUBTITLE_API_KEY=\"sk-your-api-key\"\nexport SUBTITLE_MODEL=\"gpt-4\"\n\npython3 scripts/translate_srt.py -i input.srt -o output.srt"
      },
      {
        "title": "Option 2: Command Line Arguments",
        "body": "python3 scripts/translate_srt.py \\\n  -i input.srt \\\n  -o output.srt \\\n  -u https://api.openai.com/v1 \\\n  -k sk-your-api-key \\\n  -m gpt-4"
      },
      {
        "title": "Option 3: Config File (Less Secure)",
        "body": "Create ~/.openclaw/skills/subtitle-translator/config.json:\n\n{\n  \"api_url\": \"https://api.openai.com/v1\",\n  \"api_key\": \"sk-your-api-key\",\n  \"model\": \"gpt-4\",\n  \"batch_size\": 50,\n  \"batch_interval_ms\": 1000,\n  \"output_mode\": \"single\",\n  \"log_level\": \"info\"\n}\n\n⚠️ Security Warning: Storing API keys in plaintext config files increases risk. Prefer environment variables or command line arguments."
      },
      {
        "title": "Security Considerations",
        "body": "API Key Storage: Use environment variables or secure secret managers instead of plaintext config files\nAPI Endpoint: Ensure you trust the API URL you provide\nProxy Environment: The scripts honor http_proxy/https_proxy environment variables. If your environment uses untrusted proxies, API keys could be captured\nNetwork Traffic: All subtitle content is sent to the API endpoint. Do not use with sensitive/confidential content unless you control the API"
      },
      {
        "title": "Workflow",
        "body": "Parse SRT: Extract index, timecodes, and text\nValidate: Optional validation of input format\nBatch Translation: Send 50 sentences per request (configurable)\nValidate: Ensure output count matches input\nReconstruct: Combine original timecodes with translations\nOutput: Generate SRT file"
      },
      {
        "title": "scripts/",
        "body": "translate_srt.py - Main translation script\nlist_models.py - List available models from API\nvalidate_srt.py - Validate SRT file format"
      },
      {
        "title": "references/",
        "body": "srt_format.md - SRT file format specification"
      }
    ],
    "body": "Subtitle Translator\nOverview\n\nTranslate SRT subtitle files using LLM APIs. Supports OpenAI-compatible API format with customizable URL, API key, and model selection. Outputs single-language or bilingual subtitles with original timestamps preserved.\n\nFeatures\nFormat Support: SRT subtitles\nAPI Compatibility: OpenAI-compatible endpoints\nOutput Modes: Single-language or bilingual (translation above original)\nBatch Processing: 50 sentences per batch (configurable) with 1-second intervals\nProgress Tracking: Detailed logging of task progress and execution\nValidation: Ensures sentence count consistency and timestamp preservation\nQuick Start\nBasic Translation\npython3 scripts/translate_srt.py \\\n  --input video.srt \\\n  --output video_zh.srt \\\n  --source-lang en \\\n  --target-lang zh \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-... \\\n  --model gpt-4\n\nBilingual Output\npython3 scripts/translate_srt.py \\\n  --input video.srt \\\n  --output video_bilingual.srt \\\n  --source-lang en \\\n  --target-lang zh \\\n  --bilingual \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-...\n\nValidate SRT File\npython3 scripts/validate_srt.py input.srt\n\nList Available Models\npython3 scripts/list_models.py \\\n  --api-url https://api.openai.com/v1 \\\n  --api-key sk-...\n\nConfiguration\nOption 1: Environment Variables (Recommended)\nexport SUBTITLE_API_URL=\"https://api.openai.com/v1\"\nexport SUBTITLE_API_KEY=\"sk-your-api-key\"\nexport SUBTITLE_MODEL=\"gpt-4\"\n\npython3 scripts/translate_srt.py -i input.srt -o output.srt\n\nOption 2: Command Line Arguments\npython3 scripts/translate_srt.py \\\n  -i input.srt \\\n  -o output.srt \\\n  -u https://api.openai.com/v1 \\\n  -k sk-your-api-key \\\n  -m gpt-4\n\nOption 3: Config File (Less Secure)\n\nCreate ~/.openclaw/skills/subtitle-translator/config.json:\n\n{\n  \"api_url\": \"https://api.openai.com/v1\",\n  \"api_key\": \"sk-your-api-key\",\n  \"model\": \"gpt-4\",\n  \"batch_size\": 50,\n  \"batch_interval_ms\": 1000,\n  \"output_mode\": \"single\",\n  \"log_level\": \"info\"\n}\n\n\n⚠️ Security Warning: Storing API keys in plaintext config files increases risk. Prefer environment variables or command line arguments.\n\nSecurity Considerations\nAPI Key Storage: Use environment variables or secure secret managers instead of plaintext config files\nAPI Endpoint: Ensure you trust the API URL you provide\nProxy Environment: The scripts honor http_proxy/https_proxy environment variables. If your environment uses untrusted proxies, API keys could be captured\nNetwork Traffic: All subtitle content is sent to the API endpoint. Do not use with sensitive/confidential content unless you control the API\nWorkflow\nParse SRT: Extract index, timecodes, and text\nValidate: Optional validation of input format\nBatch Translation: Send 50 sentences per request (configurable)\nValidate: Ensure output count matches input\nReconstruct: Combine original timecodes with translations\nOutput: Generate SRT file\nResources\nscripts/\ntranslate_srt.py - Main translation script\nlist_models.py - List available models from API\nvalidate_srt.py - Validate SRT file format\nreferences/\nsrt_format.md - SRT file format specification"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Thetail001/subtitle-translate-skill",
    "publisherUrl": "https://clawhub.ai/Thetail001/subtitle-translate-skill",
    "owner": "Thetail001",
    "version": "0.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/subtitle-translate-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/subtitle-translate-skill",
    "agentUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/subtitle-translate-skill/agent.md"
  }
}