agentleFS
NVIDIAKnown publisherNVIDIA/elements/.agents/skills/authoring-documentation/SKILL.md

authoring-documentation

Skill93 starsChanged 3 months agoApache-2.0View on GitHub

Guidelines for writing documentation files including 11ty templates, Eleventy shortcodes, JSDoc annotations, and markdown content. Use this skill whenever the user works with documentation markdown files, Vale prose linting errors, Eleventy shortcodes (dodont, example), frontmatter, JSDoc annotations that must pass Vale, or the documentation site. Also trigger when the user mentions Vale errors, adding terms to the vocabulary, suppressing Vale rules, or writing and fixing prose in .md or .ts files.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Frontmatter Required: All documentation files must include proper frontmatter with title and layout

    line 21
  2. Distinctive:

    Eleventy Shortcodes: Use built-in shortcodes for common patterns (code examples, callouts, etc.)

    line 22
  3. Distinctive:

    Clear Structure: Use proper heading hierarchy and table of contents for long documents

    line 23
  4. Distinctive:

    Use sparingly, and re-enable immediately after the affected content:

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Documentation (*.md)

You MUST review @projects/site/src/docs/internal/guidelines/documentation.md before making any documentation changes.

When to Use This Skill

  • Creating or updating markdown documentation files
  • Working with 11ty templates in the documentation site
  • Using or creating Eleventy shortcodes
  • Writing API documentation or component guides
  • Updating internal guidelines or developer documentation
  • Fixing Vale prose-linting errors in markdown or JSDoc

Key Principles

  1. Frontmatter Required: All documentation files must include proper frontmatter with title and layout
  2. Eleventy Shortcodes: Use built-in shortcodes for common patterns (code examples, callouts, etc.)
  3. Clear Structure: Use proper heading hierarchy and table of contents for long documents
  4. Code Examples: Include working code examples with proper syntax highlighting
  5. Cross-References: Link to related documentation and guidelines using proper paths

Prose Linting (Vale)

How Vale Runs

  • Pre-commit (via lint-staged): automatically lints staged non-test *.ts and *.md files
  • CI:runs as part of pnpm run ci
  • Manual:pnpm run lint:vale from the repo root (pass specific files as args to narrow scope)

Rule Sets by File Type

  • *.md:Vale, Google, write-good, Elements (full rule set)
  • *.ts:Vale, write-good, Elements (no Google rules or spelling checks to reduce noise on code identifiers)
  • *.examples.ts:same as *.ts plus three summary rules: SummaryStyle, SummaryActionable, SummaryGerund

Common Errors and Fixes

RuleTriggerFix
Google.Latine.g., i.e.Use "for example," "that is"
Google.PassivePassive voiceRewrite in active voice
Google.QuotesPunctuation outside quotesMove commas/periods inside quotation marks
Elements.Brandingnvidia, NvidiaAlways use NVIDIA
Elements.Terminologyweb componentUse Web Component / Web Components
Vale.SpellingUnknown termAdd the term to config/vale/styles/config/vocabularies/Elements/accept.txt
Elements.SummaryStyleWeak openers like "This example demonstrates"Lead with what the example does or when to use it

Suppressing Rules

Use sparingly, and re-enable immediately after the affected content:

<!-- vale Google.Quotes = NO -->
content here
<!-- vale Google.Quotes = YES -->

Key Files

  • .vale.ini:root config (rule toggles, file-type scopes, token ignores)
  • config/vale/styles/Elements/:custom rules (Branding, Terminology, Summary*)
  • config/vale/styles/config/vocabularies/Elements/accept.txt:approved vocabulary

References

  • Documentation Guidelines
  • Examples Guidelines
  • Vale Config
  • Custom Vale Rules

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.