Skip to main content

semantic-summarization

Summarize text while preserving semantic meaning, entities, relationships, and actionable details.

来源信息

仓库
glayph/Agent
最近来源活动
2026年9月19日 22:39
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
semantic-summarization
description
Summarize text while preserving semantic meaning, entities, relationships, and actionable details.
version
1.0.0
author
Miki
license
MIT
platforms
["linux","macos","windows"]
metadata
{"Miki":{"tags":["summarization","compression","context-management"],"related_skills":["concise-prompt","rag-context"]}}
# Semantic Summarization (Context Compression) ## Goals - Reduce token count by 70-90% - Preserve all entities, numeric values, relationships, and action items - Remove redundancy, verbosity, and low-information content ## Compression strategy (tiered) ### Tier 1 — Lossless (50-70% compression) Keep all facts. Remove adjectives, adverbs, filler, meta-commentary. ``` Input: "The function appears to be intentionally designed to handle edge cases like null values and undefined inputs gracefully." Output: "Function handles edge cases: null, undefined." ``` ### Tier 2 — Semantic (70-85% compression) Merge related facts. Abstract examples into patterns. Drop tangential details. ``` Input: "We tried using approach A which failed, then approach B which also failed, and finally approach C which worked." Output: "A, B failed. C succeeded." ``` ### Tier 3 — Extractive (85-95% compression) Keep only: entities, decisions, blockers, action items, key numbers. Drop: explanations, context, rationale, alternatives not chosen. ## Rules - Numbers, dates, percentages, IDs → always preserve verbatim - Proper nouns, filenames, function names → always preserve - Action items and decisions → always preserve - Repeated information → keep first occurrence only - Code snippets → keep signature + 1-line summary; drop body - Error messages → keep error type + code; drop full trace - Logs → keep timestamps + severity + message; drop metadata ## Output format - Use bullet points (not prose) - Prefix: `[K]` = key fact, `[D]` = decision, `[A]` = action, `[B]` = blocker
在 GitHub 查看