← 返回 Skills 市场
43622283

Li Summarize

作者 Terry S Fisher · GitHub ↗ · v0.0.2 · MIT-0
cross-platform ✓ 安全检测通过
102
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install li-summarize
功能描述
使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。
使用说明 (SKILL.md)

li-summarize

国内优化版的 summarize CLI,全面支持 OpenAI 兼容 API 的各种国内大模型服务。

快速开始

# 使用环境变量(推荐)
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)

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)

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)

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)

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 (月之暗面)

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

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)

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 (稀宇)

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)

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 (本地部署)

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

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 中预设常用配置:

{
  "model": "baidu/ernie-4.0-8k",
  "openaiBaseUrl": "https://qianfan.baidubce.com/v2",
  "openaiApiKey": "your-bce-key",
  "length": "xl",
  "language": "zh-CN"
}

使用示例

# 总结网页
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

配置模板

百度千帆(推荐)

# .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

阿里云通义千问

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(便宜好用)

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
  • 检查网络连接

依赖问题

# 如果缺少 ffmpeg (YouTube 音频处理)
sudo apt install ffmpeg  # Ubuntu/Debian
sudo yum install ffmpeg  # CentOS
brew install ffmpeg      # macOS

相关链接

安全使用建议
This skill appears internally consistent with its purpose. Before installing: 1) Review the npm package '@steipete/summarize' (source/reputation) because 'npm install -g' runs code on your machine. 2) Be aware the scripts create ~/.summarize/config.json and providers.json and may write a placeholder API key — replace placeholders with your own keys and avoid committing those files. 3) If you prefer tighter control, run the install steps manually (inspect the package, or install locally rather than globally) and avoid running scripts as root. 4) Confirm you trust the model provider endpoints you configure (OPENAI_BASE_URL) since API keys you place in config or env vars grant those endpoints access to billing/usage.
功能分析
Type: OpenClaw Skill Name: li-summarize Version: 0.0.2 The skill is a configuration wrapper for the legitimate '@steipete/summarize' npm package, optimized for Chinese LLM providers (Baidu, Alibaba, DeepSeek, etc.). The installation and setup scripts (install.sh, setup.sh) perform standard tasks such as creating configuration files in ~/.summarize and managing environment variables for API keys. No evidence of malicious intent, data exfiltration, or suspicious execution was found.
能力评估
Purpose & Capability
Name/description (summarize URLs, local files, YouTube using domestic OpenAI‑compatible APIs) match the declared runtime requirement (binary 'summarize') and the SKILL.md examples. The included install scripts install the @steipete/summarize CLI which is coherent with the stated purpose.
Instruction Scope
SKILL.md and scripts expect and use OPENAI_BASE_URL and OPENAI_API_KEY and instruct creating/reading ~/.summarize/config.json — these are appropriate for a multi‑provider summarizer, but the registry metadata lists no required env vars; the skill will still operate when the user provides those env vars or edits the config file.
Install Mechanism
There is no registry install spec, but scripts call 'npm install -g @steipete/summarize' if 'summarize' is missing. Installing a global npm package is a normal delivery for a CLI but carries the usual npm risks (package executes install scripts, modifies system). The installers do not download from obscure URLs and create files under the user's home directory.
Credentials
Requested/used environment variables (OPENAI_BASE_URL, OPENAI_API_KEY, optional SUMMARIZE_MODEL) are directly relevant to contacting OpenAI‑compatible model endpoints; no unrelated credentials or high‑privilege secrets are requested.
Persistence & Privilege
Skill does not request always:true and does not modify other skills or global agent settings. It writes config files to ~/.summarize, which is appropriate for a CLI tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install li-summarize
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /li-summarize 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
- Updated scripts/install.sh and scripts/setup.sh. - Minor version bump from 0.0.1 to 0.0.2. - No user-facing changes in documentation or features.
v0.0.1
- Initial release of li-summarize. - Provides a summarize CLI optimized for domestic OpenAI-compatible APIs. - Supports summarizing URLs, local files, and YouTube links. - Compatible with major Chinese large model services, including Baidu Qianfan, Alibaba Cloud, Tencent Hunyuan, ByteDance Volcano, Moonshot, and DeepSeek. - Offers extensive usage examples, configuration templates, and troubleshooting guidance.
v1.0.0
Initial release of li-summarize — a domestically optimized summarize CLI for rapid summarization using any OpenAI-compatible Chinese large model API. - Supports summarizing URLs, local files, and YouTube links. - Compatible with major domestic API providers, including Baidu QianFan, Aliyun Dashscope, Tencent Hunyuan, Byte Volcano, Moonshot, DeepSeek, Zhipu, MiniMax, StepFun, Ollama, and OneAPI. - Flexible configuration via environment variables or config file. - Offers multiple output options: different summary lengths, JSON format, content extraction, and streaming. - Troubleshooting section and setup templates for all supported providers.
元数据
Slug li-summarize
版本 0.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Li Summarize 是什么?

使用国内 OpenAI 兼容 API 快速总结 URLs、本地文件、YouTube 链接。支持所有国内大模型 API(百度千帆、阿里云、腾讯混元、字节火山、Moonshot、DeepSeek 等)。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。

如何安装 Li Summarize?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install li-summarize」即可一键安装,无需额外配置。

Li Summarize 是免费的吗?

是的,Li Summarize 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Li Summarize 支持哪些平台?

Li Summarize 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Li Summarize?

由 Terry S Fisher(@43622283)开发并维护,当前版本 v0.0.2。

💬 留言讨论