# Claude skill upload: SKILL.md must start with YAML frontmatter (---)

> Claude's skill upload (claude.ai and the Claude desktop app) checks that SKILL.md opens with a YAML frontmatter block. The exact message, why Claude skill upload prints it, and the fix.

_Updated November 23, 2026_

## The message

```text
SKILL.md must start with YAML frontmatter (---)
```

## What it means

Claude's skill upload (claude.ai and the Claude desktop app) checks that SKILL.md opens with a YAML frontmatter block. The first line must be `---`; a file that starts with a heading or any other text, or has no frontmatter at all, is rejected.

## Fix

1. Open SKILL.md and make `---` the very first line, with nothing above it.
2. Below it add `name:` (lowercase letters, numbers and hyphens, up to 64 characters, matching the folder name) and `description:` (what the skill does and when to use it, up to 1,024 characters), then close the block with `---`.
3. Zip the skill folder itself so the archive contains <skill-name>/SKILL.md, for example `zip -r my-skill.zip my-skill/`, and upload again.

## In an EnvHaven workspace

It can happen anywhere Claude skill upload runs; the fix above applies in a workspace too.

## Where this comes from

From Claude skill upload's documentation and issue tracker:

- [github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues/399](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues/399)
- [github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues/399](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues/399)
- [claude.com/docs/skills/how-to](https://claude.com/docs/skills/how-to)
- [claude.com/docs/skills/how-to](https://claude.com/docs/skills/how-to)

## Keep reading

- [Every agent error](https://envhaven.com/errors)

Source: https://envhaven.com/errors/claude-skills/skill-md-must-start-with-yaml-frontmatter
