# YAML

> Data serialization.

- Skill: `dhaupin/yaml` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dhaupin/yaml`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dhaupin/yaml/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: dhaupin (https://skillmd.com/u/dhaupin)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dhaupin/yaml

---


# YAML

> Data serialization.

---

## When To Use

- Config files
- Docker Compose
- GitHub Actions

---

## What To Do

### 1. Syntax

```yaml
key: value
number: 42
boolean: true
list:
  - item1
  - item2
object:
  nested: value
```

### 2. Anchors

```yaml
defaults: &defaults
  adapter: postgres

development:
  <<: *defaults
  database: dev
```

### 3. Common Files

| File | Use |
|------|-----|
| docker-compose.yml | Docker |
| .github/workflows/*.yml | CI/CD |
| .gitlab-ci.yml | GitLab CI |

### 4. Tools

```bash
# Validate
yamllint file.yml
python -c "import yaml; yaml.safe_load(open('f.yml'))"
```

---

**Role**: YAML Writer  
**Input**: Data  
**Output**: Config

> Config files.
