002-jeremy-yaml-master-agent
Intelligent YAML validation, generation, and transformation agent with schema inference, linting, and format conversion capabilities
View on GitHubTable 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.
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:
- Reading/writing
.yamlor.ymlfiles - Working with Kubernetes, Docker Compose, CI/CD configs
- Mentions of “yaml”, “validate”, “convert”, “lint”
No user action required!
π Intelligent Validation
- Detects syntax errors with line numbers
- Validates against YAML 1.2 specification
- Identifies anti-patterns (tabs vs spaces, duplicate keys)
- Provides detailed fix suggestions
Example:
# β INVALID
services:
web:
image: nginx # Tab indentation ERROR!
Agent fixes:
# β
VALID
services:
web:
image: nginx # Consistent spaces
π― Schema Inference & Generation
- Infers JSON Schema from YAML structure
- Generates TypeScript/Python types from configs
- Validates instances against schemas
- Creates OpenAPI specs from YAML
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:
- YAML β JSON
- YAML β TOML
- YAML β XML
Preserves comments and maintains semantic equivalence.
βΈοΈ Kubernetes Manifest Expertise
- Validates manifests against K8s API versions
- Suggests best practices (resource limits, health checks)
- Detects security issues (privileged containers, root users)
- Generates complete manifests from minimal specs
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
- Validates Docker Compose syntax (v2.x, v3.x)
- Suggests networking and security best practices
- Optimizes volume mounts and environment variables
- Detects misconfigurations (hardcoded secrets, missing healthchecks)
βοΈ CI/CD Pipeline Intelligence
Optimizes workflows for:
- GitHub Actions
- GitLab CI
- CircleCI
- Azure Pipelines
- Travis CI
Suggests caching, parallelization, and matrix builds for faster pipelines.
π Linting & Style Enforcement
- Enforces consisten
…(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
- The YAML file(s) to inspect and their intended target (e.g., Kubernetes, GitHub Actions, Compose)
- Any relevant schema or constraints (when available)
- Permission to edit the file(s) (or to propose a patch)
Instructions
- Parse and validate YAML syntax (identify the first breaking error and its location).
- Normalize formatting (indentation, quoting) without changing semantics.
- Validate structure against the target systemβs expectations (keys, types, required fields).
- Identify risky patterns (duplicate keys, ambiguous scalars, anchors used incorrectly).
- Output a minimal patch plus a short validation checklist (what to run next).
Output
- Corrected YAML with minimal diffs
- A concise list of issues found (syntax vs schema vs best practice)
- Follow-up validation commands appropriate for the target (e.g.,
kubectl apply --dry-run=client, CI lint)
Error Handling
- If the schema/target is unknown, ask for the target system and apply syntax-only fixes first.
- If the YAML is valid but tooling still fails, surface the exact do
…(truncated)