# YAML Configuration Pattern 1 Configuration Hierarchy

> Sub-skill of yaml-configuration: Pattern 1: Configuration Hierarchy (+2).

- Skill: `vamseeachanta/yaml-configuration-pattern-1-configuration-hierarchy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/yaml-configuration-pattern-1-configuration-hierarchy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/yaml-configuration-pattern-1-configuration-hierarchy/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/yaml-configuration-pattern-1-configuration-hierarchy

---


# Pattern 1: Configuration Hierarchy (+2)

## Pattern 1: Configuration Hierarchy


```yaml
# Global defaults
defaults: &defaults
  version: 1.0
  units: "SI"
  precision: 6

# Project-specific configs inherit defaults
project_a:
  <<: *defaults

*See sub-skills for full details.*

## Pattern 2: Environment-Specific Configs


```yaml
# development.yaml
database:
  host: "localhost"
  port: 5432

# production.yaml
database:
  host: "prod-server.example.com"
  port: 5432
```

## Pattern 3: Parameterized Templates


```yaml
# template.yaml
analysis:
  name: "${PROJECT_NAME}"
  water_depth: ${WATER_DEPTH}
  wave_height: ${HS}
```

