semantic-compression

Solid

Aggressively remove grammatical scaffolding LLMs reconstruct while preserving meaning-carrying content. Output may be fragments. Use when compressing text for prompts, reducing token count, preparing context for LLM input, or making documentation more token-efficient. Applies LLM-aware compression rules that delete predictable grammar while preserving semantics.

AI & Automation 135 stars 14 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Semantic Compression LLMs reconstruct grammar from content words. Remove predictable glue; keep semantic payload. Prefer fragments over sentences. ## Aggressive Stance - Output can be noun/verb stacks, list fragments, or label:value phrases. - Default to deletion; keep function words only when loss changes meaning. - Prefer base verb forms; drop tense/aspect unless timeline is critical. ## Deletion Tiers **Tier 1 — Always delete (even if fragments):** - Articles: a, an, the - Copulas: is, are, was, were, am, be, been, being - Expletive subjects: "There is/are...", "It is..." - Complementizer: that (as clause marker) - Pure intensifiers: very, quite, rather, really, extremely, somewhat - Filler phrases: "in order to" → to, "due to the fact that" → because, "in terms of" → delete - Infinitive "to" before verbs (unless it prevents noun/verb confusion) - Conjunctions when list/contrast obvious: and, or, but **Tier 2 — Delete unless meaning changes:** - Auxiliary verbs: have/has/had, do/does/did, will/would (keep if tense/aspect matters) - Modal verbs: can/could/may/might/should (keep when obligation/permission/possibility is critical; always keep must/must not) - Pronouns: it/this/that/these/those/he/she/they (drop when referent obvious; replace with noun if ambiguous) - Relative pronouns: which, that, who, whom - Prepositions: of, for, to, in, on, at, by (keep for material, direction, agency, or disambiguation) **Tier 3 — Delete only if relation still clear:** - Remaini...

Details

Author
dmae97
Repository
dmae97/omk
Created
3 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

semantic-compress

Make an LLM-directed document smaller while preserving what it does. Two modes: a local span-level core->pointer pass, and an A/B-validated distill loop that produces the smallest document that behaves the same as the original. Point at core knowledge the model already holds (a concept name activates it); keep project-specific detail explicit and verbatim. TRIGGER when asked to compress, tighten, shorten, or strip a prompt / instruction / system message meant for an LLM; to distill a skill; to compress a whole document; to make this smaller while preserving behaviour; to A/B test a compression or produce a behaviourally-equivalent compression; when an instruction set explains concepts the model already knows from training; or when reducing token cost of an LLM-directed prompt without losing meaning. Not for human-facing prose - that is /deslop.

30 Updated 3 weeks ago
bjcoombs
AI & Automation Listed

technical-gist

Compresses technical English into compact expert notes. Sentence fragments, dropped articles, and omitted scaffolding are allowed; meaning, numbers, scope, uncertainty, negation, and technical terms are not. For methods summaries, model descriptions, implementation notes, issue and bug summaries, analytical findings, internal updates, and technical documentation. Levels: lite, full (default), ultra.

0 Updated 3 weeks ago
GMoncrieff
AI & Automation Listed

compress-context

Compress a given file (CLAUDE.md, skill file, prompt file) into token-efficient symbolic notation. Rewrites the file in-place and maintains a symbols.md legend. Use when asked to compress, reduce tokens, shorten prompts, or make context more efficient.

0 Updated yesterday
rs2pydev