SKILL.md validator

Paste a SKILL.md, agent file, AGENTS.md, CLAUDE.md or DESIGN.md, or drop a whole skill folder or zip, to check it against its specification and best practice, scan every file for secrets, injected instructions, hidden text and dangerous commands, and check the syntax of its scripts and data files. It runs in your browser: nothing is uploaded or stored.

The validator runs in your browser. It is loading; it needs JavaScript.

What the validator checks

It runs the same checks Skill Builder runs while you build, against the open Agent Skills specification, Anthropic’s skill authoring guide and the Claude Code, VS Code and GitHub docs. Each finding has a Why? with the reason and the source it comes from.

Check Rule
Frontmatter The file starts with a --- block holding name and description.
Name 1 to 64 lowercase letters, numbers and single hyphens, for example code-review. For a skill it is also the folder name.
Description Required, up to 1024 characters, in the third person, and it should say when to use it (“Use when the user asks to…”). No XML tags. Agents read the description to decide when to load a skill.
Other fields Fields outside the six in the specification (such as argument-hint) are read by Claude Code and Copilot only, and claude.ai uploads refuse them.
Text No dated conditions (“before August 2025”), and forward slashes in paths.
Compatibility Optional, up to 500 characters.
Length Keep SKILL.md under 500 lines, and move long sections (about 60 lines or 700 words) into references/ files.
Files it mentions A skill that mentions references/api.md or scripts/run.py should ship that file.
Agents model is a Claude Code alias (haiku, sonnet, opus, fable), a full claude-… id, or left out. Field names are spelled as Claude Code reads them, tools exist and fit the role (a read-only agent can not write), and it says what to hand back.

AGENTS.md and CLAUDE.md

Choose AGENTS.md or CLAUDE.md to check a project’s instructions: the file AI coding tools read in every conversation (AGENTS.md for Codex, GitHub Copilot, Cursor and others; CLAUDE.md for Claude Code). There is no formal specification, so the checks follow their guidance:

Check Rule
Length Under 200 lines: the whole file is read in every conversation. Long sections (over 60 lines) belong in a skill.
Enforcement “Never” rules about risky actions (push, delete, deploy) also need a hook or permission rule to be enforced.
Style Rules a formatter or linter already enforces (“use 2 spaces”) are left to the tool.
Sections ## headings, one title, no empty or repeated sections.
Commands The commands to install, build, test and lint, in a code block, so the AI can check its own work.
Specific No vague advice (“follow best practices”, “write clean code”), unfinished text (TODO, TBD) or paths on one computer.
Frontmatter Not needed: AI tools read the file as plain markdown.
Imports @path imports only work in Claude Code. A CLAUDE.md should import @AGENTS.md, so there is one copy to edit.
Security The same scan as skills: secrets, injected instructions, hidden text and dangerous commands.

Open in Skill Builder turns it into a project’s instructions built from blocks, with every section kept as written, so you can add your skills and agents and export it.

DESIGN.md

Choose DESIGN.md to check a design system written for coding agents: design tokens in YAML (the front matter, or fenced yaml blocks) followed by markdown sections in a fixed order. The checks follow the DESIGN.md specification (Google Labs, alpha) and the rules of its official linter, @google/design.md. The format is still changing, so each finding says where its rule comes from.

Check Rule
Valid file The YAML parses, no top-level key and no section heading appears twice, and the front matter has a name.
References A reference such as {colors.primary} leads to a defined token, and outside components it points to one value, not a group.
Values Colors are CSS colors, sizes use px, em or rem, font weights are numbers, and components use the properties the specification names.
Sections Overview, Colors, Typography, Layout, Elevation, Shapes, Components, Do’s and Don’ts: any may be left out, but the ones present keep that order.
Completeness Colors have a primary, and a type scale. Spacing and rounded tokens exist or are listed under omitted. A misspelled key is flagged, not silently lost.
Contrast Each component’s text on its background reaches 4.5:1 (WCAG AA). Colors the check can not convert (such as color-mix()) are left alone.
Unused colors A color no component uses is listed.
Best practice Exact values as tokens, a file short enough to read before every UI task, specific direction instead of “clean and modern”, and no code samples.
Security The same scan as skills: secrets, injected instructions, hidden text and dangerous commands.

Check a whole skill folder

Switch to Files, folder or zip to check a skill with all its files: choose files, choose a folder, drop a folder or drop a .zip. Every skill (a folder with SKILL.md) and agent in it is found, with its references/, scripts/ and assets/, nested folders included, and each gets its own report, file by file. With files, the validator also checks:

  • links to files that do not exist, and files nothing mentions;
  • paths that moved, reference files over 100 lines without a table of contents, and files only linked from another reference file (keep references one level deep);
  • that the skill’s name matches its folder (VS Code does not load it otherwise).

Files that are not text (images, binaries) are listed, not read. Executables and files named like secrets (.env, private keys) block the check.

Syntax checks

Files What is checked
.json, .toml Parsed exactly: invalid files are errors, with the line.
.js, .mjs, .cjs, .ts, .py, .yaml, .yml, .xml Parsed with error-tolerant parsers: likely syntax errors are warnings, with the line.
.html and templates Inline <script> and onclick=-style handlers are warnings (the builder never renders them, but other tools might).
Shell, PowerShell, Ruby, Perl, CSV, text Not syntax-checked; the security rules still apply.

Scripts get extra security rules: download-and-run, decoding and running hidden code, reading credentials, dumping the environment, persistence (shell profiles, scheduled jobs) and destructive code block the check; eval, shell commands, network access, package installs, sudo, very long lines and very large scripts are warnings.

Security checks

Skills and agents are instructions an AI follows, and skills can include scripts it runs, so the file is also scanned with the rules Skill Builder applies to every import:

  • Secrets: API keys, tokens, passwords and private keys. The value is never shown back.
  • Injected instructions: text such as “ignore all previous instructions”, or telling the AI to hide what it did from the user.
  • Hidden text: invisible and bidirectional characters, and instructions in HTML comments.
  • Dangerous commands: piping a download into a shell, destructive commands, sending local files to the network.

Your file stays on your device

The check runs in your browser. Nothing you paste or choose is uploaded, stored or sent to an AI, and closing the page forgets it. Open in Skill Builder saves it as a project in this browser, only when you click it and only if nothing critical was found.

Common questions

What is a SKILL.md file?

The file that defines an agent skill: YAML frontmatter with a name and a description, followed by markdown instructions. Claude Code, GitHub Copilot and OpenAI Codex read skills from folders in your project. Read how to write a SKILL.md.

Does it check agent files too?

Yes. Switch to Agent to check an agent definition (agents/<name>.md). See skills versus agents for the difference. It also checks AGENTS.md, CLAUDE.md and DESIGN.md.

My skill passes. Is it safe to install?

Passing means nothing the rules know about was found. It is a quick check on your device, a guide and not a full validation: it can be wrong and can miss things. Read any skill you did not write before you install it, especially its scripts, and use a proper server-based security scanner to be sure.

How do I fix the problems?

Each finding says what is wrong. To fix them with guidance, open the file in Skill Builder: it shows the same checks next to the text, with one-click fixes for many of them, and exports the skill in the folders Claude Code, Copilot and Codex read.