github-actions

Automate secure CI/CD pipelines with GitHub Actions workflows.

Updated Nov 27, 2025
One-click install
npx skills add https://github.com/barrydobson/dotfiles_extra --skill github-actions-barrydobson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions
Source: https://github.com/barrydobson/dotfiles_extra/tree/main/packages/claude/.claude/skills/github-actions
Command: npx skills add https://github.com/barrydobson/dotfiles_extra --skill github-actions-barrydobson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers design robust CI/CD pipelines using GitHub Actions, focusing on reliability, security, and maintainability.

Core Features & Use Cases

  • Workflow structure: Create clear, modular workflows with descriptive names.
  • Triggers & concurrency: Choose appropriate events and prevent overlapping runs.
  • Security & permissions: Enforce least privilege for GITHUB_TOKEN and secrets.
  • Advanced patterns: Matrix strategies, caching, reusable workflows, and testing.
  • Claude guidance: Provide actionable patterns and runbooks for real-world pipelines.

Quick Start

Create a basic workflow at .github/workflows/build.yml that runs on push to main, installs Node.js, runs tests, and uploads a build artifact.

Frequently Asked Questions about github-actions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a CI/CD pipeline with GitHub Actions?

GitHub Actions automates CI/CD pipelines through workflow files in .github/workflows/. Define triggers (push, pull_request), jobs with steps, environment variables, and secrets. Start with a basic workflow: run on push to main, install dependencies, execute tests, and upload artifacts.

What are least-privilege permissions in GitHub Actions workflows?

Least-privilege permissions restrict GITHUB_TOKEN access to only required scopes per job. Set permissions at workflow or job level to limit token capabilities—grant only read for contents, write for pull-requests, or other specific actions needed. Reduces security risk from compromised tokens.

How do I use matrix strategies to test multiple configurations?

Matrix strategies run a job across multiple Node.js versions, operating systems, or custom variables in parallel. Define matrix values in your workflow; each combination generates a separate job instance. Reduces duplication and speeds up testing across environments.

Can I reuse workflows across multiple repositories?

Reusable workflows allow you to centralize common CI/CD logic and call it from other workflows using uses keyword. Define the workflow once, then reference it from multiple pipelines. Improves maintainability, consistency, and reduces duplication across projects.

How do I cache dependencies to speed up GitHub Actions workflows?

Caching stores dependencies between workflow runs using the cache action. Specify paths (node_modules, vendor/) and a cache key. Restored cache reduces installation time on subsequent runs, accelerating build and test stages significantly.

What's the best way to manage secrets securely in GitHub Actions?

Store secrets in repository or organization settings; reference them as ${{ secrets.SECRET_NAME }} in workflows. GitHub encrypts secrets at rest and masks them in logs. Combine with least-privilege permissions and avoid hardcoding sensitive data in workflows or version control.