li-summarize
使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。
Best use case
li-summarize is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。
Teams using li-summarize should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/li-summarize/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How li-summarize Compares
| Feature / Agent | li-summarize | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
SKILL.md Source
# li-summarize
国内优化版的 summarize CLI,全面支持 OpenAI 兼容 API 的各种国内大模型服务。
## 快速开始
```bash
# 使用环境变量(推荐)
export OPENAI_BASE_URL="https://qianfan.baidubce.com/v2"
export OPENAI_API_KEY="your-api-key"
summarize "https://example.com" --model qianfan/codegeex-4-2025-01-15
# 或者使用模型简称
summarize "https://example.com" --model baidu Ernie-4.0-8K
```
## 支持的国内 API 提供商
### 1. 百度智能云千帆 (QianFan)
```bash
export OPENAI_BASE_URL="https://qianfan.baidubce.com/v2"
export OPENAI_API_KEY="your-bce-api-key"
# 支持的模型
summarize "url" --model qianfan/ernie-4.0-8k
summarize "url" --model qianfan/ernie-3.5-8k
summarize "url" --model qianfan/codegeex-4
```
### 2. 阿里云通义千问 (Dashscope)
```bash
export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
export OPENAI_API_KEY="your-api-key"
# 支持的模型
summarize "url" --model qwen/qwen2.5-72b-instruct
summarize "url" --model qwen/qwen2.5-32b-instruct
summarize "url" --model qwen/qwen-max
summarize "url" --model qwen/qwen-turbo
```
### 3. 腾讯混元 (Hunyuan)
```bash
export OPENAI_BASE_URL="https://hunyuancloud.tencent.com/api/v3"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model hunyuan/hunyuan-pro
summarize "url" --model hunyuan/hunyuan-standard
```
### 4. 字节跳动火山引擎 (VeFy)
```bash
export OPENAI_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model doubao-pro-32k
summarize "url" --model doubao-standard-32k
```
### 5. Moonshot AI (月之暗面)
```bash
export OPENAI_BASE_URL="https://api.moonshot.cn/v1"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model moonshot/kimi-k2-0711-preview
summarize "url" --model moonshot/kimi-long
```
### 6. DeepSeek
```bash
export OPENAI_BASE_URL="https://api.deepseek.com/v1"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model deepseek-chat
summarize "url" --model deepseek-coder
```
### 7. 智谱 AI (Zhipu)
```bash
export OPENAI_BASE_URL="https://open.bigmodel.cn/api/paas/v4"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model glm-4-plus
summarize "url" --model glm-4-flash
summarize "url" --model glm-4
```
### 8. MiniMax (稀宇)
```bash
export OPENAI_BASE_URL="https://api.minimax.chat/v1"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model MiniMax-Text-01
summarize "url" --model abab6.5s-chat
```
### 9. 阶跃星辰 (StepFun)
```bash
export OPENAI_BASE_URL="https://api.stepfun.com/v1"
export OPENAI_API_KEY="your-api-key"
summarize "url" --model step-1v-8k
summarize "url" --model step-1.5-chat
```
### 10. Ollama (本地部署)
```bash
export OPENAI_BASE_URL="http://localhost:11434/v1"
export OPENAI_API_KEY="not-needed"
summarize "url" --model llama3
summarize "url" --model qwen2.5:72b
```
### 11. OneAPI / All In One
```bash
export OPENAI_BASE_URL="http://your-oneapi-server:3000/v1"
export OPENAI_API_KEY="your-key"
summarize "url" --model gpt-4
summarize "url" --model claude-3
```
## 预设配置(推荐)
为了简化使用,可以在 `~/.summarize/config.json` 中预设常用配置:
```json
{
"model": "baidu/ernie-4.0-8k",
"openaiBaseUrl": "https://qianfan.baidubce.com/v2",
"openaiApiKey": "your-bce-key",
"length": "xl",
"language": "zh-CN"
}
```
## 使用示例
```bash
# 总结网页
summarize "https://news.ycombinator.com" --model qwen/qwen2.5-72b-instruct
# 总结 YouTube 视频
summarize "https://youtube.com/watch?v=xxx" --model deepseek-chat
# 总结本地 PDF
summarize "/path/to/file.pdf" --model glm-4-plus
# 指定输出长度
summarize "https://example.com" --length medium
# 输出 JSON 格式
summarize "https://example.com" --json
# 仅提取内容(不总结)
summarize "https://example.com" --extract
# 流式输出
summarize "https://example.com" --stream on
```
## 环境变量速查表
| 提供商 | BASE_URL | API_KEY 环境变量 |
|--------|----------|------------------|
| 百度千帆 | `https://qianfan.baidubce.com/v2` | `OPENAI_API_KEY` |
| 阿里通义 | `https://dashscope.aliyuncs.com/compatible-mode/v1` | `OPENAI_API_KEY` |
| 腾讯混元 | `https://hunyuancloud.tencent.com/api/v3` | `OPENAI_API_KEY` |
| 字节火山 | `https://ark.cn-beijing.volces.com/api/v3` | `OPENAI_API_KEY` |
| Moonshot | `https://api.moonshot.cn/v1` | `OPENAI_API_KEY` |
| DeepSeek | `https://api.deepseek.com/v1` | `OPENAI_API_KEY` |
| 智谱 AI | `https://open.bigmodel.cn/api/paas/v4` | `OPENAI_API_KEY` |
| MiniMax | `https://api.minimax.chat/v1` | `OPENAI_API_KEY` |
| StepFun | `https://api.stepfun.com/v1` | `OPENAI_API_KEY` |
| Ollama | `http://localhost:11434/v1` | 任意 |
| OneAPI | `http://localhost:3000/v1` | `OPENAI_API_KEY` |
## 配置模板
### 百度千帆(推荐)
```bash
# .bashrc 或 .zshrc
export OPENAI_BASE_URL="https://qianfan.baidubce.com/v2"
export OPENAI_API_KEY="your-bce-v3-api-key"
# 使用
summarize "url" --model qianfan/ernie-4.0-8k
```
### 阿里云通义千问
```bash
export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
export OPENAI_API_KEY="your-dashscope-api-key"
summarize "url" --model qwen/qwen-max
```
### DeepSeek(便宜好用)
```bash
export OPENAI_BASE_URL="https://api.deepseek.com/v1"
export OPENAI_API_KEY="your-deepseek-api-key"
summarize "url" --model deepseek-chat
```
## 故障排除
### 401 认证错误
- 检查 `OPENAI_API_KEY` 是否正确
- 确认 API Key 有足够余额
### 403 权限错误
- 确认 API Key 已开通对应模型权限
- 百度千帆需要在控制台开通模型试用
### 404 模型不存在
- 确认模型名称拼写正确
- 确认该模型在对应平台可用
### 超时错误
- 增加超时时间: `summarize "url" --timeout 5m`
- 检查网络连接
### 依赖问题
```bash
# 如果缺少 ffmpeg (YouTube 音频处理)
sudo apt install ffmpeg # Ubuntu/Debian
sudo yum install ffmpeg # CentOS
brew install ffmpeg # macOS
```
## 相关链接
- summarize CLI: https://summarize.sh
- 百度千帆: https://cloud.baidu.com/product/wenxinworkshop
- 阿里云Dashscope: https://dashscope.aliyuncs.com/
- 腾讯混元: https://cloud.tencent.com/product/hunyuan
- DeepSeek: https://platform.deepseek.com/
- 智谱AI: https://open.bigmodel.cn/Related Skills
📝 智能摘要助手 (Smart Summarizer)
Instantly summarize any content — articles, PDFs, YouTube videos, web pages, long documents, or pasted text. Extracts key points, action items, and insights. Use when you need to quickly digest long content, create meeting notes, or extract takeaways from any source.
video-summarizer
将 B 站/YouTube/小红书/抖音视频转换为结构化 Notion 总结文档,自动上传截图,一键推送 Notion
custom-youtube-summarize
Extract transcript from a YouTube video using Python and summarize it.
shift-handover-summarizer
Generate structured shift handover summaries from EHR records, highlighting critical events, vital sign changes, and pending tasks for incoming clinical staff.
ib-summarizer
Summarize core safety information from Investigator's Brochures for clinical researchers
youtube-anycaption-summarizer
Turn YouTube videos into dependable markdown transcripts and polished summaries — even when caption coverage is messy. This skill works with manual closed captions (CC), auto-generated subtitles, or no usable subtitles at all by using subtitle-first extraction with local Whisper fallback. Supports private/restricted videos via cookies, batch processing, transcript cleanup, language backfill, source-language or user-selected summary language, and end-to-end completion reporting. Ideal for YouTube research, technical walkthroughs, founder content, tutorials, private/internal uploads, and batch video summarization workflows.
text-summarize
Summarize text into 3-5 bullet points using AI
summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
research-summarizer
Structured research summarization agent skill for non-dev users. Handles academic papers, web articles, reports, and documentation. Extracts key findings, generates comparative analyses, and produces properly formatted citations. Use when: user wants to summarize a research paper, compare multiple sources, extract citations from documents, or create structured research briefs. Plugin for Claude Code, Codex, Gemini CLI, and OpenClaw.
abstract-summarizer
Transform lengthy academic papers into concise, structured 250-word abstracts capturing background, methods, results, and conclusions. Optimized for research papers, theses, and technical reports across scientific disciplines.
youtube-summarizer
Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.
legal-matter-intake-summarizer
把法律相关咨询材料整理成事实、争议点、缺失材料与后续问题,不给法律结论。;use for legal, intake, case-summary workflows;do not use for 提供法律意见结论, 替代律师审查.