/cc-skills-meta:mlcfrom cc-skills-meta
Minimal Lossy Compaction - Conservative token optimization that preserves most information while dropping redundancy
Ships in cc-skills-meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Conservative token optimization that preserves ALL critical information while removing obvious redundancy. Identifies inefficiencies in code, documentation, or output and suggests specific optimizations (20-40% savings).
For documents over 500 lines, add a quick-nav table below the standard TOC:
### Quick Navigation by Intent
| I want to... | Go to |
|---|---|
| [intent description] | §Section → Sub-section |
Rules for smart TOC:
All MLC optimizations MUST preserve:
# Analyze a file for optimization opportunities
/mlc path/to/file.py
# Analyze current conversation output
/mlc --conversation
# Suggest optimizations only (dry run)
/mlc --dry-run path/to/file.md
# Apply optimizations automatically
/mlc --apply path/to/file.py
=== MLC Analysis: target.py ===
Current tokens: 1,234
Potential savings: ~234 tokens (19%)
Inefficiencies Found:
1. [25 tokens] Redundant comments at lines 15-20
→ Comment repeats what code already states
→ Suggestion: Remove or condense to key insight only
2. [89 tokens] Duplicate error handling in functions
→ Same try/except pattern repeated 4x
→ Suggestion: Extract to helper function
3. [120 tokens] Verbose docstring with examples
→ 50-line docstring for simple function
→ Suggestion: Condense to 5-10 lines, keep essential info
Optimized Version:
[Show condensed version that preserves all information]
Apply these changes? (--apply flag to auto-confirm)
| Pattern | Before | After | Savings |
|---|---|---|---|
| Self-evident comments | # Increment x | (removed) | 100% |
| Duplicate logic | 4x similar blocks | 1 helper function | 75% |
| Verbose prose | 5 sentences | 1-2 sentences | 60-80% |
| Redundant explanation | Repeated concept | Reference earlier | 100% |
| Example-heavy docs | 10 examples | 2-3 key examples | 80-90% |
# BEFORE: 89 tokens
def process_data(data):
# This function takes the data parameter and processes it
# by iterating through each item and performing operations
result = []
for item in data:
result.append(item * 2)
return result
# AFTER: 47 tokens (47% savings)
def process_data(data):
"""Double each item in data."""
return [item * 2 for item in data]
# BEFORE: 234 tokens
## Configuration File
The configuration file is used to store configuration settings
for the application. It is located in the config directory and
is named config.yaml. You can edit this file to change settings.
# AFTER: 78 tokens (67% savings)
## Configuration
Settings stored in `config/config.yaml`. Edit to modify application behavior.
/gto may suggest /mlc when it detects:
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.