agentleFS
leroyguillaumeleroyguillaume/skills/yaml-conventions/SKILL.md

yaml-conventions

Skill7 starsChanged 5 days agoMITView on GitHub

YAML formatting: block style, document start markers. TRIGGER when: editing or creating any `.yaml`/`.yml` file (manifests, Helm values, workflows, compose, config); writing a YAML snippet in docs or a README; user asks about YAML style, flow vs block or document markers. SKIP when: no YAML is involved.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Never use flow style (inline {...} / [...]) in YAML: Always write block style, one key per line.

    line 16

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

YAML formatting

Applies everywhere YAML appears: manifests, Helm charts/values, GitHub Actions workflows, docs, and example snippets in README.md.

  • Never use flow style (inline {...} / [...]) in YAML. Always write block style, one key per line. For example, write

    applications:
      app:
        enabled: true

    not app: { enabled: true }. The only acceptable inline form is an intentionally empty collection ({} / []).

  • Never write inline arrays. A sequence must use block style, one item per line with a leading - , even for a single element. Write

    ports:
      - "8080:8080"
    command:
      - /bin/sh
      - -c

    not ports: ["8080:8080"] or command: ["/bin/sh", "-c"]. The only exception is an intentionally empty list ([]).

  • Never open a file with ---. The document start marker is optional in YAML, means nothing for a single-document file, and every tool reads the file identically with or without it. Start on the first key, or on the leading comment:

    # Fixtures for the e2e suite.
    apiVersion: v1
    kind: Namespace

    not a bare --- on line 1. The separators between documents in a genuinely multi-document file are a different thing — required syntax, keep them. Markdown/skill frontmatter delimiters are not YAML documents either; leave those alone.

Enforce all of the above with a yamllint hook (document-start: present: false, braces / brackets forbid: non-empty) rather than by review — see pre-commit-conventions for the hook and the config.

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.