002-jeremy-yaml-master-agent

Intelligent YAML validation, generation, and transformation agent with schema inference, linting, and format conversion capabilities

View on GitHub
Author Jeremy Longshore
Namespace @jeremylongshore/claude-code-plugins-plus
Category productivity
Version 1.0.0
Stars 1,193
Downloads 2
self.md verified
Table of content

Intelligent YAML validation, generation, and transformation agent with schema inference, linting, and format conversion capabilities

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/002-jeremy-yaml-master-agent

Contents

Folders: skills

Files: LICENSE, README.md

Documentation

Intelligent YAML validation, generation, and transformation with schema inference and format conversion.

Version Category Agent Skills Anthropic Spec


Problem This Solves

Before: Working with YAML files is error-prone. Syntax errors from indentation, duplicate keys, and format inconsistencies cause pipeline failures. Manual validation and conversion between formats is tedious.

After: The YAML Master Agent automatically detects YAML work and provides intelligent validation, schema inference, linting, and seamless format conversion. Never struggle with YAML syntax again.


Quick Start

Installation

/plugin install 002-jeremy-yaml-master-agent@claude-code-plugins-plus

Basic Usage

The skill activates automatically when working with YAML files. No commands needed!

Example 1: Validate YAML

User: Check this kubernetes manifest for errors
*Opens deployment.yaml*

Agent: πŸ” YAML Master Agent activated
Found 3 issues:
1. Line 12: Mixed indentation (tabs and spaces)
2. Line 24: Duplicate key "metadata"
3. Line 31: Missing required field "selector"

Here's the corrected version...

Example 2: Convert JSON to YAML

User: Convert this JSON config to YAML

Agent: πŸ“‹ Converting JSON to idiomatic YAML...
βœ… Conversion complete! Added comments and optimized structure.

Example 3: Generate Docker Compose

User: Create docker-compose.yaml for nginx, postgres, redis

Agent: 🐳 Generating optimized Docker Compose configuration...
βœ… Complete with healthchecks, volumes, and networks!

Features

⚑ Automatic Activation (Proactive Skill)

The YAML Master Agent activates automatically when Claude detects:

No user action required!

πŸ” Intelligent Validation

Example:

# ❌ INVALID
services:
  web:
	image: nginx  # Tab indentation ERROR!

Agent fixes:

# βœ… VALID
services:
  web:
    image: nginx  # Consistent spaces

🎯 Schema Inference & Generation

Example:

# Input
user:
  name: Jeremy
  age: 35

Agent generates schema:

{
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "age": { "type": "integer" }
      }
    }
  }
}

πŸ”„ Format Conversion

Seamless conversion between:

Preserves comments and maintains semantic equivalence.

☸️ Kubernetes Manifest Expertise

Example - Minimal to Production-Ready:

# You provide
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx

Agent expands with best practices:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    spec:
      containers:
      - name: nginx
        image: nginx:1.25-alpine
        resources:
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
            cpu: "500m"
        livenessProbe:
          httpGet:
            path: /
            port: 80
        securityContext:
          runAsNonRoot: true
          runAsUser: 1000
# ... full production-ready manifest

🐳 Docker Compose Optimization

βš™οΈ CI/CD Pipeline Intelligence

Optimizes workflows for:

Suggests caching, parallelization, and matrix builds for faster pipelines.

πŸ“ Linting & Style Enforcement

…(truncated)

Included Skills

This plugin includes 1 skill definition:

yaml-master

|

View skill definition

YAML Master

Proactive YAML intelligence: validate syntax, enforce consistent formatting, and keep configuration files schema-correct (Kubernetes, GitHub Actions, Docker Compose, and similar).

Overview

This skill activates when working with .yml/.yaml files to detect structural issues early (indentation, anchors, type mismatches), and to produce safe, minimal edits that keep CI/config tooling happy.

Prerequisites

Instructions

  1. Parse and validate YAML syntax (identify the first breaking error and its location).
  2. Normalize formatting (indentation, quoting) without changing semantics.
  3. Validate structure against the target system’s expectations (keys, types, required fields).
  4. Identify risky patterns (duplicate keys, ambiguous scalars, anchors used incorrectly).
  5. Output a minimal patch plus a short validation checklist (what to run next).

Output

Error Handling

…(truncated)

Source

View on GitHub

Tags: productivity yamlvalidationlintingschemajsonconversionparsingagent-skills