dean9703111/srt card annotator
This skill should be used when the user asks to "add reference cards to srt", "annotate srt with cards", "insert cards into subtitles", "generate srt with card annotations", "add 字卡 to srt", or needs to add contextual reference cards below subtitle text blocks in SRT files.
npx skills add https://github.com/dean9703111/ai-agent-skill-for-video-workflow --skill SRT Card Annotator
This skill provides an AI-driven workflow for analyzing SRT subtitle files and adding contextual reference cards below subtitle text blocks. Cards are intelligently selected based on content context and must not modify original timestamps or subtitle text.
Enhance SRT subtitle files with reference cards that:
字卡Use this skill when:
Each card follows this format:
[字卡](word:xxx / type:yyy)
Where:
Reference references/card-types.yaml for complete definitions. Summary:
| Type | Usage | Context |
|------|-------|---------|
| 金色重點 | Core conclusions, critical insights | Most important takeaway |
| 白色提醒 | Suggestions, reminders, notes | Helpful tips and advice |
| 紅色警告 | Risks, errors, pitfalls | Dangers and common mistakes |
| 藍色列點 | Lists, steps, structured info | Sequential or parallel items |
Read the input SRT file and parse into segments:
For each subtitle segment, analyze:
Determine where to insert cards:
For selected segments:
For each extracted phrase, determine type:
Add card lines below subtitle text:
1
00:00:00,000 --> 00:00:05,000
這個操作有風險,請小心處理
[字卡](word:操作有風險請小心 / type:紅色警告)
2
00:00:05,000 --> 00:00:10,000
建議先備份資料再進行
[字卡](word:建議先備份資料 / type:白色提醒)
Save the annotated SRT as reference-cards.srt:
Before processing, read references/card-types.yaml to understand:
Before generating output:
card-types.yamlreference-cards.srtInput SRT:
1
00:00:00,000 --> 00:00:03,500
今天要教大家如何避免常見的錯誤
2
00:00:03,500 --> 00:00:07,000
第一步是檢查系統設定
Output SRT (reference-cards.srt):
1
00:00:00,000 --> 00:00:03,500
今天要教大家如何避免常見的錯誤
[字卡](word:避免常見的錯誤 / type:紅色警告)
2
00:00:03,500 --> 00:00:07,000
第一步是檢查系統設定
[字卡](word:第一步檢查系統設定 / type:藍色列點)
card-types.yamlreference-cards.srtreferences/card-types.yaml - Complete card type definitions, usage contexts, and selection principlesTo annotate an SRT file with reference cards:
references/card-types.yaml to understand card typesreference-cards.srtFocus on semantic understanding and contextual appropriateness when selecting card types. The goal is to enhance subtitles with meaningful, concise annotations that help viewers grasp key concepts, avoid pitfalls, and follow structured information.
Take dean9703111/srt card annotator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.