agentleFS
DancinGhostDancinGhost/agent-metaskills/skills/skill-lint/SKILL.md

skill-lint

Skill1 starsChanged 3 days agoMITView on GitHub

Validates Agent Skills against the agentskills.io specification and reports frontmatter errors, YAML traps, broken file references, orphaned files and context-budget overruns. Use when a skill was just written or edited, when a skill fails to load or never appears in the skill list, before publishing or committing a skill, or when asked to check, validate, lint or review the structure of a SKILL.md.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not contort a good description to silence a heuristic.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill lint

Checks that a skill will load in any spec-compliant agent and that the agent will be able to find everything in it. The linter is deterministic; the fixes are yours to make.

Run it

Paths below are relative to this skill's directory.

python3 scripts/lint_skill.py <skill-dir-or-parent-dir> [more paths] [--strict] [--json]
  • A path may be one skill directory or a directory holding many skills.
  • Exit status is 1 when there is at least one error. With --strict, warnings fail too. Use --strict before publishing and in CI.
  • --json gives the same findings as structured data, for scripting.

Read the output

Each line is level code file:line message, followed by one budget line per skill.

LevelMeaningWhat to do
errorThe skill breaks the specification or points at a file that is not there. Some agents will refuse to load it.Fix every one.
warningThe skill loads, but will trigger badly, waste context or confuse the agent.Fix, or be able to say why not.
infoPortability notes.Read once; no action needed for a single-harness skill.

The budget line estimates tokens at three stages: the listing (name and description, loaded into every session), the body (loaded on activation) and the resources (loaded only when read). A large listing figure costs every session, whether or not the skill is used.

The full rule list with the reasoning behind each rule is in references/rules.md. Read it when a finding is unclear or you believe it is a false positive.

Fix in this order

  1. Errors in the frontmatter (E00x, E01x, E02x, E03x). Until these are fixed, the skill may be invisible, and later findings are unreliable. E003 is the most common cause of a skill that silently never loads: an unquoted description containing : or #. Rewrite the value as a block scalar:

    description: >-
      Does X. Use when: the user asks for Y.
  2. Broken references (E040, W041, W042). Either create the file, correct the path, or delete the mention. Never leave an instruction that sends the agent to a file that does not exist.
  3. Orphans (W030). A file nothing mentions is a file the agent will never open. Link it from SKILL.md with a sentence saying when to read it, or delete it.
  4. Description quality (W010, W011, W012). State what the skill does and when to use it, in the third person, using words a user would type.
  5. Budget (W020, W021). Move reference material, long examples and rarely used branches into separate files that SKILL.md links to, one level deep.

Re-run after each round. Stop when the output is clean or every remaining warning has a reason.

Limits

  • The linter checks structure, not whether the instructions are any good. A clean result does not mean the skill works; test it on a real task.
  • Token counts are estimates (about four characters per token).
  • Rules marked as heuristics in the reference can misfire on unusual phrasing. Do not contort a good description to silence a heuristic.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.