Escribir workflows de GitHub Actions
Te ayuda a escribir y revisar archivos de GitHub Actions para que sean válidos y no fallen por problemas de sintaxis. Te sirve al editar workflows YAML y comprobarlos con actionlint.
Descripción original (inglés)
authoring-github-workflows: Author and review GitHub Actions workflow YAML safely so syntactically-valid YAML can't ship a workflow that GitHub Actions refuses to run. USE FOR: editing, adding, or reviewing any file under .github/workflows/, writing run-name/name/if/env/run values that contain ${{ }} expressions, diagnosing a run that fails with 'This run likely failed because of a workflow file issue' and no jobs starting, deciding when a workflow scalar must be quoted, validating workflows with actionlint. DO NOT USE FOR: authoring application YAML unrelated to GitHub Actions, Azure Pipelines, GitLab CI, or non-workflow YAML. SCOPE: this skill covers *syntactic/structural* correctness of workflow YAML (quoting, parsing, actionlint); for *semantic and functional* workflow design (what a workflow should do, agentic-workflow behavior), see .github/agents/agentic-workflows.agent.md — the two are complementary. INVOKES: actionlint (downloaded pinned binary) plus git/grep for inspection.
Cómo instalarla
Una skill es una carpeta con un fichero SKILL.md. Para instalarla basta con copiar la carpeta authoring-github-workflows en el sitio donde tu agente busca sus skills.
- Sin terminal: abre la carpeta en GitHub, descárgala y cópiala en la carpeta de tu agente (tabla de abajo).
- Con terminal (macOS, Linux o Git Bash en Windows): elige tu agente y copia los comandos.
git clone --depth 1 https://github.com/dotnet/skills.git /tmp/skill-src
mkdir -p ~/.claude/skills
cp -r "/tmp/skill-src/.agents/skills/authoring-github-workflows" ~/.claude/skills/authoring-github-workflows
rm -rf /tmp/skill-src| Agente | Para todos tus proyectos | Solo un proyecto |
|---|---|---|
| Claude Code | ~/.claude/skills | .claude/skills |
| GitHub Copilot | ~/.copilot/skills | .github/skills |
| Codex | ~/.agents/skills | .agents/skills |
| Gemini CLI | ~/.gemini/skills | .gemini/skills |
Muchos agentes leen también .agents/skills. Reinicia el agente después de instalar. Antes de instalar una skill, revisa su SKILL.md y los scripts que incluya: se ejecutan con tus permisos.
Más skills de dotnet/skills
- Analizar rendimiento en .NET analyzing-dotnet-performance
- Simbolizar errores Android de .NET android-tombstone-symbolication
- Simbolizar errores Apple de .NET apple-crash-symbolication
- Analizar calidad de aserciones assertion-quality
- Crear componentes Blazor author-component
- Analizar fallos de compilación MSBuild binlog-failure-analysis
- Generar binlogs de MSBuild binlog-generation
- Analizar paralelismo de compilación MSBuild build-parallelism
Explicación redactada con ayuda de IA a partir de la descripción original.