compress

compress is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 88 tokens per session (7,104 once invoked), scanned B, original, MIT.

A writing tool for shortening Markdown documents while keeping their instructions, conditions, examples, and meaning intact.

In plain words
What is it for?
Use it to tighten README files, documentation, onboarding text, or agent instruction files.
Why use it?
It removes filler and repetition without silently changing what the document requires.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the docs-hygiene plugin — 9 skills, 1 agent, 1 plugin shipped together

Good fit Use it to tighten README files, documentation, onboarding text, or agent instruction files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install docs-hygiene

Made for: Claude Code.

Or install docs-hygiene, the plugin that ships this one along with the rest of its 9 skills, 1 agent, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compress

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/compress/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/compress)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/compress"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/compress/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compress

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/compress"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/compress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,104 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.07104
Opus 5.5 $0.00035 $0.02842
Sonnet 5.5 $0.00018 $0.01421
Haiku 4.5 $0.00009 $0.00710

Measured yesterday against content hash 4a650762c4da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

compress scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/articles-setting.sh, scripts/articles-setting.test.sh, scripts/audit-scan.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$(dirname "<absolute-path-from-step-1>")"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/docs-hygiene/skills/compress/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compress

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current
  • Uncommitted .md files (empty = none matched or the probe returned nothing), git status --porcelain | grep -E '\.md"?$' | head -10

Purpose

Markdown in docs/, README files, onboarding docs, third-party pasted prose, and drifted skill bodies accumulates flavor: filler ("just", "really", "basically"), hedging ("perhaps", "might"), pleasantries, and, only when compress_articles is cut, articles. context/flavor-vs-content-matrix.md defines flavor (safe to cut) vs content (never cut). Under the default, keep, a run keeps every a, an and the and is held to the batch path's word-level cuts on every target, single file included (Articles). The batch fan-out path (Phase A LATITUDE) is a word-level trimmer: mechanical drops + passive→active + nominalization only, no sentence-level restatement deletion. Under cut, the single-file in-session Edit fallback may apply the full matrix taxonomy (including redundant restatement of bold rule names) behind the same semantic-diff net. Always-loaded instruction files (.claude/rules/**, AGENTS.md, CLAUDE.md, **/SKILL.md) bound empirically at 2-3% yield (see ## Sources); author-time-undisciplined content likely yields 5-15% under the Edit fallback's broader latitude, less under batch fan-out.

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +2 lines 4a650762c4da
  2. 2d ago Changed d6d5cd6ddcf5
  3. 5d ago Changed · +3 lines · -68 tokens per session scan C → B abc362437b48
  4. 6d ago Changed · +3 lines f8a677d2d8ec
  5. 9d ago Changed · +6 lines 0a282d6c939f
  6. 10d ago Changed · -7 lines 21cee35cc400
  7. 14d ago Changed · +3 lines d6632ba8bedc
  8. 17d ago Changed 47d94c4d9d96
  9. 18d ago Changed 99d460149f3c
  10. 21d ago First seen · 214 lines · 156 tokens per session scan C 61d1ee3b592f

Subscribe to this mod's changes

compress is a skill published in the GitHub repository melodic-software/claude-code-plugins (34 stars, last pushed today), licensed MIT. It adds 88 tokens to every session and 7,104 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

compress compared with skills from other repositories

compress next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compressmelodic-software/claude-code-pluginsSkill34todayMITB88Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code