lattifai/lattifai-skills/lai-summarize
Claude Code and agent skill by lattifai/lattifai-skills
- community
Checking that the SKILL.md file is still in the repository.
Summarize a transcript, podcast, or long caption file into structured markdown (TL;DR, chapters with timestamps, quotes, entities). **Primary path uses this session's LLM directly — no API key, no model config.** Trigger on "summarize", "生成摘要", "总结", "TL;DR", "episode summary", "what was discussed", or when the user has a long caption and wants key points. CLI `lai summarize caption` is the secondary path for oversized transcripts / headless runs.
Install
npx vskill@latest install lattifai/lattifai-skills/lai-summarizeSKILL.md
Content Summarizer
Preferred model: Claude Sonnet (cost-efficient for this agent-driven workload). This skill runs on whatever model is active in the parent session — any Claude model works; no hard switch.
This skill summarizes using the agent's own LLM capability — the model you are running right now. It does not call out to any external LLM service by default. Helper scripts turn the source into an agent-ready prompt and validate the finished summary, so the agent only has to write prose.
Primary path (agent-driven, default): prepare.py → agent writes summary.md → validate.py. Secondary path: lai summarize caption (CLI with its own LLM backend) — only when the transcript is too large for the agent's context, or there is no agent in the loop.
Inputs
Any caption format supported by lattifai-captions (SRT, VTT, ASS, JSON, Gemini markdown, plain text, …).
Optional meta.md beside the source enriches the summary. If `meta.md` defines `chapters:`, those titles and timestamps are hard constraints — no merge, split, rename, or reorder.
meta.md must wrap its YAML in --- frontmatter delimiters; otherwise validate.py can't parse it and hard constraints are silently skipped (with a warning on stderr). Minimal template:
Primary Path (agent-driven)
Parameters (agent choices)
<source>— caption/transcript file--output <path>— default<source>.summary.md--meta <path>— episode metadata (auto-detected beside source)--lang <code>— summary language (default: source language)- length —
short/medium/long≈ 200–400 / 500–1000 / 1000–2000 words (defaultmedium)
Workflow
<base> = source media stem (e.g. podcast from podcast.mp3) or YouTube ID. Files all land in the current directory:
prepare.py produces a transcript with [MM:SS] timestamps and speaker labels, plus a # Meta block that marks meta.md chapters as HARD CONSTRAINT when present.
Output Schema
What validate.py checks
- Frontmatter is valid YAML with all required fields
seo_title≤ 60,seo_description≤ 160tags: 4–8 entrieschapters: 1–8, each with title/start/end, start < end- Hard constraint: chapter titles + timestamps match
meta.mdverbatim when present - Body
## [MM:SS] Titleheaders match frontmatter chapters 1:1 in order - Every
> *"quote"*appears verbatim in source transcript text confidence∈ [0, 1];source_quality∈ {high, medium, low}
Requires pyyaml (stdlib argparse / re otherwise).
Secondary Path (CLI)
The CLI takes two positional args (input, output); there is no -o:
Configure an LLM backend once (required for this path only):
CLI options: summarization.lang=zh, summarization.length=short, summarization.output_format=json, meta=video.meta.md.
Common Issues
| Problem | Fix | |
|---|---|---|
validate.py flags quote not in source | Quote must be verbatim — rewrite or pick another line | |
| Chapter count / timestamp drift from meta.md | Hard constraint — use meta.md values exactly | |
| Transcript too large for the agent | Fall back to CLI (secondary path) | |
meta.md chapters malformed | Remove from meta.md and let the agent generate chapters |
Related Skills
/lai-transcribe— produce the transcript first/lai-align— precise timestamps feed chapter boundaries/lai-diarize— speaker labels enable speaker-aware summaries/lai-translate— translate the summary
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 repositoryCheckingskills/lai-summarize/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/lattifai/lattifai-skills/lai-summarize)