semantic-compression

Reduce grammatical scaffolding in text while preserving semantic content.

23.2k|2.2k|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/can1357/oh-my-pi --skill semantic-compression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-compression
Source: https://github.com/can1357/oh-my-pi/tree/main/.claude/skills/semantic-compression
Command: npx skills add https://github.com/can1357/oh-my-pi --skill semantic-compression

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LLMs reconstruct grammar from content words. Remove predictable glue; keep semantic payload. Prefer fragments over sentences.

Core Features & Use Cases

  • Aggressive grammar reduction: removes articles, copulas, filler phrases, and redundant prepositional phrases while keeping core meaning.
  • Semantic preservation: maintains nouns, main verbs, critical adjectives and numbers; preserves causality and conditionals.
  • Use Case: compress lengthy notes or documentation to context-friendly fragments for prompts, summaries, or token-efficient inputs.

Quick Start

Use the semantic-compression skill to transform verbose text into concise, meaning-preserving fragments suitable for prompt input.

Frequently Asked Questions about semantic-compression

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

FAQPage Schema
How do I reduce token usage in LLM prompts without losing meaning?

Semantic compression reduces token usage in LLM prompts by aggressively removing grammatical scaffolding—articles, copulas, and filler phrases—while preserving nouns, main verbs, numbers, and causal connectors.

What is the best way to compress lengthy documentation for LLM context windows?

Compressing lengthy documentation for LLM context windows is best achieved by stripping predictable grammatical glue and producing concise, meaning-preserving fragments instead of full sentences.

Can I use text simplification to summarize notes for prompt preparation?

Yes, you can use text simplification to summarize notes for prompt preparation by applying defined deletion tiers that maintain semantic content, causality, and conditionals while outputting fragments.

Does semantic compression preserve critical numbers and causal relationships in text?

Semantic compression preserves critical numbers and causal relationships by explicitly retaining nouns, main verbs, critical adjectives, and causal connectors during the grammatical reduction process.

When should I avoid using fragment-based text reduction for prompt optimization?

You should avoid fragment-based text reduction when your target output requires complete, grammatically correct sentences rather than token-efficient, meaning-preserving fragments optimized for LLM input.

Why do LLMs reconstruct grammar from compressed content words?

LLMs reconstruct grammar from compressed content words because predictable glue words are unnecessary for comprehension, allowing the model to process semantic payload efficiently without grammatical scaffolding.