AGENT SKILL

yaml

Data serialization.

License 许可
MIT
所属仓库
dhaupin/vant
最近更新
2026-11-13
Stars
★ 16
Forks
1

01 前言 Front Matter

name
yaml
license
MIT
metadata
{ "author": "vant", "version": "1.0" }
description
Data serialization.

03 SKILL.md 正文

YAML

Data serialization.


When To Use

  • Config files
  • Docker Compose
  • GitHub Actions

What To Do

1. Syntax

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

2. Anchors

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

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

Role: YAML Writer Input: Data Output: Config

Config files.

04 同仓库更多 Skills