AgentSkills.site

SKM-N04 · Error

`name` has a leading, trailing, or consecutive hyphen

The specification forbids leading, trailing, and consecutive hyphens in `name`.

What the rule is

The specification forbids a `name` that starts with a hyphen, ends with a hyphen, or contains two hyphens in a row. This is a narrower rule than the character-set check in SKM-N03 — a name can use only allowed characters and still violate this one.

It most often shows up after an automated slugification step that doesn't trim or collapse hyphens, or after manually editing a name and leaving a stray hyphen behind.

Where it comes from

Which runtimes enforce it

RuntimeEffectNote
Claude CodeNot documentedThe spec states the rule; no runtime documents behaviour on a name that violates it.
CodexNot documentedThe spec states the rule; no runtime documents behaviour on a name that violates it.
CursorNot documentedThe spec states the rule; no runtime documents behaviour on a name that violates it.
OpenClawNot documentedThe spec states the rule; no runtime documents behaviour on a name that violates it.
Hermes AgentNot documentedThe spec states the rule; no runtime documents behaviour on a name that violates it.

How to fix it

  • Remove any hyphen at the start or end of `name`, and collapse any run of two or more consecutive hyphens into one.

Elsewhere