agentleFS
jscraikjscraik/Agent-Skills/Skills/agent-ops/yaml/SKILL.md

yaml

Skill9 starsChanged 2 months agoApache-2.0View on GitHub

Create and review YAML files with safe indentation, schema-aware structure, and low-surprise serialization. Use when editing YAML config or workflow files.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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. Distinctive:

    Use for YAML authoring, review, or schema-safe fixes.

    line 26
  2. Distinctive:

    Prefer schema truth and low-churn edits over clever rewrites.

    line 44
  3. Distinctive:

    Use spaces only; never use tabs for indentation.

    line 54
  4. Distinctive:

    Keep indentation width consistent within a file.

    line 55
  5. Distinctive:

    Prefer block style for complex mappings and sequences.

    line 57
  6. Distinctive:

    Avoid mixing flow style with block style in the same section.

    line 63
  7. Very specific:

    Run the relevant parser/schema/tool checks for touched files.

    line 67
  8. Distinctive:

    If schema compatibility is uncertain, stop and confirm constraints.

    line 72
  9. Distinctive:

    If the consuming schema, scalar expectations, or validation command cannot be identified, stop and report the missing contract before …

    line 81

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

Table of Contents

  • When to use
  • Required inputs
  • Deliverables
  • Philosophy
  • Procedure
  • YAML Guidelines
  • Editing Rules
  • Validation
  • Constraints
  • Anti-patterns
  • Failure mode
  • Gotchas
  • References

When to use

  • Use for YAML authoring, review, or schema-safe fixes.
  • Inputs: target files, consumer tool, required keys, and formatting conventions.
  • Deliver valid YAML with stable indentation, key ordering, and scalar notes.

Required inputs

  • Target YAML file path and consuming tool or schema.
  • Required keys, scalar expectations, and formatting conventions.
  • Validation command or parser expected to consume the file.

Deliverables

  • Minimal YAML edit preserving meaningful ordering and comments.
  • Validation evidence from parser, schema, or consuming tool.
  • Notes for indentation, scalar coercion, or compatibility risk.

Philosophy

  • Prefer schema truth and low-churn edits over clever rewrites.

Procedure

  1. Confirm the consumer schema and current key paths.
  2. Make the smallest compatible edit.
  3. Validate before closeout.

YAML Guidelines

  • Use spaces only; never use tabs for indentation.
  • Keep indentation width consistent within a file.
  • Quote values that could be misread as booleans, numbers, dates, or null.
  • Prefer block style for complex mappings and sequences.

Editing Rules

  • Minimize whitespace-only churn unless formatting is the task.
  • Preserve key order when downstream tooling expects logical ordering.
  • Avoid mixing flow style with block style in the same section.

Validation

  • Run the relevant parser/schema/tool checks for touched files.
  • Fail fast: stop at the first failed gate and report exact blocker evidence.

Constraints

  • If schema compatibility is uncertain, stop and confirm constraints.
  • Redact secrets and do not run destructive or network commands unless explicitly approved.

Anti-patterns

  • Reindenting unrelated sections, changing scalar meaning, or skipping validation.

Failure mode

If the consuming schema, scalar expectations, or validation command cannot be identified, stop and report the missing contract before editing.

Gotchas

  • Unquoted values like on, off, or no may coerce unexpectedly.

See Also

SkillWhen to use
[[toml]]Schema-aware config review for TOML-based tooling configs
[[he-fix-bugs]]Triage config parsing failures with evidence-first diagnosis

Topic map: [[agent-ops]]

References

  • Deep guidance: references/deep-guidance.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.