Index of every page on this site: llms.txt
All skills
Run it yourself

Keep agent skills lean and correct. Use before editing an existing skill, such as adding a lesson; when a code change touches names or behavior a skill describes; and to put a skill on a full diet when it is large, loads detail most tasks never use, or has drifted from the tool it teaches.

Use this Skill: https://skilld.dev/gh/nicobailon/skill-diet/skill-diet

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈76 tokens for metadata: the name and description. ≈508 when used: this file. ≈3.7k more on demand in 5 files.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈303 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Skill Diet

Levels

Put each fact on the lowest level that still reaches the agent before it needs it.

Level Holds Loaded
description one trigger per case every session
SKILL.md what every task needs when the skill is used
references/ what only some tasks need, behind a link that says when to read it when that case comes up

A skill that teaches a tool has two more levels: the tool's help, then its replies and errors. Exact names, fields and values live there, not in the skill. A check on the skill's output (linter, tests, renderer) can replace a rule, unless one miss costs a slow cycle.

Editing a skill

Stop at the first step that handles the change.

  1. Fix it below the skill. A mechanical mistake gets a clearer error, a check, or a test in the tool. Prose is for judgment calls.
  2. Check the model needs it. If a fresh session does the right thing without the line, add nothing.
  3. Edit, don't append. Change the line that already covers the idea. Each meaning lives in one place across SKILL.md, references, and the tool's docs.
  4. Pick its level.
  5. Write the rule, not the story. One positive rule under a short name; the incident goes in the commit message.

When code changes a name or behavior the skill relies on, update the skill in the same change. Index new public operations by name only, unless agents will call them often. Run the skill's coverage check, or add one if drift could recur.

Budget: put SKILL.md's size before and after in the commit message, and offset growth with a cut. When it is over 10% larger than at its last diet commit, or one idea appears in two places, do a full diet. node scripts/eval.mjs check <skill-dir> prints the size and checks links.

Verify: rerun the case that prompted the change in a fresh session, and any tests that assert the skill's text.

Look up the rest

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts13d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill is a developer toolkit designed to help optimize and prune AI agent instructions. It provides a framework for evaluating skill versions against specific tasks using included Node.js scripts for automation and logging.

  • Socket13d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at b93e147. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago
metadata
{
  "version": "0.2.0",
  "creator": "Nico Bailon"
}

README badge

README badge for nicobailon/skill-diet