Command Palette

Search for a command to run...

Назад к скиллам
скилл № 32167

Compress

Compress markdown (drop filler/hedging; keep directives, thresholds, examples; articles per compress_articles) with semantic-diff revert guard; default…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Compress в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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.

Methodology: snapshot original → mechanical compression (the caveman plugin via /caveman:caveman-compress, or in-session Edit fallback) → semantic-diff subagent compares original vs condensed (SEMANTIC LOSS / AMBIGUITY / FALSE POSITIVE per finding, verbatim citations) → revert every SEMANTIC LOSS + AMBIGUITY → run the repository's markdown lint command → ship or revert.

Before the snapshot and the first edit, resolve the lint command and run its baseline (the post-edit lint hard rule below); this flow line and the two step lists below it start after that baseline.

Articles: compress_articles

Resolve this before Step A and before the audit scan; it decides the backend and how much a run may cut. Layers, lowest first, a later one winning (key contract: ${CLAUDE_PLUGIN_ROOT}/reference/config.md):

Layer Value
default keep
userConfig ${user_config.compress_articles}. A literal unexpanded token means unset; keep here is reported as the default, since the two cannot be told apart.
repository compress_articles in docs/conventions/docs-hygiene.yaml at the repository root

Read the repository layer with bash "${CLAUDE_SKILL_DIR}/scripts/articles-setting.sh". It prints keep or cut for a valid value, unset with a reason when the layer does not apply (no git working tree, a root that is $HOME or an ancestor of it, no file, no key), or invalid with what the key holds (a value other than the two, an empty or null value, a map or list, a key set twice, a file that does not parse).

A layer holding anything other than keep or cut is named in the output (the file or userConfig that held it, the key, the value) and dropped. A valid higher layer still wins; with none, the run continues on the default, keep. It never stops on an invalid value and never falls through to a lower layer's value.

Value Backend What may be cut
keep in-session Edit, even when caveman is enabled (why keep skips caveman) the batch path's word-level set without articles: filler, hedging, pleasantries, verbose verb phrases, passive to active, nominalization collapse. No sentence or restatement deletion, on a single file as in a batch. An article dropped anyway is restored in the revert pass
cut caveman when available, otherwise in-session Edit (Step A onward, unchanged) articles too; a single-file Edit run may use the full matrix, restatement deletion included

Report the result once per run, as the last line of the summary: compress_articles: keep (default), `compress_articles: cut (docs/conventions/docs-hygiene.yam

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • context/compare-prompt.md
  • context/fan-out-orchestration.md
  • context/flavor-vs-content-matrix.md
  • context/integration.md
  • context/semantic-diff-prompt.md
  • context/target-types.md
  • evals/evals.json
  • scripts/articles-setting.sh
  • scripts/articles-setting.test.sh
  • scripts/audit-scan.sh
  • scripts/audit-scan.test.sh
  • scripts/detect-caveman.sh
  • scripts/detect-caveman.test.sh

FAQ

Что делает скилл Compress?

Compress markdown (drop filler/hedging; keep directives, thresholds, examples; articles per compress_articles) with semantic-diff revert guard; default, audit/compare (read-only). Use when 'compress this doc', 'tighten markdown', 'cut prose'. Not for compaction: /compact, noise: /docs-hygiene:audit-noise, or SSOT: /docs-hygiene:extract-ssot.

Как установить скилл Compress?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Compress запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Compress с