foundations-information-theory

foundations-information-theory is a skill for Claude Code, Codex from vasilyu1983/AI-Agents-public. It costs 43 tokens per session (3,723 once invoked), scanned A, original, MIT.

A set of information-theory concepts for measuring uncertainty, shared information, compression, and the quality of signals in data and AI systems.

In plain words
What is it for?
Use it for prompt and retrieval compression, drift detection, feature selection, search result diversity, hallucination checks, and agent message sizing.
Why use it?
It helps you decide what information to keep, detect changes in data, diagnose uncertain model outputs, and work within message or context limits.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the ai-agents plugin — 144 skills shipped together

Good fit Use it for prompt and retrieval compression, drift detection, feature selection, search result diversity, hallucination checks, and agent message sizing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/foundations-information-theory
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 vasilyu1983/AI-Agents-public --skill foundations-information-theory
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: Claude Code, Codex.

Or install ai-agents, the plugin that ships this one along with the rest of its 144 skills.

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 foundations-information-theory

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory/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 foundations-information-theory

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,723 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Excessive Agency · line 116
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00043 $0.03723
Opus 5.5 $0.00017 $0.01489
Sonnet 5.5 $0.00009 $0.00745
Haiku 4.5 $0.00004 $0.00372

Measured 13d ago against content hash 2a8a3d1fe035, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

foundations-information-theory 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 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/discrete_information.py, scripts/test_discrete_information.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/universal/foundations-information-theory/SKILL.md · 137 lines

How it starts

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

Information Theory Foundations

When to Apply

Apply when a decision depends on a defined distribution:

  • Distribution shift or model-update comparison (KL direction, JS with a stated log base)
  • Feature relevance or leakage screening by mutual information, with an estimator and a null baseline
  • Model comparison across tokenizers (bits-per-byte or bits-per-character, not perplexity)
  • Hallucination or abstention gating via semantic entropy over meaning clusters
  • RL post-training health: policy-entropy collapse in RLVR
  • Context, prompt, KV-cache or agent-handoff compression framed as a measured rate/task-loss tradeoff
  • Error floors (Fano), coding limits (entropy, capacity, rate-distortion), model selection (MDL)
  • LLM-serving questions: speculative-decoding acceptance, quantization or KV-cache compression claims, log loss vs Brier for calibration (references/llm-practice.md)

Skip or hand off when:

  • The question is causal, not dependence: foundations-causal-inference
  • Linear or monotonic dependence is enough: Pearson or rank correlation
  • The task is significance, error bars or calibration methodology: foundations-statistical-inference
  • The task is feedback stability: foundations-control-theory
  • Team or human communication design: foundations-team-theory or foundations-grounding-communication (channel capacity is not a measurement there)
  • No random variable, sampling frame or estimator can be written down: call the score a proxy and evaluate it on task outcomes

Quick Reference

# Primitive Core formula Use when Playbook
1 Shannon entropy H(X) = −Σ p log p Uncertainty of a defined PMF; semantic entropy over meaning clusters; RLVR policy entropy 01
2 Mutual information I(X;Y) = H(X) − H(X|Y) Non-linear dependence, relevance, leakage 02
3 KL / JS divergence D_KL(P‖Q) = Σ p log(p/q) Directional distribution comparison; JS for symmetric 03
4 Cross-entropy H(P,Q) = H(P) + D_KL(P‖Q) Loss, perplexity, bits-per-byte 04
5 Channel capacity C = max_{p(x)} I(X;Y) Noisy-channel throughput ceilings with a named transition law 05
6 Rate-distortion R(D) = min I(X;X̂) s.t. E d ≤ D Lossy compression under a named distortion 06
7 MDL L(M) + L(D|M) Model selection with an explicit code 07
8 Information bottleneck min I(X;T) − β I(T;Y) Representation compression with a defined target 08
9 Fano's inequality H(X|Y) ≤ H_b(P_e) + P_e log(|X|−1) Error floor from residual uncertainty 09
10 Typical sets / AEP −(1/n) log p(Xⁿ) → H Source-coding limits, block-length reasoning 10
11 Redundancy & compression R = log M − H(X); entropy rate Code-family choice, NCD, redundancy audits 11

Read the full file on GitHub · 137 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. 13d ago Changed 2a8a3d1fe035
  2. 20d ago Changed · -162 lines 71c8297e93b6
  3. 1mo ago Changed · -14 lines d43aab6e3cbb
  4. 1mo ago First seen · 313 lines · 43 tokens per session scan A 0ebb0301f1ab

Subscribe to this mod's changes

foundations-information-theory is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (101 stars, last pushed 10d ago), licensed MIT. It adds 43 tokens to every session and 3,723 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

continuum-recipes

Copy-pasteable Continuum patterns — RAG, plan-and-execute, ReAct, multi-tenant agents, FastAPI integration, structured output, prompt-injection scanning, custom containers. Invoke when the user asks "how do I do X with Continuum" and X is a common app pattern rather than a single API question.

shyftlabs/continuum · 73 tokens

context-management

Strategies for managing AI agent context windows including optimization, summarization, retrieval-augmented generation, progressive disclosure, and pruning. Use when the user is hitting context limits, building long-running agents, implementing RAG, optimizing token usage, or designing systems that need to manage…

VersoXBT/claude-initial-setup · 66 tokens

AgentDB Performance Optimization

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

shyftlabs/continuum · 53 tokens

AgentDB Memory Patterns

Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants.

shyftlabs/continuum · 45 tokens

AgentDB Vector Search

Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.

shyftlabs/continuum · 41 tokens

ReasoningBank with AgentDB

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

shyftlabs/continuum · 56 tokens