lmc

Compress Python source files and documentation to token-efficient outputs.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/EndUser123/cc-marketplace --skill lmc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lmc
Source: https://github.com/EndUser123/cc-marketplace/tree/main/plugins/cc-skills-meta/skills/lmc
Command: npx skills add https://github.com/EndUser123/cc-marketplace --skill lmc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lossless Maximal Compaction (LMC) compresses content to maximal token efficiency while preserving core functionality, signatures, and essential logic.

Core Features & Use Cases

  • Preserve function signatures, class definitions, and essential logic
  • Drop verbose prose, redundant comments, and optional content
  • Generate ultra-compact outputs with configurable retention levels
  • Suitable for codebases and documentation where token efficiency is critical

Quick Start

Run /lmc on a target file to produce a minimal, retention-scoped summary.

Frequently Asked Questions about lmc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress Python code to reduce token usage without losing function signatures?

Yes, you can reduce token consumption by applying configurable retention levels during lossless maximal compaction. This prunes verbose prose and optional content from documentation while preserving essential logic, yielding ultra-compact outputs for token-critical workflows.

What is lossless maximal compaction for code and documentation?

Lossless maximal compaction is a technique that compresses content to maximal token efficiency while preserving core functionality, signatures, and essential logic. It drops verbose prose, redundant comments, and optional content to generate ultra-compact outputs.

How do I configure retention levels when compacting source files?

You can configure retention levels by running the compaction command on a target file. This allows you to specify the scope of minimal summary generation, balancing the pruning of optional content and comments against the preservation of core logic.

Does token optimization for Python source files preserve class definitions and core logic?

Yes, token optimization for Python source files preserves class definitions and core logic. The compaction process specifically retains essential behavior while dropping bloated content, ensuring the compacted output remains functionally lossless.

What are the limitations of lossless code compaction for token efficiency?

The primary limitation of lossless code compaction is that excessive pruning of comments and verbose prose may reduce human readability. While core logic and signatures are preserved, the ultra-compact output is optimized for token efficiency rather than documentation clarity.