Skip to main content
skill CX Codex

github-actions-workflow — Claude Code skill: CI/CD in GitHub Actions

A skill that helps your agent write GitHub Actions workflows for tests, builds, security scans and deploys.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill github-actions-workflow -a claude-code
Open on GitHub

What github-actions-workflow does

The skill gives the agent a working starting point for GitHub Actions. It ships a minimal .github/workflows/ci.yml example with a Node version matrix, plus reference guides in references/: a full CI/CD pipeline, an automated release flow, and a Docker build-and-push setup.

You can hand it smaller jobs too, like dependency caching or conditional steps with if:. A best-practices section lists what to avoid: keeping secrets in workflow files, running untrusted code, using secrets.* in pull requests from forks.

Worth installing if your project already lives on GitHub and you want the checks automated. The skill won't create secrets or set access rights for you. You still configure permissions and environment secrets yourself, and without them a workflow simply won't get the access it needs.

What it helps with

  • build a CI pipeline that tests several Node versions
  • add Docker image build and push to a registry
  • set up a release workflow triggered by a tag
  • split checks into separate jobs with conditions
  • move secrets out of the workflow file

Example prompts for the agent

  • Write a CI workflow that runs tests on Node 16, 18 and 20 on push to main
  • Add a job that builds a Docker image and pushes it to ghcr.io
  • Create a release workflow that runs on a tag

How to install github-actions-workflow

1Skills CLI (Vercel)

npx skills add aj-geddes/useful-ai-prompts --skill github-actions-workflow -a claude-code

2Manually: put the files in place

~/.claude/skills/github-actions-workflow/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/github-actions-workflow/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about github-actions-workflow

How do I install github-actions-workflow in Claude?

Run npx skills add aj-geddes/useful-ai-prompts --skill github-actions-workflow -a claude-code. The skill lands at ~/.claude/skills/github-actions-workflow/SKILL.md.

What does github-actions-workflow do?

It helps the agent write GitHub Actions workflow files for CI, testing, security scanning and deployment. It includes a .github/workflows/ci.yml example and reference guides for CI/CD, releases and Docker.

Do I need secrets for this skill to work?

The skill advises against storing secrets in workflow files and points you to environment secrets and variables. You set the secrets and permissions in your repository settings.

Source text

SKILL.md · MIT
---
name: github-actions-workflow
description: >
  Build comprehensive GitHub Actions workflows for CI/CD, testing, security, and
  deployment. Master workflows, jobs, steps, and conditional execution.
---

# GitHub Actions Workflow

## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)

## Overview

Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.

## When to Use

- Continuous integration and testing
- Build automation
- Security scanning and analysis
- Dependency updates
- Automated deployments
- Release management
- Code quality checks

## Quick Start

Minimal working example:

```yaml
# .github/workflows/ci.yml
name: CI/CD Pipeline

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main, develop]

env:
  REGISTRY: ghcr.io
  IMAGE_NAME: ${{ github.repository }}

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [16.x, 18.x, 20.x]
    steps:
      - uses: actions/checkout@v3

      - name: Setup Node ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
// ... (see reference guides for full implementation)
```

## Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents |
|---|---|
| [Complete CI/CD Workflow](references/complete-cicd-workflow.md) | Complete CI/CD Workflow |
| [Automated Release Workflow](references/automated-release-workflow.md) | Automated Release Workflow |
| [Docker Build and Push](references/docker-build-and-push.md) | Docker Build and Push |

## Best Practices

### ✅ DO

- Use caching for dependencies (npm, pip, Maven)
- Run tests in parallel with matrix strategy
- Require status checks on protected branches
- Use environment secrets and variables
- Implement conditional jobs with `if:`
- Lint and format before testing
- Set explicit permissions with permissions
- Use runner labels for specific hardware
- Cache Docker layers for faster builds

### ❌ DON'T

- Store secrets in workflow files
- Run untrusted code in workflows
- Use `secrets.*` with pull requests from forks
- Hardcode credentials or tokens
- Miss error handling with `continue-on-error`
- Create overly complex workflows
- Skip testing on pull requests

© aj-geddes · MIT · aj-geddes/useful-ai-prompts

Similar skills

Everything for DevOps and infrastructure →

From the same set118

ruby-rails-application Guides building Ruby on Rails applications with Active Record models, RESTful controllers, and JWT authentication. Best for structuring Rails APIs and managing database schemas. CX Codex +1 655installs api-rate-limiting Guides the implementation of token bucket and sliding window rate limiting. Protects APIs from brute force attacks and traffic surges using Redis or Flask. CX Codex +1 640installs information-architecture Structures content, sitemaps, and taxonomies for web apps and documentation hubs. It guides your AI agent through a four-stage process from card sorting to tree testing. CX Codex +1 634installs internationalization-i18n A skill that walks your agent through shipping a multi-language app: string extraction, translation catalogs, plurals, locale-aware dates and numbers, RTL. CX Codex +1 633installs backup-disaster-recovery A skill that helps the agent plan database backups, disaster recovery and cross-region failover for your infrastructure. CX Codex +1 620installs color-accessibility Guides accessible palette design under WCAG AA and AAA standards, including support for color blindness. Helps style interfaces, charts, and form states. CX Codex +1 619installs fastapi-development A skill that steers your AI agent toward idiomatic FastAPI code: async routes, Pydantic validation, JWT auth and automatic OpenAPI docs. CX Codex +1 618installs aws-lambda-functions A skill that walks your agent through creating and deploying AWS Lambda functions: event sources, permissions, layers, environment config. CX Codex +1 614installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor