/cc-skills-meta:lmcfrom cc-skills-meta
Lossless Maximal Compaction - Maximum token optimization that preserves all critical information
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.
Maximum token optimization that preserves all critical information while maximizing compression. Keeps function/class signatures and essential logic while removing redundancy.
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 LMC optimizations MUST preserve:
# Aggressively optimize a file
/lmc path/to/file.py
# Aggressively optimize documentation
/lmc path/to/doc.md
# Apply optimizations automatically
/lmc --apply path/to/file.py
# Retention level: decisions-only (default)
/lmc --retain decisions-only path/to/file.py
=== LMC Analysis: target.py ===
Current tokens: 2,345
Potential savings: ~1,567 tokens (67% - PRESERVED)
Essential Content (PRESERVED):
- Function signatures and behavior
- Core algorithm logic
- Required parameters
- Error handling
Non-Essential Content (DROPPED):
- 450 tokens: Extensive inline comments
- 380 tokens: Verbose docstrings with examples
- 320 tokens: Exploratory comments ("tried X, but...")
- 417 tokens: Redundant variable explanations
Optimized Version:
[Show ultra-compact version with core behavior only]
Apply these changes? (--apply flag to auto-confirm)
| Pattern | Before | After | Savings |
|---|---|---|---|
| Verbose docstrings | 30-line explanation | 3-line summary | 90% |
| Inline comments | # i + 1 (every line) | (removed) | 100% |
| Exploratory prose | "We tried X but..." | (removed) | 100% |
| Redundant examples | 10 usage examples | 1-2 key examples | 80-90% |
| Self-evident code | # Check if x | (code only) | 100% |
| Level | Preserves | Use Case |
|---|---|---|
| decisions-only | Final outcomes only | Maximum compression |
| minimal | Core functionality | Aggressive optimization |
| essential | Required behavior | Conservative optimization |
# BEFORE: 234 tokens
def process_user_input(user_input):
"""
Process the user input provided by the user.
This function takes user_input as a parameter which should be
a string containing the user's input. It then processes this
input by validating it...
Args:
user_input (str): The input string from the user
Returns:
str: The processed input string
Example:
>>> process_user_input("hello")
'HELLO'
"""
# Validate the input is not empty
if not user_input:
return ""
# Transform to uppercase
result = user_input.upper()
return result
# AFTER: 67 tokens (71% savings)
def process_user_input(user_input: str) -> str:
"""Validate and uppercase input."""
if not user_input:
return ""
return user_input.upper()
# BEFORE: 567 tokens
## User Authentication Flow
The user authentication flow is a critical component of our
application security infrastructure. When a user attempts to
authenticate, they must provide valid credentials...
[10 paragraphs of explanation]
# AFTER: 89 tokens (84% savings)
## User Authentication
Users authenticate via `/auth/login` with email/password.
Tokens are stored in cookies and validated on each request.
| Aspect | MLC (Minimal Lossy) | LMC (Lossless) |
|---|---|---|
| Prose | Condensed | Removed |
| Examples | Key examples retained | Most examples dropped |
| Comments | Self-evident ones removed | Almost all removed |
| Reasoning | Summarized | Removed |
| Token Savings | 20-50% | 60-80% |
| Risk Level | Low (meaning preserved) | Medium (some meaning lost) |
/gto may suggest /lmc when it detects:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./config-auditAudit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research, sonnet for analysis) with decision memory./constitutional-patternsStandards for constitutional compliance and pattern enforcement./constraintsShow active project constraints from CLAUDE.md