agentleFS
pecigonzalopecigonzalo/agent-skills/skills/standards-markdown/SKILL.md

standards-markdown

Skill0 starsChanged 4 months agoMITView on GitHub

Use this skill when writing or reviewing Markdown syntax, headings, lists, links, code fences, tables, or layout, including SKILL.md files, even for a short edit. Pair it with standards-documentation when content structure or audience needs also matter.

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. About 0 are common, 17 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use ATX headings (#, ##, ###) with sentence-case, descriptive labels.

    line 12
  2. Distinctive:

    Keep heading hierarchy ordered.

    line 13
  3. Distinctive:

    Do not hard-wrap prose mid-sentence.

    line 14
  4. Distinctive:

    Do not reflow paragraphs you did not otherwise change.

    line 15
  5. Distinctive:

    Use fenced code blocks with language tags.

    line 16
  6. Distinctive:

    Use descriptive link text.

    line 17
  7. Distinctive:

    Prefer lists over tables for prose-heavy content.

    line 18
  8. Distinctive:

    Prefer Markdown over HTML unless Markdown cannot express the content.

    line 19
  9. Very specific:

    Do not require an H1 matching the filename, a [TOC], or a closing ## See also.

    line 30
  10. Very specific:

    Keep SKILL.md compact and move conditional detail to references/.

    line 31
  11. Very specific:

    Put trigger guidance in the frontmatter description, not only in the body.

    line 32
  12. Distinctive:

    Start with one H1 and a short intro of one to three sentences.

    line 43
  13. Very specific:

    Use ## for major sections and ### for subsections.

    line 44
  14. Very specific:

    Put supplemental links near the relevant text, or at the end under ## See also.

    line 45
  15. Very specific:

    Add [TOC] after the intro only when the hosting platform renders it.

    line 46
  16. Distinctive:

    Keep paragraphs semantic and let the editor or renderer wrap them.

    line 54
  17. Distinctive:

    Never leave trailing whitespace.

    line 56
  18. Distinctive:

    Use ordered lists for sequences and bullets for unordered items.

    line 62
  19. Very specific:

    Use lazy numbering (1.) for long lists whose order may change.

    line 63
  20. Distinctive:

    Use backticks for commands, paths, field names, and literals, and to escape text that would otherwise be parsed as Markdown.

    line 65
  21. Distinctive:

    When showing Markdown that itself contains code fences, use a longer outer fence or simplify the example.

    line 67
  22. Distinctive:

    Use reference-style definitions for long URLs, repeated links, and links inside table cells.

    line 82
  23. Distinctive:

    Place reference definitions at the end of the section, or at the end of the document when shared.

    line 83
  24. Very specific:

    Keep internal links explicit.

    line 84
  25. Distinctive:

    Add images only when they carry information prose cannot, such as an annotated screenshot, and always give meaningful alt text.

    line 85
  26. Distinctive:

    Before finishing Markdown changes:

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Markdown Standards

Provides: Portable Markdown formatting rules, a carve-out for skill files, and validation checks that avoid formatting-only churn.

Quick Reference

  • Use ATX headings (#, ##, ###) with sentence-case, descriptive labels.
  • Keep heading hierarchy ordered; do not skip levels.
  • Do not hard-wrap prose mid-sentence. Keep a sentence or short paragraph on one line unless structure requires a break.
  • Do not reflow paragraphs you did not otherwise change.
  • Use fenced code blocks with language tags.
  • Use descriptive link text; avoid raw URLs as link text where practical.
  • Prefer lists over tables for prose-heavy content.
  • Prefer Markdown over HTML unless Markdown cannot express the content.
  • Avoid trailing whitespace.

Golden Rule: Optimize for readable diffs, not for a fixed column width


SKILL.md Exception

Skill files are agent context, not documents for human browsing. For any SKILL.md, prioritize trigger quality and context size over general document structure:

  • Do not require an H1 matching the filename, a [TOC], or a closing ## See also.
  • Keep SKILL.md compact and move conditional detail to references/.
  • Put trigger guidance in the frontmatter description, not only in the body.
  • Include only examples and validation that change agent behavior.

Apply the rest of this skill's formatting rules to skill files normally. Only the document-shape requirements are waived.


Layout

For regular documents:

  • Start with one H1 and a short intro of one to three sentences.
  • Use ## for major sections and ### for subsections. Keep heading names unique.
  • Put supplemental links near the relevant text, or at the end under ## See also.
  • Add [TOC] after the intro only when the hosting platform renders it.

For short operational documents, a predictable checklist often beats a full narrative.


Prose and Whitespace

Keep paragraphs semantic and let the editor or renderer wrap them. Fixed-width hard wraps create noisy diffs, because a one-word edit reflows every following line, and they split ideas across lines in ways that are awkward for both agents and reviewers to edit.

Never leave trailing whitespace. Use a single trailing backslash only where a literal line break is required, and sparingly.


Lists and Code

  • Use ordered lists for sequences and bullets for unordered items.
  • Use lazy numbering (1.) for long lists whose order may change.
  • Indent nested list content consistently, four spaces inside list items.
  • Use backticks for commands, paths, field names, and literals, and to escape text that would otherwise be parsed as Markdown.
  • Specify the language immediately after the opening fence.
  • When showing Markdown that itself contains code fences, use a longer outer fence or simplify the example.
1. Run the build

    ```bash
    npm run build
    ```

Links, Images, and Tables

  • Give every link meaningful text. Never label a link "click here" or paste the raw URL as the text.
  • Use reference-style definitions for long URLs, repeated links, and links inside table cells.
  • Place reference definitions at the end of the section, or at the end of the document when shared.
  • Keep internal links explicit; avoid ../ jumps across directories unless unavoidable.
  • Add images only when they carry information prose cannot, such as an annotated screenshot, and always give meaningful alt text.
  • Reserve tables for genuinely tabular data with consistent columns. Fall back to headings and bullet lists when the content is prose.
See the [style guide][style] for details.

[style]: https://google.github.io/styleguide/docguide/style.html

HTML

Stick to Markdown syntax. HTML reduces portability and often introduces validation issues. Use raw HTML only when Markdown cannot express the layout, and note why it was necessary.


Checklist

Before finishing Markdown changes:

  • Headings are ordered, descriptive, in sentence case, and not duplicated
  • Code fences open and close cleanly and carry language tags
  • Fences inside list items are indented so the Markdown stays valid
  • Links have descriptive text, with reference definitions for long or repeated URLs
  • Prose is not hard-wrapped mid-sentence, and unchanged paragraphs were not reflowed
  • No trailing whitespace was introduced
  • Images are high-value and have alt text
  • Tables hold tabular data, not prose
  • Any HTML block is justified
  • The document is no longer than its purpose requires
  • For a SKILL.md, the document-shape requirements above were correctly waived

See also

  • Load standards-documentation for content structure, audience, and what to document.
  • Load standards-skill-authoring when the file being edited is a SKILL.md.

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.