{
  "schemaVersion": "1.0",
  "item": {
    "slug": "opensubtitles",
    "name": "OpenSubtitles Read-only",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/dennisooki/opensubtitles",
    "canonicalUrl": "https://clawhub.ai/dennisooki/opensubtitles",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/opensubtitles",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=opensubtitles",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/opensubtitles-api.md",
      "scripts/opensubtitles-api.sh",
      "scripts/subtitle-context.sh"
    ],
    "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-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/opensubtitles"
    },
    "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/opensubtitles",
    "agentPageUrl": "https://openagent3.xyz/skills/opensubtitles/agent",
    "manifestUrl": "https://openagent3.xyz/skills/opensubtitles/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/opensubtitles/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": "OpenSubtitles",
        "body": "Use this skill to fetch subtitle context around a timestamp. This is read‑only: no uploads or modifications."
      },
      {
        "title": "Setup",
        "body": "Users should obtain an API key at: https://www.opensubtitles.com/consumers\n\nRequired env vars:\n\nOPENSUBTITLES_API_KEY\nOPENSUBTITLES_USER_AGENT (e.g., OpenClaw 1.0)\n\nOptional (for downloads):\n\nOPENSUBTITLES_USERNAME\nOPENSUBTITLES_PASSWORD\nOPENSUBTITLES_TOKEN (if already logged in)\nOPENSUBTITLES_BASE_URL (hostname from login response, e.g., api.opensubtitles.com)"
      },
      {
        "title": "Commands",
        "body": "Scripts live in {baseDir}/scripts/."
      },
      {
        "title": "Search subtitles",
        "body": "{baseDir}/scripts/opensubtitles-api.sh search --query \"Show Name\" --season 3 --episode 5 --languages en\n\nPrefer IDs when available (imdb/tmdb). Use parent IDs for TV episodes. Follow redirects for search (script already uses -L)."
      },
      {
        "title": "Login (token)",
        "body": "{baseDir}/scripts/opensubtitles-api.sh login\n\nNote: Login is rate limited (1/sec, 10/min, 30/hour). If you get 401, stop retrying.\nUse base_url from the response as OPENSUBTITLES_BASE_URL for subsequent requests."
      },
      {
        "title": "Request a download link",
        "body": "Before downloading, check the local subtitle cache (see below). Only call the download API if the file is not already cached.\n\nOPENSUBTITLES_TOKEN=... {baseDir}/scripts/opensubtitles-api.sh download-link --file-id 123"
      },
      {
        "title": "Extract context at timestamp",
        "body": "After downloading an .srt file (default window: 10 minutes before timestamp):\n\nOn Windows, use findstr or PowerShell Select-String to replicate the awk logic (use the shell script as a guide). The agent should pick the best option available on that system.\n\n{baseDir}/scripts/subtitle-context.sh ./subtitle.srt 00:12:34,500\n\nCustom window:\n\n{baseDir}/scripts/subtitle-context.sh ./subtitle.srt 00:12:34,500 --window-mins 5"
      },
      {
        "title": "Trakt synergy",
        "body": "Pair with trakt-readonly to identify current episode; when Trakt adds playback progress support, update the Trakt skill to supply a precise timestamp for context‑aware, spoiler‑safe responses."
      },
      {
        "title": "Cache",
        "body": "Store downloaded subtitles under {baseDir}/storage/subtitles/ (create if missing). Use a stable filename like:\n\n{baseDir}/storage/subtitles/<file_id>__<language>.srt\n\nCheck this cache before calling /download to avoid wasting limited daily downloads."
      },
      {
        "title": "Guardrails",
        "body": "Never log or expose API keys, passwords, or tokens.\nOnly call https://api.opensubtitles.com/api/v1 (or the base_url returned by login).\nDo not cache download links.\nPrefer IDs over fuzzy queries for accuracy.\nAvoid wasting downloads: store downloaded subtitle files locally and check the cache before calling the download API again.\nIf a download is requested, always append the remaining download quota (from the remaining field) in the user response.\nSubtitle context should include the window from 10 minutes before the timestamp to the timestamp (default), unless the user specifies otherwise.\nThe agent can adjust --window-mins to get more or less context as needed.\nOnly read subtitle files from {baseDir}/storage/subtitles/ to avoid arbitrary file access."
      },
      {
        "title": "References",
        "body": "references/opensubtitles-api.md"
      }
    ],
    "body": "OpenSubtitles\n\nUse this skill to fetch subtitle context around a timestamp. This is read‑only: no uploads or modifications.\n\nSetup\n\nUsers should obtain an API key at: https://www.opensubtitles.com/consumers\n\nRequired env vars:\n\nOPENSUBTITLES_API_KEY\nOPENSUBTITLES_USER_AGENT (e.g., OpenClaw 1.0)\n\nOptional (for downloads):\n\nOPENSUBTITLES_USERNAME\nOPENSUBTITLES_PASSWORD\nOPENSUBTITLES_TOKEN (if already logged in)\nOPENSUBTITLES_BASE_URL (hostname from login response, e.g., api.opensubtitles.com)\nCommands\n\nScripts live in {baseDir}/scripts/.\n\nSearch subtitles\n{baseDir}/scripts/opensubtitles-api.sh search --query \"Show Name\" --season 3 --episode 5 --languages en\n\n\nPrefer IDs when available (imdb/tmdb). Use parent IDs for TV episodes. Follow redirects for search (script already uses -L).\n\nLogin (token)\n{baseDir}/scripts/opensubtitles-api.sh login\n\n\nNote: Login is rate limited (1/sec, 10/min, 30/hour). If you get 401, stop retrying. Use base_url from the response as OPENSUBTITLES_BASE_URL for subsequent requests.\n\nRequest a download link\n\nBefore downloading, check the local subtitle cache (see below). Only call the download API if the file is not already cached.\n\nOPENSUBTITLES_TOKEN=... {baseDir}/scripts/opensubtitles-api.sh download-link --file-id 123\n\nExtract context at timestamp\n\nAfter downloading an .srt file (default window: 10 minutes before timestamp):\n\nOn Windows, use findstr or PowerShell Select-String to replicate the awk logic (use the shell script as a guide). The agent should pick the best option available on that system.\n\n{baseDir}/scripts/subtitle-context.sh ./subtitle.srt 00:12:34,500\n\n\nCustom window:\n\n{baseDir}/scripts/subtitle-context.sh ./subtitle.srt 00:12:34,500 --window-mins 5\n\nTrakt synergy\n\nPair with trakt-readonly to identify current episode; when Trakt adds playback progress support, update the Trakt skill to supply a precise timestamp for context‑aware, spoiler‑safe responses.\n\nCache\n\nStore downloaded subtitles under {baseDir}/storage/subtitles/ (create if missing). Use a stable filename like:\n\n{baseDir}/storage/subtitles/<file_id>__<language>.srt\n\nCheck this cache before calling /download to avoid wasting limited daily downloads.\n\nGuardrails\nNever log or expose API keys, passwords, or tokens.\nOnly call https://api.opensubtitles.com/api/v1 (or the base_url returned by login).\nDo not cache download links.\nPrefer IDs over fuzzy queries for accuracy.\nAvoid wasting downloads: store downloaded subtitle files locally and check the cache before calling the download API again.\nIf a download is requested, always append the remaining download quota (from the remaining field) in the user response.\nSubtitle context should include the window from 10 minutes before the timestamp to the timestamp (default), unless the user specifies otherwise.\nThe agent can adjust --window-mins to get more or less context as needed.\nOnly read subtitle files from {baseDir}/storage/subtitles/ to avoid arbitrary file access.\nReferences\nreferences/opensubtitles-api.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/dennisooki/opensubtitles",
    "publisherUrl": "https://clawhub.ai/dennisooki/opensubtitles",
    "owner": "dennisooki",
    "version": "1.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/opensubtitles",
    "downloadUrl": "https://openagent3.xyz/downloads/opensubtitles",
    "agentUrl": "https://openagent3.xyz/skills/opensubtitles/agent",
    "manifestUrl": "https://openagent3.xyz/skills/opensubtitles/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/opensubtitles/agent.md"
  }
}