AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Semantic Compression

skill-therealmoronto-claude-semantic-compression-claude-semantic-compression · by therealmoronto

>

— No reviews yet
0 installs
42 views
0.0% view→install

Install

$ agentstack add skill-therealmoronto-claude-semantic-compression-claude-semantic-compression

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-therealmoronto-claude-semantic-compression-claude-semantic-compression)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
○ 4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Semantic Compression? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Semantic Logic Compression (Information Compression Protocol)

Convert natural language logic into structured symbolic form that LLMs parse more reliably. This is NOT summarization — it preserves all conditions while making structure explicit.

When to apply

  • Multi-condition logic: "if A and B and not C, then D"
  • Business rules with temporal constraints ("within 5 minutes", "last 30 days")
  • Any prompt where missed conditions would break the expected output
  • Code generation tasks where logic ambiguity causes junior-style output
  • When the user needs to radically save context tokens (up to 70-80% reduction).

Core symbol set

1. Logical Operators

| Natural language | Symbol | Example | |----------------------|--------|----------------------------------| | and | ∧ | платёж OK ∧ товар есть | | or | ∨ | admin ∨ moderator | | if...then| → | T > 30 → включить кондиционер | | not | ¬ | ¬отмена за 5 мин | | then and only then | ↔ | доступ ↔ верифицирован | | for all | ∀ | ∀ item → validate(item) | | exists | ∃ | ∃ active_session |

2. Structural Markers & Modifiers

Use these markers to categorize constraints and instructions.

| Type | Marker / Symbol | Description / Example | |----------------------|-----------------|------------------------------------------------| | Domain | Dev:, Ops: | Prefix for the task domain (e.g., Dev:, Biz:, Sec:) | | Requirements | Req: | Mandatory system requirements | | Technology Stack | Stack: | e.g., Stack: Py/µserv/PG | | Tone/Output | →no-meta | No AI self-references or fluff | | Output Format | →code, →tab | Output only pure code or a table | | Priorities | ✓, ✓✓, ~ | Required (✓), Critical (✓✓), Optional (~)|

Compression process

  1. Extract — identify all conditions and actions from the natural language
  2. Label — give each condition a short alias if needed (P = платёж OK)
  3. Encode & Structure — replace connectives with symbols, preserve temporal/quantitative constraints, and group context using structural markers (Req:, Stack:).
  4. Strip — remove filler words, keep only logical skeleton
  5. Verify — mentally re-read: does the compressed form cover all original cases?

Output format

Always show both versions side by side so the user can verify nothing was lost:

Original:
  "Write me a Python function that queries the MongoDB database, retrieves users from it—provided their `active` flag is set to `true` and they aren’t banned—and send me the clean code without any fluff."

Compressed:
  Dev: →code; Stack: Py/MongoDB; Req: (active=true ∧ ¬ban); →no-meta; →no-safe

What NOT to do

Don't compress non-conditional descriptive text (it won't help)

Don't drop temporal constraints — they're often the part LLMs miss most

Don't use compression as a substitute for clear variable naming

If logic is simple (1-2 conditions), natural language is fine — say so

Don't invent your own markers outside the Information Compression Protocol.

Example: code generation prompt

Before:

``"Write a function that confirms an order if the item is in stock, payment has been successfully processed, and the order has not been cancelled within the last 5 minutes."``

After:

Biz: →code;
Impl: confirm_order(order) → bool
Cond: order.has_stock ∧ order.payment_ok ∧ ¬order.cancelled[Δt ≤ 5min]
Return True only if all three conditions are met.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.