Write readable skill instructions in Markdown

Give a skill headings and boundaries that help both the assistant and its maintainer find the right step.

Let the headings represent decisions

A heading is a useful signpost when it names a job, such as “Determine which entries are eligible.” A ladder of generic headings like “Info” and “More info” requires reading the entire file to locate one exception. Use headings in a logical order and place a short decision rule near the step it affects. CommonMark defines heading and block syntax, while W3C’s guidance shows why a meaningful hierarchy helps people navigate a rendered document. 1 2

Keep examples visibly separate

Fence a sample output so symbols that look like Markdown remain part of the example. Introduce it with a sentence that says exactly what to copy. If the sample includes placeholder dates or names, say which values come from the current task. Keep warnings about sources and scope in plain prose at the point where the assistant chooses whether to proceed. Anthropic’s skill-writing guidance recommends keeping the main document focused and using supporting files for detail. 3

Check the plain-text and rendered views

In the plain-text view, scan for indentation that accidentally turned a step into part of a code block. In the rendered view, check that a list or secondary heading sits under the intended section. Finally, run a fixture that exercises a subsection deep in the document. A good outline helps a maintainer find the rule and helps the assistant notice it before a result is generated.

Sources

  1. CommonMark specification
  2. W3C guide to headings
  3. Anthropic’s skill authoring best practices