nanmicoder/claude-code-skills/srt-to-structured-data
Claude Code and agent skill by nanmicoder/claude-code-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
将 SRT 字幕文件转换为结构化 JSON 数据。 触发场景: (1) 需要解析 SRT 字幕文件 (2) 需要将字幕转为 JSON/结构化格式 (3) 需要提取字幕时间码和文本 (4) 视频字幕数据处理和分析 (5) 生成字幕纯文本或统计信息
Install
npx vskill@latest install nanmicoder/claude-code-skills/srt-to-structured-dataSKILL.md
The same SKILL.md was published earlier as nanmicoder/claude-code-skills/srt-to-structured-data.
SRT 字幕转结构化数据
将 SRT 字幕文件解析为结构化 JSON 格式,支持提取时间码、计算时长、生成统计信息。
快速开始
基础用法
注意: <skill_path> 是此 skill 的安装路径,通常为 ~/.claude/plugins/srt-to-structured-data@claude-code-skills/skills/srt-to-structured-data
输出格式
JSON 结构化数据
纯文本输出
使用 --text-only 参数时,仅输出字幕文本,每条一行:
命令行参数
| 参数 | 说明 | |
|---|---|---|
input.srt | 输入的 SRT 字幕文件路径 | |
-o, --output | 输出文件路径(默认输出到终端) | |
--stats | 在 JSON 输出中包含统计信息 | |
--text-only | 仅输出纯文本,去除时间码和序号 |
字段说明
| 字段 | 类型 | 说明 | |
|---|---|---|---|
index | int | 字幕序号 | |
start_time | string | 开始时间(原始格式) | |
end_time | string | 结束时间(原始格式) | |
start_ms | int | 开始时间(毫秒) | |
end_ms | int | 结束时间(毫秒) | |
duration_ms | int | 持续时长(毫秒) | |
text | string | 字幕文本内容 |
使用示例
场景 1:分析字幕文件
场景 2:提取纯文本用于翻译
场景 3:在 Python 中直接使用
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/srt-to-structured-data/skills/srt-to-structured-data/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 8
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nanmicoder/claude-code-skills/srt-to-structured-data)