Communitygithub.com

aitrans-video-workflow

Translate and dub videos with the connected AITrans.Video tools. Upload a video, get a quote, start the task within the user's credit allowance or after their confirmation, follow progress, then edit the finished translation (lines, speaker voices, splits), get Jianying/CapCut drafts and download the files. Use when the user wants to translate, dub or re-voice a video, or work with an existing AITrans.Video task.

Qu'est-ce que aitrans-video-workflow ?

aitrans-video-workflow is a Claude Code agent skill that translate and dub videos with the connected AITrans.Video tools. Upload a video, get a quote, start the task within the user's credit allowance or after their confirmation, follow progress, then edit the finished translation (lines, speaker voices, splits), get Jianying/CapCut drafts and download the files. Use when the user wants to translate, dub or re-voice a video, or work with an existing AITrans.Video task.

Compatible avec✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/sun9bear/aitrans-video-skills/tree/HEAD/skills/aitrans-video-workflow

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

AITrans.Video workflow

Use the AITrans.Video tools of the current connection. Use only tools, fields, languages, voices, prices and states that the live tools return; never invent them. A tool that is not listed is not enabled for this connection or permission.

If the tools are missing

The server is https://aitrans.video/api/ai (remote MCP over HTTPS, no trailing slash). The user adds it once in their AI app and signs in to AITrans.Video in the browser (OAuth). Examples: Claude: Settings → Connectors → Add custom connector. Claude Code: claude mcp add --transport http aitrans https://aitrans.video/api/ai, then /mcp. Codex: codex mcp add aitrans --url https://aitrans.video/api/ai, then codex mcp login aitrans. Other apps: see https://aitrans.video/connect. The full agent guide is https://aitrans.video/mcp.txt. Never ask for passwords, cookies, API keys or tokens in chat. If tools added later do not appear, the user reconnects or refreshes the connector.

Money rules

  • A quote never spends. Credits are spent only by create_translation and unlock_translation_feature.
  • Credit allowance: when connecting, the user may allow a spending limit (off by default). Within it, the user's request or a yes in chat is enough and the call goes through. Each result carries spend (charged credits, allowance, balance_credits): always tell the user what was charged and what is left.
  • Above the allowance, or without one: only the AI app's own confirmation form (when the server opens one) or the website confirmation_url counts. A chat reply does not approve it, and you never imitate the form.
  • Never create a task to test the connection. Never pay or create again to recover from an unclear result.

New translation

  1. get_translation_options: target languages, preset voices and credit_allowance. Never choose the target from the source or UI language; an omitted target means English.
  2. Get the video.
    • If you can read the user's local file and run a shell: request_translation_upload with file_size_bytes, upload to direct_upload.url with its command, then complete_translation_upload.
    • Otherwise give the user upload_url; they choose and share the file on the website.
    • A file attached in chat (only where import_translation_attachment is listed): call it after the user confirms they hold the rights.
    • Then call get_translation_upload at least 5 seconds apart until ready, and keep its source exactly.
  3. prepare_translation with that source and the chosen options (obey the live schema). Tell the user the credits, settings and expiry.
  4. create_translation with the same intent_id, following the money rules.
  5. get_translation every poll_after_seconds (about 30 s). Processing takes minutes; if it is still running after a few checks, give the user the project link and let them ask later.
  6. get_translation_result lists the project page and finished outputs.

Existing projects are not a translation source. list_translation_projects (account permission) or request_translation_project / get_translation_project find them and read their published subtitles.

After a task finishes

  • Express unlocks: unlock_translation_feature with job_id and feature edit (editing) or editor_draft (Jianying/CapCut export). confirmation_required: the user unlocks on the returned page, then call again. Already unlocked: nothing is charged.

  • Editing (permission translations:edit):

    1. start_translation_edit. pending: call again. unlock_required: unlock first.
    2. get_translation_edit_segments returns segment_id, source_text, translated_text and text_revision per line.
    3. Then any of:
      • update_translation_segments: up to 20 lines, each with the text_revision you read; on edit_conflict read again.
      • get_translation_voice_options + set_translation_speaker_voice: one catalog voice for every line of a speaker; no per-line choice, no own or cloned voices.
      • split_translation_segment: 2 to 8 pieces whose texts join exactly to the current texts.
    4. finish_translation_edit with save or discard.

    Pass edit_session through unchanged. Ask the user before save: it replaces the finished video. Changing text, voices and splits spends nothing. Re-dubbing on save uses the plan's free per-line edit allowance. dubbing/pending: call again with the same arguments. saving: poll get_translation, then get_translation_result.

  • Drafts: request_translation_draft with job_id and format jianying or capcut. draft_root is the user's own draft folder; never guess it.

    • generating: call again after poll_after_seconds.
    • ready: pass artifact to request_translation_download.
    • website_only: give the user website_url.
    • unlock_required: see Express unlocks.
    • failed: tell the user; use retry: true only if they want another try.
  • Downloads: request_translation_download with translation_id and an output_key that get_translation_result lists (dubbed video, draft ZIP, subtitles, audio, original video). The ticket_url works once, for 10 minutes. Give it to the user only: they open it and press Download, or a shell saves it with curl -L --data '' -o <file> '<ticket_url>'. If it answers 410, ask for a new link.

  • Subtitle text in chat (subtitle permission): get_translation_result with include_subtitles: true and a small page_size, following next_cursor. On subtitle_snapshot_changed restart from the first page.

Permissions

A tool needing more access returns 403 insufficient_scope; the app asks the user to authorize again with exactly that scope, then retry. Some apps (WorkBuddy custom connectors, for example) do not open that authorization themselves: then tell the user which permission is missing and ask them to reconnect or re-authorize the connector in the app's connector settings and tick it on the AITrans.Video page, then retry once. Edit permission is never pre-checked on a first authorization. On revoked or denied access, stop and tell the user; never switch accounts or connections to get around it.

Recover, never duplicate

Keep every original request_key, request_id, intent_id and job_id. unknown (with 200, 202 or 503) or a lost response is unresolved, not a failure, and never permission to create, upload or pay again. Read the original:

Unclear atRead with
Upload linkrequest_translation_upload with the same upload request_key
Upload statusget_translation_upload with the original request_id
Preparationget_translation with the original translation request_key
Createget_translation with the original intent_id
Later readsget_translation with translation_id

If reading cannot resolve it, report the uncertainty and stop. The website stays the final word on login, ownership, refunds and entitlements.

Skills associés