yaml-control
Skill0 starsChanged 2 months agoMITView on GitHub
Valida archivos YAML (sintaxis + estructura) y workflows de GitHub Actions (actionlint) antes de commit/push. Úsalo cuando el usuario diga "valida los yaml", "revisa los workflows", "lint yaml", "actionlint", "errores de github actions", o "antes de pushear los workflows". También úsalo proactivamente cuando edites archivos en `.github/workflows/`, `compose.yml`, `pyproject` con secciones YAML, o cualquier `*.yml` / `*.yaml` modificado en el repo actual.
- Commits and pushes
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- vladimiracunadev-create/claude-skills-toolkitedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- bitcoin-custody-auditSkill
- docker-cleanupSkill
- docker-compose-doctorSkill
- functional-user-flow-testerSkill
- md-lint-fixSkill
- md-to-docSkill
- pre-commit-guardSkill
- preliminary-product-testerSkill
- pre-push-guardSkill
- python-deps-pinningSkill
- python-lint-guardSkill
- python-version-controlSkill
- release-evidence-auditorSkill
- repo-coherence-auditSkill
- security-auditSkill
- software-resilience-state-testerSkill
- nombre-del-skillSkill
- version-bumpSkill
- web-snapSkill
The file
Files
yaml-control
Detecta y reporta errores en archivos YAML antes de pushear. Cubre tres capas:
- Sintaxis YAML (
python -c "import yaml; yaml.safe_load(...)"). - Estructura GitHub Actions (
actionlint— sintaxis específica de workflows + shellcheck embebido). - Convenciones del repo — versiones de actions pinneadas a SHA (
uses: org/action@<40-char-sha>), permisos explícitos en cada workflow,fail-fast: falseen matrices grandes.
Cuándo usar este skill
- El usuario menciona "errores de yaml", "valida yaml", "actionlint", "los workflows fallan", "github actions error".
- Antes de cualquier
git pushque toque.github/workflows/*.yml. - Después de editar
compose.yml,docker-compose.yml, o secciones YAML de un proyecto. - Cuando un PR está rojo y la causa es el parser de Actions (
Invalid workflow file,missing required property). - Proactivamente: si en la sesión actual editaste un
*.ymlo*.yaml, ejecuta este skill antes de commitear.
Cómo se invoca
Sin argumentos: valida los YAML modificados según git status (uso normal pre-push).
python ~/.agents/skills/yaml-control/yaml_control.pyModos:
# Todos los YAML del repo actual (incluye no modificados)
python ~/.agents/skills/yaml-control/yaml_control.py --all
# Solo diagnóstico, sin instalar nada
python ~/.agents/skills/yaml-control/yaml_control.py --dry-run
# Solo workflows (.github/workflows/)
python ~/.agents/skills/yaml-control/yaml_control.py --workflows
# Verbose — muestra cada archivo verificado
python ~/.agents/skills/yaml-control/yaml_control.py -vTrabaja siempre en Path.cwd() — no importa desde qué carpeta se llame.
Qué valida exactamente
Capa 1 — sintaxis YAML
- Parsing con
yaml.safe_load. Falla si hay:- Indentación inconsistente.
- Llaves/corchetes sin cerrar.
- Anchors o aliases mal formados.
- BOM UTF-8 al inicio (causa de errores misteriosos en Actions runner).
- Tab characters (YAML exige espacios).
Capa 2 — workflows GitHub Actions (actionlint)
Sólo se ejecuta si el archivo está en .github/workflows/.
- Sintaxis específica del schema de workflows (
on:,jobs:,steps:, etc.). shellcheckembebido para losrun:bash (catchesset -eproblemas, var unquoted, etc.).- Validación de expresiones
${{ ... }}(referencias a inputs/secrets/matrix inexistentes). - Validación de
uses:(action existe, version sintácticamente válida).
Capa 3 — convenciones del repo
Actions con SHA pinneado:
uses: actions/checkout@<sha>no@v4. Catches:- uses: actions/checkout@v4 # ❌ warning - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ✅- Permisos explícitos: cada workflow debe declarar
permissions: ...a nivel root. fail-fast: falseen matrices con más de 5 elementos (para que un fallo no cancele el resto).
Instalación de actionlint
Si actionlint no está en PATH, el skill avisa y sugiere:
# Windows (PowerShell)
winget install rhysd.actionlint
# O directamente el binario (Linux/Mac)
bash <(curl -s https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)Si actionlint no está disponible, sigue con sólo las capas 1 y 3 y reporta:
⚠ actionlint no instalado — saltando validación de schema de workflows.
Salida esperada
YAML control — repo: /ruta/a/mi-proyecto
scope: 3 archivos modificados (.github/workflows/ci.yml, .github/workflows/security.yml, cases/22-.../compose.yml)
[1/3] .github/workflows/ci.yml
✓ sintaxis YAML
✓ actionlint
⚠ Convenciones: 2 actions sin SHA pinneado
- actions/checkout@v4 (línea 16) — debería ser @<sha>
- actions/setup-python@v5 (línea 19) — debería ser @<sha>
[2/3] .github/workflows/security.yml
✓ sintaxis YAML
✓ actionlint
✓ convenciones
[3/3] cases/22-.../compose.yml
✓ sintaxis YAML
- actionlint omitido (no es workflow)
- convenciones omitidas (no es workflow)
Resumen: 2 warnings, 0 errores. OK para push.Si hay errores (no warnings), exit 1 → bloquea el push si se usa en pre-push hook.
Errores comunes detectados
| Patrón | Capa | Mensaje típico |
| Tabs en YAML | 1 | found character '\t' that cannot start any token |
| BOM al inicio | 1 | mapping values are not allowed here |
uses: actions/checkout@v4 | 3 | action no pinneada a SHA |
runs-on sin valor | 2 actionlint | property "runs-on" is required |
Matriz grande sin fail-fast: false | 3 | matrix de N>5 sin fail-fast: false |
${{ matrix.x }} con x no declarada | 2 actionlint | matrix value "x" is not defined |
run: con cd && cmd sin pipefail | 2 (shellcheck) | SC2154, SC2086, etc. |
Integración con flujo de trabajo
Recomendado: invocar antes de cada git push que toque .yml / .yaml.
# Si edité workflows
python ~/.agents/skills/yaml-control/yaml_control.py
git pushCombinable con [[md-lint-fix]]: el agente puede invocar ambos seguidos antes de pushear cambios mixtos (markdown + yaml).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

