Jem-Geshibao

Cs Cast Subtitle — Development skill for Claude Code

Development community

CS/CS2 职业赛事解说双语对照字幕 Agent Skill:长音频幻觉规避、漏段自动补录、选手实体联网核实、比赛背景反查、横屏/竖屏双排版模式.

How to install Cs Cast Subtitle

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Jem-Geshibao/cs-cast-subtitle and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cs Cast Subtitle does

CS/CS2 职业赛事解说双语对照字幕 Agent Skill:长音频幻觉规避、漏段自动补录、选手实体联网核实、比赛背景反查、横屏/竖屏双排版模式.

Alternatives in Development

  • Cs2 Knife — Create a high-fidelity procedural Three.js 3D reconstruction of 14.1k ★
  • Type Crusade — Unleash parallel TypeScript Purist agents to purge every any, as cast, and type sin across the codebase 51 ★
  • Cast — CAST diagnostic and manual dispatch command 8 ★

README

cs-cast-subtitle

把 **CS:GO / CS2 职业比赛解说音频** 做成可直接发布的 **双语对照 SRT 字幕**(源语言小写 + 中文对照,时间轴严禁改动)。

An agent skill that turns CS:GO / CS2 esports casting audio into publish-ready bilingual SRT subtitles — including automatic match identification when you don't know which match it is.

1
00:00:00,000 --> 00:00:03,060
not too drastic with the knife, but it's a kill
用刀不必太激进,这刀稳拿击杀

**排版双模式(抖音横屏 / 竖屏)**:同一份校对稿,用 `--layout landscape`(默认)出横屏版、`--layout portrait` 出竖屏版。两种模式共用同一硬约束:**一段 = 源语言 1 行 + 中文 1 行、不许折行、不可超出安全区**,区别只在行宽上限(横屏 ≤ 48 / 竖屏 ≤ 46)。

它解决的不是"翻译"问题,而是字幕翻车的三个真实原因:

坑 本技能的应对
ASR 幻觉漏段:整段转写超过 3 分钟就循环重复同一句、丢掉中间大段 强制分段转写(45s 切片 / 5s 重叠)+ RMS 能量扫描自动找漏段 + 定点补录
人名听错:don't→donk、zelex→xelex、Sphinx→Spinx、天路→TYLOO 锁定比赛背景后把双方五人名单写进提示词重转;英文段再做一次无预设复转
背景缺失:不知道是哪场比赛,14-0 和点位名就会译错 未提供比赛名时按选手 ID / 地图 / 比分 + 文件名日期反查比赛

**不是 CS 内容也能用** —— 判定为非赛事解说时自动降级为通用双语字幕流程(口播、访谈、课程同样适用)。


目录结构

cs-cast-subtitle/
├── SKILL.md                        # 技能主文件(agent 只读这一个入口)
├── README.md
├── LICENSE                         # MIT
├── scripts/
│   ├── asr_util.py                 # 共用层:本地模型加载 / RMS 扫描 / 分块转写
│   ├── probe_audio.py              # 探测:时长、语言、能量分布、静音区间
│   ├── transcribe.py               # 分段转写主流程
│   ├── recheck.py                  # 指定区间补录 / 攻坚重转
│   ├── gaps.py                     # 自动列出「有声音但没转出来」的漏段
│   ├── build_srt.py                # 对照数据 → SRT(顺带行宽体检,支持双模式)
│   ├── validate_srt.py             # 发布前校验(支持双模式)
│   ├── layouts.py                  # 排版模式统一配置(横屏/竖屏阈值)
│   └── install.py                  # 安装到各类 agent 的 skills 目录
├── references/
│   ├── cs-terminology.md           # 术语 / 地图点位 / 解说句型 / ASR 错识对照表
│   ├── players-teams.md            # 选手战队实体库、ID 大小写规范、核实方法
│   ├── match-identification.md     # 是否 CS 的判定、比赛反查流程、实战案例
│   └── subtitle-style.md           # 抖音横屏/竖屏排版规范、翻译口吻、一致性清单
└── assets/
    ├── example_bilingual.srt           # 横屏单行版成品样例(landscape 格式基准)
    └── example_bilingual_portrait.srt  # 竖屏单行版成