Write GitHub Actions workflows with proper syntax, reusable workflows, composite actions, matrix builds, caching, and security best practices.
NewMaintained
Automatic
◆DevOps & SRE pack
Last verified 8/21/2026
What it changes
Passed 8 of 23 test cases with the skill, and 15 of 23 without it.
Without skill67%
With skill33%
Checks it passed that the model alone missed
Set an if conditional matching github.ref to refs/heads/main on the job.
1 fixed20 passed either way0 still failing2 broke
Pass-rate lift
-33 pp
Tokens
+186%
Agent turns
0%
Response time
-16%
Model gemini-3.6-flashMeasured 8/21/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
We have a deployment job in GitHub Actions that must only execute when commits land on the main branch, and it must trigger GitHub's environment protection rules and secrets for production. How should the branch check and environment binding be declared on the job?
What was checked, without and with the skill
Checked
Without skill
With skill
Set an if conditional matching github.ref to refs/heads/main on the job.
Missed
Passed
Specify environment set to production on the job block.
Passed
Passed
case-17 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md468 lines9 filesincludes scripts
Writing GitHub Actions
Create GitHub Actions workflows for CI/CD pipelines, automated testing, deployments, and repository automation using YAML-based configuration with native GitHub integration.
Purpose
GitHub Actions is the native CI/CD platform for GitHub repositories. This skill covers workflow syntax, triggers, job orchestration, reusable patterns, optimization techniques, and security practices specific to GitHub Actions.
Core Focus:
Workflow YAML syntax and structure
Reusable workflows and composite actions
Matrix builds and parallel execution
Caching and optimization strategies
Secrets management and OIDC authentication
Concurrency control and artifact management
Not Covered:
CI/CD pipeline design strategy → See building-ci-pipelines
GitOps deployment patterns → See gitops-workflows
Infrastructure as code → See infrastructure-as-code
Testing frameworks → See testing-strategies
When to Use This Skill
Trigger this skill when:
Creating CI/CD workflows for GitHub repositories
Automating tests, builds, and deployments via GitHub Actions
Setting up reusable workflows across multiple repositories
Optimizing workflow performance with caching and parallelization
Implementing security best practices for GitHub Actions
Troubleshooting GitHub Actions YAML syntax or behavior