Skip to content
OpenSmartRoute
Skillv1.0.0

github-actions-workflows

GitHub Actions workflow patterns for CI/CD including matrix builds, reusable workflows, secrets management, and caching strategies. Use when setting up or optimizing GitHub Actions pipelines.

by nickcrew(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from nickcrew/claude-cortex (skills/github-actions-workflows/SKILL.md). Install upstream with npx skills add nickcrew/claude-cortex --skill github-actions-workflows. Copyright stays with the author.

GitHub Actions Workflows

Expert guidance for designing reliable, secure, and performant GitHub Actions CI/CD pipelines with patterns for matrix builds, reusable workflows, caching, and deployment automation.

When to Use This Skill

  • Setting up CI/CD pipelines with GitHub Actions from scratch
  • Optimizing slow or expensive GitHub Actions workflows
  • Implementing matrix builds for multi-environment testing
  • Creating reusable workflows and composite actions for DRY pipelines
  • Managing secrets securely across environments
  • Configuring caching for dependency and build artifact reuse
  • Setting up deployment workflows with staging and production gates
  • Debugging failing or flaky workflow runs
  • Implementing concurrency controls to prevent duplicate runs

Quick Reference

Task Load reference
Matrix builds, reusable workflows, caching, deployment, concurrency skills/github-actions-workflows/references/workflow-patterns.md

Core Principles

  • Structured jobs: Break workflows into clear, distinct jobs with defined dependencies
  • DRY configuration: Use reusable workflows and composite actions to avoid duplication
  • Security first: Use GitHub secrets, OIDC, and minimum necessary permissions
  • Cache aggressively: Cache dependencies, build outputs, and test fixtures
  • Trigger thoughtfully: Configure event triggers to avoid unnecessary workflow runs
  • Document workflows: Add comments explaining non-obvious YAML configuration

Workflow

1. Design

Plan the pipeline structure before writing YAML.

  • Identify trigger events (push, pull_request, schedule, workflow_dispatch)
  • Map job dependencies and what can run in parallel
  • Determine caching opportunities (dependencies, build outputs)
  • Plan environment promotion (dev, staging, production)

2. Implementation

Build the pipeline incrementally.

  • Start with a minimal workflow and add complexity
  • Use matrix builds for multi-environment testing
  • Extract reusable workflows for shared patterns
  • Configure secrets management with environment protection

3. Optimization

Reduce runtime and cost.

  • Profile workflow timing to identify bottlenecks
  • Add caching for dependencies and build artifacts
  • Use concurrency controls to cancel redundant runs
  • Configure path filters to skip unaffected workflows

4. Maintenance

Keep workflows healthy over time.

  • Pin action versions to specific SHAs for security
  • Review and update actions regularly
  • Monitor workflow runtime trends and costs
  • Peer-review workflow changes before merging

Common Mistakes

  • Using actions/checkout@main instead of pinning to a SHA or version tag
  • Not setting permissions block (defaults to overly broad read-write)
  • Caching node_modules instead of the package manager cache directory
  • Missing concurrency groups, leading to duplicate deploys
  • Hardcoding secrets in workflow files instead of using GitHub Secrets
  • Running the full test suite on every push instead of using path filters
  • Not using workflow_call for shared CI logic across repositories

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/nickcrew-claude-cortex-github-actions-workflows/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

nickcrew-claude-cortex-github-actions-workflows.ocm.jsonjson
{
  "ocm": "1",
  "id": "nickcrew-claude-cortex-github-actions-workflows",
  "kind": "skill",
  "name": "github-actions-workflows",
  "description": "GitHub Actions workflow patterns for CI/CD including matrix builds, reusable workflows, secrets management, and caching strategies. Use when setting up or optimizing GitHub Actions pipelines.",
  "publisher": "nickcrew",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "math"
    ],
    "tags": [
      "skill-md",
      "github-actions",
      "ci-cd",
      "workflow-automation",
      "github",
      "actions",
      "workflows",
      "github-actions-workflows",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "GitHub Actions workflow patterns for CI/CD including matrix builds, reusable workflows, secrets management, and caching strategies. Use when setting up or optimizing GitHub Actions pipelines."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/nickcrew/claude-cortex",
      "path": "skills/github-actions-workflows/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/nickcrew/claude-cortex/blob/HEAD/skills/github-actions-workflows/SKILL.md",
      "key": "nickcrew/claude-cortex/skills/github-actions-workflows/SKILL.md"
    }
  },
  "instructions": "# GitHub Actions Workflows\n\nExpert guidance for designing reliable, secure, and performant GitHub Actions CI/CD pipelines with patterns for matrix builds, reusable workflows, caching, and deployment automation.\n\n## When to Use This Skill\n\n- Setting up CI/CD pipelines with GitHub Actions from scratch\n- Optimizing slow or expensive GitHub Actions workflows\n- Implementing matrix builds for multi-environment testing\n- Creating reusable workflows and composite actions for DRY pipelines\n- Managing secrets securely across environments\n- Configuring caching for dependency and build artifact reuse\n- Se",
  "cost": {
    "context_tokens": 775
  }
}

Fetch it by URL: GET /api/v1/registry/nickcrew-claude-cortex-github-actions-workflows/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.