ksdisch

Trim Context — Development skill for Claude Code

Development community

Find and fix sources of Claude Code "token bloat" in a repo — oversized CLAUDE.md (vs the 40k-char limit), bloated memory files, large always-loaded files, and .claude/ cruft — then auto-apply the fix.

How to install Trim Context

Installs to ~/.claude/skills/ksdisch-claude-config-trim-context/SKILL.md

Terminal
mkdir -p ~/.claude/skills/ksdisch-claude-config-trim-context && curl -fsSL https://raw.githubusercontent.com/ksdisch/claude-config/HEAD/commands/trim-context.md -o ~/.claude/skills/ksdisch-claude-config-trim-context/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Trim Context does


description: Find and fix sources of Claude Code "token bloat" in a repo — oversized CLAUDE.md (vs the 40k-char limit), bloated memory files, large always-loaded files, and .claude/ cruft — then auto-apply the fixes. Optionally sweeps every repo under a parent dir. Run at a repo root, or pass a repo path / repos root. argument-hint: [optional: a repo path, or a parent dir like ~/Projects to sweep all repos under it] allowed-tools: Bash, Read, Edit, Glob, Grep

Target (optional): $ARGUMEN

Alternatives in Development

  • Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
  • Flow Parallel — Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates 2.8k ★
  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★

Full documentation available on GitHub

View Source Repository