meta-context-diet

meta-context-diet is a skill for Claude Code from laurigates/claude-plugins. It costs 49 tokens per session (2,844 once invoked), scanned A, original, MIT.

A skill for reviewing always-loaded instructions in CLAUDE.md and .claude/rules files. It identifies procedures that could instead load only when a task needs them.

In plain words
What is it for?
Use it to audit instruction files, decide what should remain always loaded, and move suitable procedures into on-demand skills.
Why use it?
It helps reduce repeated context on every agent turn while keeping permanent rules that genuinely apply everywhere.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the agent-patterns-plugin plugin — 26 skills shipped together

Good fit Use it to audit instruction files, decide what should remain always loaded, and move suitable procedures into on-demand skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laurigates/claude-plugins/meta-context-diet
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 laurigates/claude-plugins --skill meta-context-diet
Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins

Made for: Claude Code.

Or install agent-patterns-plugin, the plugin that ships this one along with the rest of its 26 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 meta-context-diet

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/meta-context-diet/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/meta-context-diet)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/meta-context-diet"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/meta-context-diet/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 meta-context-diet

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/meta-context-diet"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/meta-context-diet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 3 findings, up to high

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 →

  • high Agent Snooping · line 32
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 33
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Excessive Agency · line 7
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00049 $0.02844
Opus 5.5 $0.00020 $0.01138
Sonnet 5.5 $0.00010 $0.00569
Haiku 4.5 $0.00005 $0.00284

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

Security

Grade A, and why

meta-context-diet scanned grade A with 1 finding 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 16d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- CLAUDE.md files in tree: !`find . -maxdepth 3 -name 'CLAUDE.md' -not -path '*/node_modules/*' -not -path '*/.claude/worktrees/*'`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

agent-patterns-plugin/skills/meta-context-diet/SKILL.md · 129 lines

How it starts

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

meta-context-diet

Audit always-loaded context — CLAUDE.md files and .claude/rules/*.md — for material that would be cheaper and clearer as an on-demand skill, then migrate approved candidates — per-candidate confirmation for lossy edits, batched approval for the safe ones.

The premise: CLAUDE.md and unscoped rules are paid for on every turn. A skill costs only its name + description in the listing budget until its intent fires, then loads its body on demand. Anything that is not a hard, always-respected invariant is a candidate to move off the always-loaded surface.

When to Use This Skill

Use this skill when... Use a different skill when...
CLAUDE.md or .claude/rules/ has grown heavy and you want to find what can move to on-demand skills You want to move rules/skills between scopes (project → user-global) — use meta-promote
A rule is really a procedure/workflow triggered by intent, not an always-true invariant, and should be a skill You want to turn a finished session's learnings into new rules — use session-distill
You want a per-item keep / path-scope / promote-to-skill / consolidate decision over the always-loaded surface You want skill-to-skill overlap and split-pressure analysis — use health-skill-audit
You suspect rules duplicate plugin skills already loaded for the session You only want frontmatter/size hygiene on existing skills — use scripts/plugin-compliance-check.sh

Context

  • Current directory: !pwd
  • CLAUDE.md files in tree: !find . -maxdepth 3 -name 'CLAUDE.md' -not -path '*/node_modules/*' -not -path '*/.claude/worktrees/*'
  • Local rules: !find . -path '*/.claude/rules/*' -maxdepth 3 -name '*.md' -not -path '*/.claude/worktrees/*'
  • User-global rules are resolved during execution (Step 1), not here — $HOME paths and error redirection are disallowed in Context commands.

Read the full file on GitHub · 129 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 16d ago Changed 9cf4289fa551
  2. 18d ago Changed · +1 lines 3983186d2ef8
  3. 28d ago Changed · +2 lines 079bae94d02e
  4. 1mo ago Changed · +3 lines 6e13e60aba47
  5. 1mo ago Changed · -30 lines 4d39335c67ec
  6. 3mo ago First seen · 153 lines · 49 tokens per session scan A 9d30d36dc7a2

Subscribe to this mod's changes

meta-context-diet is a skill published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 2,844 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

meta-context-diet compared with skills from other repositories

meta-context-diet next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
meta-context-dietlaurigates/claude-pluginsSkill60yesterdayMITA49Claude Code
obsidian-memory-architectureAtlasOmnia/hermes-custom-packSkill8816d agoMITA56Claude Code, Codex
mk:memoryngocsangyem/MeowKitSkill172d agoMITA19Claude Code
Session Saveranimalzinc/claude-pluginsSkill1421d agoMITA19Claude Code
openclaw-test-heap-leaksSafeAI-Lab-X/ClawKeeperSkill1.0k2d agononeA104Codex
mk:project-contextngocsangyem/MeowKitSkill172d agoMITA19Claude Code
starter-session-auditSagargupta16/claude-skillsSkill5yesterdayMITA73Claude Code