Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计提醒

lingo-tube行话管

Agent Skill

lingo-tube 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lingo-tube(行话管)
来源仓库:https://github.com/liuwei1025/lingotube
仓库路径:skills/lingo-tube
安装命令:
npx skills add https://github.com/liuwei1025/lingotube --skill lingo-tube
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/liuwei1025/lingotube --skill lingo-tube

简介

用于管理和检索专业领域术语库,支持多语言对齐与上下文解释。

  • 适用于本地化项目、技术翻译或知识图谱构建场景。
  • 可批量导入术语表并提供同义词、用法示例等丰富元数据。
  • 术语准确性依赖人工审核,自动匹配可能存在语义偏差。
  • lingo-tube 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

LingoTube

Download → Auto-subs → AI Analysis → Clip → Translate → Burn Subtitles → Sync

AI Protocol

Working directory: This skill's own directory (same directory as this SKILL.md file)

Setup (first time): pip install -r requirements.txt

输入处理规则:

  • 当用户提供 YouTube URL 时,直接执行默认工作流,不要询问用户想做什么。YouTube URL 是本 Skill 最明确的输入信号,无需确认意图。
  • 如果用户同时提供了额外参数(如 --content-only--clip、语言指定),按参数执行;否则全部使用默认值。

工作流选择策略:

  • 默认使用 Notion Agent Workflownotion_agent_workflow agent)。只有用户明确要求本地流程,或未配置 Notion 环境变量时,才回退到 URL Workflow(scripts.workflow)。

字幕分析 / 翻译执行策略:

  • 默认使用 subagent 完成字幕分析和字幕翻译。
  • 只有当前环境不支持 subagent 时,才回退到本地 provider 流程。
  • provider 回退路径沿用现有脚本能力;优先使用已配置的 provider,未显式指定时按仓库默认选择逻辑执行。
  • 字幕分析不会直接把原始 source/subtitles.{lang}.vtt 发给模型。workflow 会先生成 source/subtitles.deduped.vtt,再压缩生成 source/subtitles.analysis.vtt,分析阶段只读取这个预处理后的 VTT。
  • 分析阶段最终写回的 start_anchor_text / end_anchor_text 必须能在去重后的源字幕中命中;命不中的候选会被过滤,无效的 AI 建议锚点会被丢弃并回退到本地派生锚点。

Detailed reference: See WORKFLOW.md for full config table, API examples, flow diagrams, and troubleshooting.

Quick Start

Notion Agent Workflow (default)

Delegate subtitle analysis & translation to a Notion agent; local script handles download, clip, burn, and upload:

python -m scripts.notion.agent_workflow agent --url "URL" [--subtitle-lang it] [--target-language zh]

The flow: download subtitles → create Notion page (no status) → write source subtitles → set status=pending → poll until agent marks translated → set processing → download video → clip → build bilingual VTT → burn → upload → set ready → add comment (triggers Notion automation).

All operations target the same Notion database, configured via LINGO_TUBE_AGENT_WORKSPACE_ID.

FlagPurpose
--urlYouTube video URL (required)
--output-dirOutput directory (default: ~/Downloads)
--agent-workspace-idNotion Agent Workspace database ID (overrides LINGO_TUBE_AGENT_WORKSPACE_ID)
--subtitle-langSource subtitle language (default: auto)
--target-languageTranslation target language (default: zh)
--poll-intervalSeconds between Notion polls (default: 30)
--poll-timeoutMax seconds to wait for agent (default: 1800)
--cookies-from-browser chromeUse browser cookies for restricted videos

Process Translated Pages (batch post-processing)

Pull all pages with status=translated from the Notion database, then run the full clip → burn → upload pipeline for each one. Designed to run as an external cron job (plan steps 3-6):

python -m scripts.notion.agent_workflow process-translated
# crontab example: check every 10 minutes
*/10 * * * * cd /path/to/LingoTube/skills/lingo-tube && python -m scripts.notion.agent_workflow process-translated

The flow: query translated pages → set processing → read Video URL + Start/End Time + bilingual text → download video → clip → extract audio → build bilingual VTT → generate ASS → burn subtitles → upload clip.mp4 / audio.mp3 / with_bilingual.mp4 → set ready → add comment (triggers Notion automation).

The database defaults to LINGO_TUBE_AGENT_WORKSPACE_ID (same database as the agent mode). Override with --database-id.

FlagPurpose
--database-idNotion database ID (defaults to LINGO_TUBE_AGENT_WORKSPACE_ID)
--output-dirOutput directory (default: ~/Downloads)
--cookies-from-browser chromeUse browser cookies for restricted videos
--api-versionNotion API version
--comment "自定义评论"Comment text added after processing (default: 视频处理完成,资源已上传。)

Page requirements (each translated page must have):

  • Video URL — YouTube source URL
  • Start Time / End Time — date properties encoding video timestamps as 1970-01-01THH:MM:SS.000Z
  • Bilingual text — in the page body under a "翻译" subsection within a Clip heading

Process Video Links From Notion (batch URL ingestion)

When the user provides a Notion database id or data source id and wants to process the stored video links directly, use the dedicated batch entrypoint:

python -m scripts.notion.process_video_links --database-id "NOTION_DB_ID" --source-lang from-notion --target-lang zh --output-dir ~/Downloads

This mode:

  • queries the Notion database/data source directly,
  • reads the 视频链接 property,
  • filters out rows already marked 已完成 by default,
  • infers --source-lang from the Notion 语言 property when --source-lang from-notion,
  • and then iterates python -m scripts.workflow "URL" for each row.

Common flags:

FlagPurpose
--database-id / --data-source-idNotion database or data source id
--language 阿拉伯语Only process a specific language; repeatable
--limit 20Only process the first N matching rows
--dry-runPrint the candidate rows without running workflow
--workflow-arg --burn-preset + --workflow-arg slowPass extra flags through to scripts.workflow
--cookies-from-browser chromePass browser cookies through to workflow

Recommended when:

  • the Notion database already contains curated 视频链接,
  • you want to batch-run the local workflow over those links,
  • or you want the agent to treat the Notion database itself as the work queue.

Prompt Template

Use this prompt when you want the skill to start directly from a Notion queue:

读取 Notion data source/database `33a85e149a4c80df9f4fd79e42c9635d` 中的 `视频链接`,按 `处理状态 != 已完成` 过滤,按 `语言` 从 Notion 推断 source-lang,target-lang=zh,串行调用 LingoTube workflow 处理每个 URL。不要先问确认,直接开始;失败继续;最后汇总成功、失败和输出目录。

If you only want a subset, extend the prompt:

读取 Notion data source/database `33a85e149a4c80df9f4fd79e42c9635d` 中的 `视频链接`,只处理 `韩语` 和 `日语`,最多 20 条,按 `处理状态 != 已完成` 过滤,source-lang 从 Notion `语言` 推断,target-lang=zh,处理完成后汇总结果。

URL Workflow (local fallback)

Use when Notion is not configured or the user explicitly requests a fully local pipeline:

python -m scripts.workflow "URL" [--source-lang it] [--clip "01:30-03:45"]

One command runs the full pipeline. Skip individual steps with --no-translation, --no-burn, --no-download, etc.

超时设置: 运行此命令时必须设置 bash timeout=3600000(60 分钟),因为分析/翻译阶段无论走 subagent 还是 provider 回退都可能耗时较长。如果进程因超时中断,重新运行同一命令即可从断点续跑(已完成的步骤会自动跳过)。
FlagPurpose
--source-lang itSource subtitle language (default: auto)
--target-lang zhTranslation target language (default: zh)
--clip "01:30-03:45"Manual time range, skips AI analysis
--no-translation / --no-burnSkip translation / burn step
--no-downloadUse already-downloaded files
--force-reanalyzeIgnore cached progress, re-run analysis
--cookies-from-browser chromeUse browser cookies for restricted videos
--sync-notion / --nasEnable Notion / NAS sync
--notion-data-source-id <id>Override the Notion data source for this run
--no-parallelDisable parallel processing
--burn-preset slow --burn-crf 18High-quality burn

Text Input Workflow

Generate bilingual subtitles from raw text, optionally matched to a YouTube video's timestamps:

# URL mode: match text to YouTube subtitle timestamps, then clip + burn
python -m scripts.text_input --url "URL" --file input.txt -o ./output

# Pure text mode: generate subtitles from interleaved source/translation lines
python -m scripts.text_input --file input.txt -o ./output

# With video burn
python -m scripts.text_input --file input.txt --video clip.mp4 -o ./output

Input file formats (auto-detected):

FormatDescriptionExample
interleavedSource and translation lines separated by blank linesSource line\n翻译行\n\nSource line\n翻译行
parallelTab-separated source and translation per lineSource\t翻译
source_onlySource text only, auto-split by sentencesPlain paragraph text

Re-run / Resume Behavior

  • progress.json stores step-completion flags (analysis_done, clips_done, etc.); it does not store segment data.
  • Segment data is stored in workflow_result.json, which is written when the workflow reaches normal completion, even if some steps produced warnings or partial failures. If the run is interrupted before completion, workflow_result.json may be absent or stale, so segment data may not be recoverable on the next run—the analysis phase will re-run instead.
  • Re-running the same URL does auto-resume completed steps (skips re-download, re-clip, etc.) as long as the corresponding output files still exist.

--no-analysis caveat: This flag skips AI analysis and leaves segments empty unless --clip (or equivalent time_ranges) is also provided. With empty segments, all downstream steps (clip, translate, burn) are silently skipped. Always pair --no-analysis with an explicit --clip range.

Hard Requirements

  • When the agent runs the workflow, always request 1080p or higher video quality. If the source does not provide 1080p+, stop and report instead of falling back to lower quality. (The CLI does accept lower values like 720p for manual override.)
  • Subtitle downloads must use auto-generated subtitles only. Do not use manually uploaded subtitles.

Pipeline

The workflow runs as a single process. Video download and subtitle download happen in parallel; analysis starts as soon as subtitles are ready, without waiting for the video.

StepDepends onOutput
1. Download video (background)URLsource/video.mp4, source/cover.jpg
2. Download subtitlesURLsource/subtitles.{lang}.vtt
3. Analyze subtitlesStep 2Segment list in memory → workflow_result.json on completion
4. Clip segmentsSteps 1+3clips/{time}/clip.mp4, subtitle.vtt
5. Translate subtitlesStep 4clips/{time}/subtitle_translation.vtt
6. Burn subtitlesStep 4 (plus Step 5 for translated bilingual burn)clips/{time}/with_subs.mp4 and/or with_bilingual.mp4
7. Sync (optional)Workflow outputsNotion data source item, NAS upload

Steps 1-3 overlap: video downloads in a background thread while subtitles download and analysis runs in the foreground. Step 4 onward waits for the video file.

On error: Re-run the same command. Completed steps are skipped via progress.json flags; the analysis phase re-runs if workflow_result.json is missing or the previous run was interrupted. Force full restart: rm ~/Downloads/{video_id}/progress.json ~/Downloads/{video_id}/workflow_result.json

Output Structure

~/Downloads/{video_id}/
├── metadata.json
├── progress.json
├── workflow_result.json
├── source/
│   ├── video.mp4
│   ├── cover.jpg
│   ├── subtitles.{lang}.vtt
│   ├── subtitles.deduped.vtt
│   └── subtitles.analysis.vtt
└── clips/
    └── 00m08s-01m57s/           # {MMmSSs}-{MMmSSs} compact format
        ├── clip.mp4
        ├── subtitle.vtt
        ├── subtitle.ass
        ├── subtitle_translation.vtt
        ├── subtitle_bilingual.vtt    # optional prebuilt or repaired bilingual VTT
        ├── subtitle_bilingual.ass
        ├── audio.mp3
        ├── with_subs.mp4
        └── with_bilingual.mp4

Environment Variables

Notion Agent Workflow (agent + process-translated)

VariableRequiredPurpose
LINGO_TUBE_AGENT_WORKSPACE_IDAgent WorkflowNotion 数据库 ID(agent 和 process-translated 共用)
NOTION_API_TOKENAgent WorkflowNotion API Token
NOTION_API_VERSIONOptionalNotion API 版本
Legacy fallback: LINGOTUBE_AGENT_WORKSPACE_ID, LINGOTUBE_NOTION_TOKEN, LINGOTUBE_NOTION_API_VERSION, NOTION_AGENT_WORKSPACE_ID are also accepted, but the names in the table are preferred.

URL Workflow (local pipeline) + Notion Sync

VariableRequiredPurpose
LINGO_TUBE_PROVIDEROptionalprovider 回退时显式指定 provider
OPENAI_API_KEYFallback onlyOpenAI-compatible provider key
MINIMAX_API_KEYFallback onlyMiniMax provider key
MINIMAX_BASE_URLFallback onlyMiniMax provider endpoint
MINIMAX_MODELFallback onlyMiniMax model name
ARK_API_KEYFallback onlyArk provider key
ARK_BASE_URLFallback onlyArk provider endpoint
ARK_MODELFallback onlyArk provider model name
MOONSHOT_API_KEYFallback onlyKimi / Moonshot provider key
NOTION_API_TOKENOptionalNotion sync
NOTION_DATA_SOURCE_IDOptionalPreferred Notion data source id
NOTION_DATABASE_IDOptionalLegacy Notion database id compatibility fallback
NAS_INTRANET_URLOptionalNAS WebDAV (intranet)
NAS_EXTRANET_URLOptionalNAS WebDAV (extranet fallback)
NAS_USERNAME / NAS_PASSWORDOptionalNAS credentials

provider 环境变量仅在当前运行环境不支持 subagent 时需要。See WORKFLOW.md for full values and examples.

Troubleshooting

ProblemSolution
Download restricted (login required)Add --cookies-from-browser chrome
Interrupted mid-runRe-run the same command; completed steps auto-resume
Force full restartrm ~/Downloads/{video_id}/progress.json ~/Downloads/{video_id}/workflow_result.json
--no-analysis produces no clipsAlways pair with --clip to provide explicit time range
Agent workflow times outIncrease --poll-timeout; ensure agent is running in Notion
Agent workspace not foundSet LINGO_TUBE_AGENT_WORKSPACE_ID or pass --agent-workspace-id

Prerequisites

  • ffmpeg (brew install ffmpeg)
  • yt-dlp (auto-installed)
  • Python: requests, openai, tqdm

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.27%
按下载量换算24

Claude

30.77%
按下载量换算20

Cursor

20.88%
按下载量换算14

Gemini CLI

9.61%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills