AGENT SKILL
lang-yaml
YAML schema-first validation, safe deserialization (safe_load), duplicate key rejection, anchor limits, and secret scrubbing.
- License 许可
- MIT
- 所属仓库
- poppyTM/oride
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- lang-yaml
- description
- YAML schema-first validation, safe deserialization (safe_load), duplicate key rejection, anchor limits, and secret scrubbing.
02 资源文件 6
- 参考文档checks/yaml-rules.md255 B
- 参考文档examples/safe_config.yaml172 B
- 参考文档manifest.json1.6 KB
- 参考文档references/yaml-safety-guide.md226 B
- 脚本scripts/verify.sh370 B
- 参考文档templates/yaml-validation-report.md146 B
03 SKILL.md 正文
YAML Engineering & Safety Contract
1. Schema-First Validation
- All structured YAML manifests (Kubernetes, GitHub Actions, application configs) must be validated against a formal JSON Schema or tool (e.g. `kubeconform`).
- Adhere strictly to Yamllint rules (two-space indentation, document start `---`, newline at EOF).
2. Safe Deserialization & Parser Security
- Application parsers must use safe loaders (`yaml.safe_load`, PyYAML `SafeLoader`, Go `gopkg.in/yaml.v3`). Prohibit custom object instantiation.
- Strictly reject duplicate mapping keys.
- Limit YAML anchor (`&anchor`) and alias (`*alias`) nesting to prevent exponential entity expansion (billion-laughs DOS).
3. Explicit Typing & Secret Protection
- Quote ambiguous string literals that can be coerced to booleans or numbers (e.g. `"yes"`, `"no"`, `"true"`, `"1.0"`).
- Zero plaintext secrets in YAML files. Use Secret references, KMS, or Vault injections.\n
04 同仓库更多 Skills
zoom-reflow
暂无简介
★ 1
wireframe-styleguide
暂无简介
★ 1
visual-regression
Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates
★ 1
ui-implementation
Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.
★ 1
tui-editor-engine
Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.
★ 1
tree-sitter-context-indexing
暂无简介
★ 1