ruihe774

Cc Micro Compaction — Development skill for Claude Code

Development community

A Claude Mod that adds micro-compaction as /compact micro stripping file reads and thinking content.

How to install Cc Micro Compaction

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ruihe774/cc-micro-compaction and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cc Micro Compaction does

A Claude Mod that adds micro-compaction as /compact micro stripping file reads and thinking content.

Alternatives in Development

  • Om Intake — Process all unread meeting notes in work/meetings/ — reads each file, classifies content, routes to the right 4.6k ★
  • Hippo Feature — Build one hippo feature from RESEARCH.md using the micro-eval TDD loop 734 ★
  • Caveman Micro — 6-line caveman micro prompt (85 tokens) that outperformed the original 552-token skill 162 ★

README

micro-compaction

A Claude Mod that adds **micro-compaction** as `/compact micro`. Instead of asking a model to summarize your whole conversation, it trims the two bulkiest and cheapest-to-recover parts of the transcript and leaves everything else exactly as it was.

What it does

When you run `/compact micro`, the plugin rewrites the conversation transcript locally:

  • File reads are elided. Each successful Read tool result is replaced with a short placeholder such as [file contents elided by compaction: , N lines. Read it again if needed.] (or lines A-B for partial reads). Images and PDFs get one too ([image elided by compaction: , WxH. …], [PDF elided …], [PDF pages elided …, pages N]), since their image and document blocks are usually the largest results in a conversation. Claude can read the file again on its own whenever it needs the contents.
  • Thinking is dropped. Thinking-only messages are removed from the transcript.
  • Everything else is kept. Your prompts, Claude's replies, tool calls, and non-Read tool output stay unchanged, so the structure and wording of the conversation survive.

Some results are deliberately left alone: errored reads, text results already shorter than their placeholder ("unchanged since last read" stubs, tiny files), and earlier placeholders. Running `/compact micro` repeatedly is safe, because elision is idempotent.

Tiny compaction

`/compact tiny` does everything `/compact micro` does and also elides what `Write` and `Edit` calls carry: a `Write` call's `content` and an `Edit` call's `old_string` and `new_string` become placeholders such as `[content elided by compaction: N lines. Read the file if needed.]`. The file path and the other arguments stay. A payload already shorter than its placeholder is kept. For an elided call, the "file state is current in your context" note on its result is removed, since that no longer holds; Claude reads the file again before working on it. Use it whe