From se7en-skills
Summarizes videos and extracts full transcripts from URLs (YouTube, Bilibili, Douyin, Xiaohongshu, podcasts) via BibiGPT API. Activates on video links or keywords like 'summarize video', 'transcript'.
npx claudepluginhub yiliqi78/se7en-skillsThis skill uses the workspace's default tool permissions.
通过 BibiGPT API 获取视频的 AI 总结和完整口播逐字稿。
Extracts transcripts from YouTube videos via youtube-transcript-api Python library, web fetch, or manual input and generates verbose summaries using STAR + R-I-S-E framework for educational content analysis.
Summarizes or extracts text/transcripts from URLs, podcasts, local files, and YouTube videos using summarize.sh CLI with AI models like Gemini or OpenAI.
Share bugs, ideas, or general feedback.
通过 BibiGPT API 获取视频的 AI 总结和完整口播逐字稿。
方式一:环境变量(推荐)
export BIBIGPT_TOKEN="your_token_here"
方式二:修改脚本
编辑 scripts/bibigpt_fetch.py,将 API_TOKEN 变量替换为你的 token。
从用户消息中提取视频链接,去除追踪参数:
https://www.bilibili.com/video/BVXXXXXX/https://www.youtube.com/watch?v=VIDEO_ID使用本技能目录下的 scripts/bibigpt_fetch.py 脚本:
python3 /path/to/bibigpt_fetch.py "<视频URL>"
脚本会自动:
将结果保存为 Markdown 文件:
---
source: <视频URL>
platform: <平台>
author: <作者>
duration: <时长秒>
created: <YYYY-MM-DD>
tags: [bibigpt, transcript]
---
## 总结
<summary 内容>
## 口播逐字稿
<transcript 内容>
保存路径由用户指定,默认保存到当前工作目录。
向用户展示:
| 端点 | 方法 | 用途 | 消耗时长 |
|---|---|---|---|
/api/v1/summarizeWithConfig | POST | 总结 + 详情(推荐) | 是 |
/api/v1/summarize | GET | 基本总结 | 是 |
/api/v1/getSubtitle | GET | 仅字幕(快) | 较少 |
/api/v1/express | GET | AI 文案改写 | 是 |
/api/v1/getPolishedText | GET | 字幕润色 | 是 |
{
"success": true,
"id": "BV1FW6TBHErd",
"service": "bilibili",
"sourceUrl": "https://...",
"htmlUrl": "https://bibigpt.co/...",
"summary": "## 总结 Markdown 内容...",
"costDuration": 600,
"remainingTime": 3000,
"detail": {
"title": "视频标题",
"author": "作者名",
"duration": 1200,
"cover": "封面URL",
"type": "bilibili",
"subtitlesArray": [
{"startTime": 0.5, "text": "第一句话"},
{"startTime": 3.2, "text": "第二句话"}
]
}
}
注意:summary 和 detail 在顶级,不是嵌套在 data 里。
当 includeDetail: true 时才返回 detail 对象。
{
"success": false,
"code": "PAYMENT_REQUIRED",
"message": "余额不足啦,请升级会员或购买时长哦!"
}
常见错误码:PAYMENT_REQUIRED(余额不足)、INVALID_URL、TIMEOUT。
如果用户只要逐字稿不要总结,用 getSubtitle 端点更省额度。
POST 请求支持 promptConfig 自定义总结风格:
{
"url": "<视频URL>",
"includeDetail": true,
"promptConfig": {
"showEmoji": true,
"showTimestamp": false,
"outlineLevel": 1,
"sentenceNumber": 5,
"detailLevel": 700,
"outputLanguage": "zh-CN",
"customPrompt": "自定义提示词",
"isRefresh": true
}
}
isRefresh: true 时忽略缓存,customPrompt 才会生效。