skills/code-quality/condense/SKILL.md
Maximize information density: preserve all instructions, remove prose filler.
npx skillsauth add notque/claude-code-toolkit condenseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Strip prose filler from .md files. Preserve every instruction. This skill practices what it preaches.
Identify targets.
agents/*.md). Expand, list matches, confirm with user.Mechanical pre-pass (deterministic, run before LLM condensing): strip trailing whitespace and consecutive blank lines that inflate Opus token counts. The script handles the mechanical reduction so the LLM phase focuses on prose density.
python3 scripts/check-whitespace.py --fix <target-file-or-dir> # 0=clean, 1=violations fixed
Run on the scoped targets (defaults to agents/**/*.md and skills/**/*.md when no path given). Then proceed to the LLM pass on the same files.
Gate: At least one target file identified and readable; mechanical pre-pass run.
For each file:
KEEP (never cut):
CUT:
STYLE: Short sentences. Active voice. Concrete words. If you can cut a word without losing an instruction, cut it.
Before cutting any sentence: "If I remove this, does the reader lose an instruction, rule, or decision?" No = cut. Yes = keep.
Do not reorganize sections, change meaning, add ideas, alter paths/commands, drop tables or code blocks, or modify YAML frontmatter values.
For each condensed file:
python3 -c "import yaml; yaml.safe_load(open('<file>').read().split('---')[1])"
| File | Before | After | Reduction | table with word counts.Gate: YAML parses. No instructions lost. Reduction reported.
No prose to cut: Report 0% reduction, move to next file.
Instruction removed: Re-read original, restore missing instruction, re-verify.
YAML broken: Restore original frontmatter verbatim, re-condense body only.
Non-.md file: Skip with warning.
tools
Shell configuration: Fish and Zsh setup, PATH, completions, plugins.
tools
Kubernetes operations: debugging, security, RBAC, and infrastructure tooling.
development
Swift development: concurrency patterns, async/await, actors, testing with XCTest and Swift Testing framework.
development
PHP development: code quality, PSR standards, testing with PHPUnit.