SkillsGrove
SkillsGrove/Produção de vídeo/WALKERKILLER/Look-Tongji-Notes/trans

trans

Instalação

$npx skills add https://github.com/WALKERKILLER/Look-Tongji-Notes --skill trans
$git clone --depth 1 https://github.com/WALKERKILLER/Look-Tongji-Notes.git /tmp/Look-Tongji-Notes && mkdir -p ~/.claude/skills && cp -r /tmp/Look-Tongji-Notes/skills/trans ~/.claude/skills/trans
Por favor, instale esta Agent Skill para mim: https://github.com/WALKERKILLER/Look-Tongji-Notes/tree/151f0a51537b3f8903f614c8e7adcd1f72d904bc/skills/trans. Leia primeiro o SKILL.md e os scripts, e só a instale na minha pasta de skills depois de confirmar que é segura.

Resumo

Descrição original · MITTranscribe a single Tongji Look lecture video to SRT + TXT, optionally download slide snapshots in parallel.
O SKILL.md abaixo é reproduzido de WALKERKILLER/Look-Tongji-Notes (commit 151f0a5) sob a licença MIT. O texto não foi alterado; apenas os metadados do cabeçalho do arquivo foram omitidos, as imagens são exibidas como links e arquivos muito longos são truncados. Copyright 2026 WALKERKILLER. Licença: LICENSE. Apenas o arquivo de instruções é exibido; consulte o repositório original para ver os scripts.

Transcribe

Transcribe one lecture video from look.tongji.edu.cn and optionally download slide snapshots.

When to Use

  • User says /trans or "transcribe this lecture".
  • User provides a lecture URL or course_id + sub_id.

Workflow

  1. Resolve lecture with URL or IDs:
python "<SKILL_DIR>/../../scripts/look_tongji.py" transcribe --lecture-url "<LECTURE_URL>"
python "<SKILL_DIR>/../../scripts/look_tongji.py" transcribe --course-id "<ID>" --sub-id "<ID>"
  1. Transcribe + download slides in one run:
python "<SKILL_DIR>/../../scripts/look_tongji.py" transcribe --course-id "<ID>" --sub-id "<ID>" --slide
  1. The CLI prints real-time progress. Stdout contains result paths.

Non-Interactive / Batch Usage

When running from an automated pipeline, avoid input() prompts with these flags:

Flag Description
--sub-id Specify lecture sub_id directly (skips interactive lecture picker)
--course-id Specify course ID directly (skips interactive course selection)
--slide Download slides after transcription
--concurrency N Slide download concurrency (default 4)
--retries N Slide download retries (default 3)

manifest.json — Required for Wiki Build

transcribe does NOT automatically create manifest.json. After transcription, you MUST create it manually so the wiki indexer can find this lecture.

Create manifest.json in the session's 原始数据/ directory with this structure:

{
  "course_id": "COURSE_ID",
  "sub_id": "SUB_ID",
  "course_title": "课程名称(真实中文名)",
  "session_title": "YYYY-M-D 第X节",
  "base_name": "COURSE_ID_SUB_ID",
  "artifacts": {
    "srt": "F:\\workspace\\raw\\课程名称\\YYYY-M-D 第X节\\原始数据\\COURSE_ID_SUB_ID.srt",
    "txt": "F:\\workspace\\raw\\课程名称\\...\\COURSE_ID_SUB_ID.txt",
    "notes": "",
    "timeline": "",
    "slides": "F:\\workspace\\raw\\课程名称\\...\\slides\\index.json"
  },
  "duration_seconds": 5580
}

Critical path rules:

  • Use absolute paths for all artifact paths (relative paths break on Windows)
  • duration_seconds: must be ≥ 3600 (1 hour); if < 3600, the lecture is marked不合格 and wiki shows it as 缺失
  • If no slides were downloaded, leave slides field empty ("")
  • Fields notes and timeline are filled by /note command later

Artifacts

  • <course_id>_<sub_id>.srt — subtitle with timestamps
  • <course_id>_<sub_id>.txt — plain text transcript
  • <course_id>_<sub_id>.json — metadata
  • slides/ — slide images + index.json (if --slide)
  • manifest.json — MUST create manually after transcription

One Session Per Call

For batch transcribing, use /ralphtrans.

Where `<SKILL_DIR>` Points

`<SKILL_DIR>` is the directory containing this `SKILL.md`. Shared scripts (`look_tongji.py`, `timeline_tools.py`, `tongji_backend/`) and references live two levels up in the repository root (`<SKILL_DIR>/../../scripts/` and `<SKILL_DIR>/../../references/`).

Ver o texto completo da licença (MIT)
MIT License

Copyright (c) 2026 WALKERKILLER

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.