semantic-compression

semantic-compression is a skill for Claude Code, Codex from Bilal140202/the-lord-of-the-skills. It costs 68 tokens per session (873 once invoked), scanned A, original, MIT.

A method for shortening text by removing predictable grammar while preserving its meaning-carrying content. The result may use fragments instead of complete sentences.

In plain words
What is it for?
Use it to compress prompts, prepare context for an AI model, and make documentation more token-efficient.
Why use it?
It reduces the amount of text placed into prompts or documentation while keeping the information an AI model needs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compress prompts, prepare context for an AI model, and make documentation more token-efficient.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Bilal140202/the-lord-of-the-skills --skill can1357__oh-my-pi
Clone the repo
git clone --depth 1 https://github.com/Bilal140202/the-lord-of-the-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for semantic-compression

README.md
[![agentmods](https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi/github.svg)](https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi)
Your own site
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for semantic-compression

Your own site · 80×15
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/can1357__oh-my-pi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00873
Opus 5.5 $0.00027 $0.00349
Sonnet 5.5 $0.00014 $0.00175
Haiku 4.5 $0.00007 $0.00087

Measured 1mo ago against content hash d71b1d40cac6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

semantic-compression scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fangorn/claude-code/can1357__oh-my-pi/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • Remaining prepositions: with/without, between/among, within, after/before, over/under, through (drop only if relation obvious)
  • Redundant adverbs: "shout loudly" → "shout"

Always Preserve

  • Nouns, main verbs, meaning-bearing adjectives/adverbs
  • Numbers, quantifiers: "at least 5", "approximately", "more than"
  • Uncertainty markers: "appears", "seems", "reportedly", "what sounded like"
  • Negation: not, no, never, without, none
  • Temporal markers: dates, frequencies, durations
  • Causality and conditionals: because, therefore, despite, although, if, unless
  • Requirements/permissions: must, required, prohibited, allowed
  • Proper nouns, titles, technical terms
  • Prepositions encoding relationships: from/to (direction), with/without (inclusion), between/among/within (relation), after/before (temporal), by (agent if passive)

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 67 lines · 68 tokens per session scan A d71b1d40cac6

Subscribe to this mod's changes

semantic-compression is a skill published in the GitHub repository Bilal140202/the-lord-of-the-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 873 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

roo-fix-volatile-msg

Ladder-aware Roo Code Anthropic caching — verify the rolling read/write ladder on the wire, then close the real gaps (Vertex 4-block budget, MiniMax path).

OnlyTerp/prompt-cache-skills · 42 tokens

cost-aware-llm-pipeline

A planning guide for choosing language models and managing the amount of conversation context used by an AI coding workflow. It groups tasks by complexity and gives rules for avoiding context overflow during long sessions.

hashgraph-online/awesome-codex-plugins · 42 tokens

llm-runtime

Integrate, stream, and orchestrate frontier LLM APIs with robust structured outputs, tool call schemas, prompt caching, and resilient backoff handling. Use when implementing AI agent runtimes, tool-calling loops, streaming SSE endpoints, or optimizing token usage and model latency.

WrongStack/WrongStack · 59 tokens

prompt-engineering

Use when one prompt must give the same right answer across reruns, models, and pasted-in hostile input: forcing a fixed schema, picking the few-shot set, ordering the prompt blocks, or the inline cases you run while tuning. NOT the agent loop, tools, or retrieval (that is building-agents), NOT a standing CI eval…

ericrisco/rsc-harness · 83 tokens

kling-prompter

A prompt-writing guide for Kling 3.0, a video-generation model. It covers short videos, story-driven videos with dialogue or sound, and animating an existing reference image.

cclank/lanshu-awesome-ai-video-kit · 162 tokens

happyhorse-prompter

A tool for writing short prompts for HappyHorse 1.0, an AI video generator that can create video with sound. Its prompts put the main subject first, specify the camera, and describe audible sound when needed.

cclank/lanshu-awesome-ai-video-kit · 116 tokens