Agent skill

Text Condenser

by ZJU-REAL in ZJU-REAL/Easel

字数裁剪/摘要:把长文本压缩到指定字数,保留核心信息。支持硬裁剪(严格字数)、 摘要(保留要点)、金句提取(只保留最精华的句子)三种模式。

Apache-2.0Auto-check passed

Install Text Condenser

skills CLI
$ npx skills add ZJU-REAL/Easel --skill text-condenser -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZJU-REAL/Easel text-condenser --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZJU-REAL/Easel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openclaw/text-condenser .claude/skills/text-condenser && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
text-condenser
GitHub stars
3.4k
Token cost
~696 tokens
SKILL.md length
216 words
Files
2
Skills in repo
114
Repo updated
First seen
Licence
Apache-2.0

At a glance

字数裁剪/摘要:把长文本压缩到指定字数,保留核心信息。支持硬裁剪(严格字数)、 摘要(保留要点)、金句提取(只保留最精华的句子)三种模式。

  • Works in 5 steps: 原文分析 → 裁剪策略 → 执行压缩 → …
  • SKILL.md covers 输入, 输出, 执行步骤 and Profile 感知
  • Calls python3

What it does

Text Condenser is an agent skill from ZJU-REAL/Easel. 字数裁剪/摘要:把长文本压缩到指定字数,保留核心信息。支持硬裁剪(严格字数)、 摘要(保留要点)、金句提取(只保留最精华的句子)三种模式。 特别适合从长文生成平台适配的短文。 使用时机:用户说"裁到 140 字"、"压缩一下"、"太长了"、"摘要"、"精简"、 "缩写"、"字数裁剪"、"帮我缩短"、"提炼要点"。 和 text-polisher 的区别:polisher 润色文案不改长度,condenser 压缩篇幅不做质量提升。

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `EASEL-META.md`).

The repository describes itself as: An open-source AI agent for social media — discover trends, create content, publish everywhere, and learn what works across Xiaohongshu, Douyin, Zhihu, Bilibili, and more.🎨一个开源的… The licence is Apache-2.0.

Example prompts

  • “裁到 140 字”
  • “/text-condenser”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 原文分析
  2. 裁剪策略
  3. 执行压缩
  4. 质量检查
  5. 输出压缩报告

What it can do on your machine

Read from SKILL.md and the folder at commit 278f420. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Text Condenser loads about 696 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~696

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZJU-REAL/Easel at commit 278f420, republished under its Apache-2.0 licence (© ZJU-REAL). 216 words, ~696 tokens.

Download SKILL.mdSave it as .claude/skills/text-condenser/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
text-condenser
description
字数裁剪/摘要:把长文本压缩到指定字数,保留核心信息。支持硬裁剪(严格字数)、 摘要(保留要点)、金句提取(只保留最精华的句子)三种模式。 特别适合从长文生成平台适配的短文。 使用时机:用户说"裁到 140 字"、"压缩一下"、"太长了"、"摘要"、"精简"、 "缩写"、"字数裁剪"、"帮我缩短"、"提炼要点"。 和 text-polisher 的区别:polisher 润色文案不改长度,condenser 压缩篇幅不做质量提升。
layer
produce

字数裁剪/摘要

把长文本压缩到指定字数,保留核心信息,适配不同平台的字数限制。

输入

字段必填说明
text是待压缩的原文
target_length否目标字数(如 140、280、500);不指定则自动压缩到原文 30%-50%
mode否压缩模式:strict / summary / extract(默认 summary)
platform否目标平台(自动设定字数限制):weibo(140) / twitter(280) / xiaohongshu(1000) / zhihu_answer(自由)
preserve否必须保留的关键信息/关键词列表
tone否压缩后的语气倾向:neutral(默认)/ punchy(有力)/ soft(柔和)
压缩模式说明
模式行为适用场景
strict严格控制在目标字数 ±5%,逐字斟酌有硬性字数限制的平台(微博、Twitter)
summary保留所有要点,允许字数浮动 ±15%生成摘要、文章导语
extract只提取原文中最精华的原句,不改写金句提取、精华摘录

输出

  • 压缩后的文案
  • 压缩报告:原文字数、目标字数、实际字数、压缩率、保留的核心要点列表
  • 写入 outputs/ 目录

执行步骤

字数以脚本为准:字数统计和达标判定一律用 skills/shared/scripts/wordcount.py, 不靠自己数。LLM 负责改写,脚本负责判定。 社媒计数口径(social_count)= 中文字符 + 英文单词 + 数字串 + 标点。

Step 1 — 原文分析
  1. 统计原文字数:python3 skills/shared/scripts/wordcount.py count -f <原文>(或经 stdin 传入)
  2. 提取核心信息结构:
    • 中心论点 / 核心事实
    • 关键论据 / 支撑数据
    • 次要信息 / 补充说明
    • 修饰性内容 / 过渡句
  3. 对每条信息标注优先级(P0 必留 / P1 尽量留 / P2 可删)
Step 2 — 裁剪策略

根据保留率(目标字数 / 原文字数)选择策略:

保留率策略说明
> 70%轻度删减删冗余修饰、合并重复表达
40%-70%中度压缩删 P2 信息、精简句式、合并相似段落
20%-40%重度压缩只留 P0/P1、改写为高密度表达
< 20%极限压缩只留 P0、一句话概括
Step 3 — 执行压缩

按 mode 执行:

strict 模式(脚本兜底,闭环调整):

  1. 先裁到目标字数的 120%
  2. 逐句精简,去掉每句中可删的词
  3. 调用脚本校验:python3 skills/shared/scripts/wordcount.py check --target <N> -f <文件>(或经 stdin 传入)
    • 退出码 0 = 达标;非 0 = 未达标,脚本会给出「还需增/删 X 字」
    • 平台硬限制默认 ±5%,可用 --tolerance 调整(如 --tolerance 0.1)
  4. 未达标则继续改写并重新 check,直到脚本判定 pass(退出码 0),不得凭感觉收尾
  5. 确认无断句、无残句

summary 模式:

  1. 按信息优先级筛选内容
  2. 用自己的话重写,不受原文句式约束
  3. 确保逻辑连贯、可独立阅读

extract 模式:

  1. 对每句打分(信息密度 x 表达质量)
  2. 按得分降序选句,直到接近目标字数
  3. 调整句序使其连贯
  4. 不改写原句(最多做衔接过渡)
Step 4 — 质量检查
  • 字数是否达标:strict 模式必须以 wordcount.py check 退出码 0 为准;其他模式用 wordcount.py count 核对是否落在容差范围
  • preserve 中的关键信息是否全部保留
  • 压缩后是否可独立阅读(不需要看原文就能理解)
  • 是否有信息失真(压缩导致意思改变)
  • 句子是否完整(无残句、无悬空指代)
Step 5 — 输出压缩报告
压缩报告:
- 原文: 2,350 字
- 目标: 500 字
- 实际: 487 字 (压缩率 79.3%,压缩率 = 已删减比例 = 1 − 实际/原文)
- 模式: summary
- 保留要点:
  1. [P0] 核心论点 — 已保留
  2. [P0] 关键数据 — 已保留
  3. [P1] 案例说明 — 已精简
  4. [P2] 背景介绍 — 已删除

Profile 感知

  • 有 Profile:从 style.md 读取品牌调性,压缩时保持一致的语言风格;参考 platforms.md 中的平台偏好,自动匹配最常用平台的字数规范
  • 无 Profile:按用户指定的参数压缩;未指定平台时默认 summary 模式,压缩到原文 30%-50%

自研溯源与参考项目见同目录 EASEL-META.md。

© ZJU-REAL, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/openclaw/text-condenser of ZJU-REAL/Easel.

  • SKILL.md
  • EASEL-META.md

Open the folder on GitHubat commit 278f420

Compare with similar skills

Text Condenser next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Text Condenser compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Text Condenser this skillZJU-REAL/Easel3.4k—~696Automated safety check: PassApache-2.0
Condensenotque/vexjoy-agent441—~929Automated safety check: NotesMIT
Doc CondenserMathews-Tom/armory329—~1.4kAutomated safety check: PassMIT
Text Condenseruntsang/RebuttalStudio218—~465Automated safety check: PassNone
Stage4 Condense Contextruntsang/RebuttalStudio218—~197Automated safety check: PassNone
Cc Skill Strategic Compactsickn33/agentic-awesome-skills47k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Condense

    notque/vexjoy-agent

    Maximize information density: preserve all instructions, remove prose filler.

    441 GitHub stars~929 tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Doc Condenser

    Mathews-Tom/armory

    DEPRECATED: The base model handles document condensation and summarization natively at high quality.

    329 GitHub stars~1.4k tokensUpdated 4 days ago
    Writing & ContentAuto-check passed
  • Text Condense

    runtsang/RebuttalStudio

    Condense rebuttal prose into fewer words without changing the original meaning.

    218 GitHub stars~465 tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed
  • Stage4 Condense Context

    runtsang/RebuttalStudio

    Condense Stage 3 combined discussion content into compact markdown context for Stage 4 multi-round follow-up drafting.

    218 GitHub stars~197 tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed
  • Cc Skill Strategic Compact

    sickn33/agentic-awesome-skills

    Prepare a verified checkpoint before condensing an agent conversation at a phase boundary.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Summarizer

    holaboss-ai/holaOS

    Condense long articles, reports, and documents into clear, concise summaries.

    11k GitHub stars~615 tokensUpdated 1 mo ago
    Auto-check passed

More from ZJU-REAL/Easel

All 114 skills in this repo
  • Gzh Design

    ZJU-REAL/Easel

    微信公众号文章排版引擎:把 Markdown / Word(.docx) / PDF / 纯文本转成可直接粘贴进公众号编辑器的 HTML,自动章节编号、关键词标记、引言卡、目录、代码块、图片/GIF、作者签名;主题从 references/theme-index.md…

    3.4k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • 微信公众号文章自动创作与发布工具。给定参考文章、文字或文档,自动搜索整理全网相关信息、生成图文并茂的公众号文章,并发布到微信公众号草稿箱。特别强调反 AI 检测写作。

    3.4k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Card Design

    ZJU-REAL/Easel

    社媒卡片视觉设计系统:提供配色、中文字体层级、满画幅布局、品类骨架和死空白/密度质检,避免模板化 PPT 与廉价 AI 感。

    3.4k GitHub stars~657 tokensUpdated yesterday
    Auto-check passed
  • Ecom Details Image

    ZJU-REAL/Easel

    生成电商商品视觉方案:主图概念、场景图、详情页视觉方向和 AI 生图 Prompt. An agent skill from ZJU-REAL/Easel.

    3.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check: notes
  • Infographic

    ZJU-REAL/Easel

    将数据或文字内容转化为可视化信息图,支持静态(AntV)和动画 GIF 两种模式。当用户需要制作信息图、数据可视化、流程图、对比图、动画图表、GIF 图表、思维导图、SWOT 分析图时调用。本地渲染信息图/GIF 动画;要单张静态图片 URL 用 chart-visualization,要 CSV/JSON→整页报告用 data-report

    3.4k GitHub stars~643 tokensUpdated yesterday
    Auto-check passed
  • Novel Writer

    ZJU-REAL/Easel

    长篇小说/网文连载创作:从世界观、人设和三级大纲写到逐章正文,并用文件化状态维护伏笔、前情和跨章一致性. An agent skill from ZJU-REAL/Easel.

    3.4k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed

Questions about Text Condenser

What does Text Condenser do?

字数裁剪/摘要:把长文本压缩到指定字数,保留核心信息。支持硬裁剪(严格字数)、 摘要(保留要点)、金句提取(只保留最精华的句子)三种模式。. Text Condenser is an agent skill from ZJU-REAL/Easel.

How do I install Text Condenser in Claude Code?

Run `npx skills add ZJU-REAL/Easel --skill text-condenser -a claude-code`. Or copy the skill folder (skills/openclaw/text-condenser in ZJU-REAL/Easel) into .claude/skills/text-condenser in your project. Claude Code loads it when a task matches its description.

How do I install Text Condenser in Codex?

Run `npx skills add ZJU-REAL/Easel --skill text-condenser -a codex`. Or copy the skill folder (skills/openclaw/text-condenser in ZJU-REAL/Easel) into .agents/skills/text-condenser in your project. Codex loads it when a task matches its description.

Can I use Text Condenser in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZJU-REAL/Easel --skill text-condenser -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/text-condenser, .gemini/skills/text-condenser, .github/skills/text-condenser and .opencode/skills/text-condenser in your project.

What does Text Condenser need to run?

Going by SKILL.md and its folder, Text Condenser needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Text Condenser access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Text Condenser safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Text Condenser use?

Text Condenser is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Text Condenser use?

About 696 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Text Condenser?

Skills that share tags, products or a category with Text Condenser: Condense (notque/vexjoy-agent, 441 stars), Doc Condenser (Mathews-Tom/armory, 329 stars), Text Condense (runtsang/RebuttalStudio, 218 stars) and Stage4 Condense Context (runtsang/RebuttalStudio, 218 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Text Condenser?

ZJU-REAL (a GitHub organization) maintains it in ZJU-REAL/Easel, which has 3,376 GitHub stars. The repository holds 114 skills in this directory. The repository was last updated on October 9, 2026.

Source: ZJU-REAL/Easel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.