content-summarizer-new
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "content-summarizer-new" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5462dedc87fd4d561c690f8228aa53a25e8fe58f4a766078fa7755bb28c99095. Verify the upstream source and version against https://skillhub.cn/skills/user_2eb01825/content-summarizer-new before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Plain-text to structured-summary atomic converter: distills any text into multi-level summaries (one-sentence, bullet points, tags) and outputs JSON/Markdown dual formats as a standard pipeline intermediate for information compression and key-point extraction.
Introduction source: third_party · user_2eb01825 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 内容摘要器
description: 纯文本→结构化摘要的原子转换器。将任意文本提炼为多层级摘要(一句话、要点、标签),输出 JSON/Markdown 双格式,作为编排流水线中的标准中间节点。当需要对文本内容进行信息压缩、摘要提取、关键要点梳理时使用。内容摘要器
角色定位
纯文本→结构化摘要的原子转换器。作为编排流水线中的标准中间节点,接收上游内容生产者的文本输出,加工为多层级摘要后传递给下游消费者。
身份:工部 — 信息加工节点。只做压缩,不做检索、不做翻译、不读文件。
输入规范
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
content |
string | 是 | — | 待摘要的文本字符串。上限 64K tokens,超出截断并标记 partial=true |
output_format |
enum | 否 | "json" |
输出格式:"json"(机器消费)或 "markdown"(人类可读) |
lang |
string | 否 | 自动检测 | 输出语言。留空时按输入文本字符比例判定(>50% 为该语言主导) |
summary_layers |
array | 否 | ["one_liner","key_points","tags"] |
输出层控制。可选值见下方 |
summary_layers 说明
| 层次 | 键名 | 产出 | 数量约束 |
|---|---|---|---|
| 一句话摘要 | one_liner |
全篇核心概括 | ≤80 字符 |
| 要点列表 | key_points |
段落级要点 | 动态范围:min(2, 文本段数) ~ max(10, 文本段数/3) |
| 关键词标签 | tags |
主题关键词 | 动态范围:min(2, 文本段数/5) ~ max(10, 文本段数) |
JSON 输出模板
{
"documents": [
{
"source": "inline",
"one_liner": "一句话核心概括(≤80字符)",
"key_points": [
{"id": 1, "point": "要点内容", "confidence": 0.92},
{"id": 2, "point": "要点内容", "confidence": 0.88}
],
"tags": ["标签1", "标签2", "标签3"],
"word_count": 1280,
"partial": false,
"actual_one_liner_length": 62
}
],
"summary_meta": {
"model": "content-summarizer/v1",
"lang_detected": "zh",
"output_lang": "zh",
"layers_enabled": ["one_liner", "key_points", "tags"]
}
}
错误返回模板
// 空输入
{"documents": [], "error": "empty_input", "summary_meta": {"model": "content-summarizer/v1"}}
// 不可识别内容
{"documents": [], "error": "unintelligible_content", "confidence": 0, "summary_meta": {"model": "content-summarizer/v1"}}
// 超长截断
{"documents": [{"one_liner": "...", "key_points": [...], "tags": [...], "partial": true, "truncated_at": 64000}]}
Markdown 输出模板
# 内容摘要
**核心概括**:一句话摘要内容
## 要点
1. 第一条要点
2. 第二条要点
3. 第三条要点
## 关键词
`标签1` `标签2` `标签3`
---
*原文约 1280 字 | 摘要生成时间:2026-06-25*
工作流
Phase 1:输入校验
- 检查
content是否为空或仅包含空白字符 → 返回empty_input - 估算 token 数(粗略:中文字数 × 1.5 + 英文单词数 × 1.3)。超过 64000 时截断,设置
partial=true - 使用启发式方法判定内容可理解性:
- 可打印字符占比 < 30% →
unintelligible_content - 已知语言的常见字频分布严重偏离(如 90% 字符为同一字符)→
unintelligible_content - 连续空格/换行占比 > 80% →
unintelligible_content - 未检测到任何已知语言的完整单词(中文无汉字且英文无字母单词序列)→
unintelligible_content
- 可打印字符占比 < 30% →
- 检测主导语言:按 Unicode 范围统计中文字符 vs 拉丁字符比例
Phase 2:语义分析(LLM 驱动)
- 将
content送入 LLM 进行理解,识别:- 文档类型(新闻、论文、对话、评论、代码等)
- 主题域(科技、商业、生活、学术等)
- 结构特征(有无标题、段落、列表)
- 生成一句话摘要 (
one_liner):≤80 字符,覆盖全文核心主张或结论。若为对话类内容,概括对话主题和各参与方核心观点;若为代码,概括功能目的 - 提取要点 (
key_points):- 按"主张-论据"或"事件-因果"逻辑链提取
- 每条要点 ≤ 50 字符
- 附置信度(0-1):基于 LLM 对该要点作为核心信息的确信程度
- 提取标签 (
tags):去重、去停用词、优先名词短语
Phase 3:输出生成
- 根据
output_format选择模板 - JSON 模式:严格遵守 JSON 模板,字段不可缺失
- Markdown 模式:按模板渲染,要点序号递增
- 语言适配:若
lang指定了不同于检测语言的目标语言,要点和标签也用目标语言输出
Phase 4:产物写入
- 将输出内容写入当前环境
output目录 - 文件命名:
content-summary-{timestamp}.json或content-summary-{timestamp}.md - 时间戳格式:
YYYYMMDD-HHmmss
Hook 校验(输出前必检)
| # | 检项 | 规则 | 不通过处理 |
|---|---|---|---|
| 1 | one_liner 非空 |
正常模式下必须存在且非空字符串 | 回退 Phase 2 重新生成 |
| 2 | one_liner 长度 |
≤80 字符 | 截断至 80 字符,记录 actual_one_liner_length 原始长度 |
| 3 | key_points 数量 |
在动态范围内(参见 summary_layers 说明) | 超出则按置信度截断;不足则标记 |
| 4 | tags 无重复 |
数组内无重复项 | 去重 |
| 5 | JSON 字段完整 | 所有必填字段存在 | 补全缺失字段,confidence 默认 0.5 |
日志规范
每个 Phase 完成后输出一行日志(不展示给用户):
[内容摘要器] Phase N 完成 | 关键指标
[内容摘要器] Phase 1 完成 | content_length=1280, lang=zh, partial=false
[内容摘要器] Phase 2 完成 | one_liner=62chars, key_points=5, tags=7
[内容摘要器] Phase 3 完成 | output_format=json
[内容摘要器] Phase 4 完成 | output_file=content-summary-20260625-143022.json
交互约束
- 单次调用闭环:一次输入一次输出,不进行多轮对话
- 无副作用:不读取/修改/删除任何文件系统内容(仅写入 output 目录)
- 无网络请求:纯 LLM 驱动,不需要外部 API
- 静默执行:执行过程中不向用户输出过程信息,仅返回最终摘要或错误
编排属性
| 属性 | 值 |
|---|---|
| 风险等级 | 只读(仅写入沙箱 output 目录) |
| 并行安全 | 是(无状态、无共享依赖) |
| 六部归口 | 工部 — 信息加工 |
| 典型前驱 | web_search, web_fetch, multi-search-engine, literature-review, baoyu-url-to-markdown |
| 典型后驱 | baoyu-diagram, Skywork-ppt, frontend-slides, to-prd, baoyu-format-markdown |
| DAG 位置 | 中间节点,embarrassingly parallel |
质量标准参考
详见 references/summary-standards.md,涵盖信息保真度、结构清晰度、语言简洁度、编排兼容性四个维度。 (内容由AI生成,仅供参考)
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值/高频刚需,直接解决用户明确的核心任务痛点——文本信息压缩与摘要提取
- 适用于多种场景如新闻、论文、对话等,显著提升信息处理效率
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
- description明确指出了使用场景和核心功能
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行,结构规范,文档详细
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制,可靠性良好
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.