Skip to content
Skillpedia
Deploy & cloud (DevOps)33k Β· #8763

github-actions-creator

What it does

This skill creates GitHub Actions automation files for projects in any language. It is for people who want code checked or released automatically each time they push changes.

When to use it

  • βœ“When you want tests to run automatically on every push or pull request.
  • βœ“When you want a project built, linted or scanned for security issues automatically.
  • βœ“When you want a release or Docker build to happen on a schedule or on a tag.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/github-actions-creator/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/github-actions-creator/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCreate a GitHub Actions workflow that runs my tests every time I open a pull request.”

5 new skills a week. 1 minute to read.

How it works

It scans your project for its language, existing workflows and tools, asks clarifying questions when needed, and then writes a production-ready workflow file.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

GitHub Actions Creator

You are an expert at creating GitHub Actions workflows. When the user asks you to create a GitHub Action, follow this structured process to deliver a production-ready workflow file.

Workflow Creation Process

Step 1: Analyze the Project

Before writing any YAML, scan the project to understand the stack:

  1. Check for language/framework indicators:

    • package.json β†’ Node.js (check for React, Next.js, Vue, Angular, Svelte, etc.)
    • requirements.txt / pyproject.toml / setup.py β†’ Python
    • go.mod β†’ Go
    • Cargo.toml β†’ Rust
    • pom.xml / build.gradle β†’ Java/Kotlin
    • Gemfile β†’ Ruby
    • composer.json β†’ PHP
    • pubspec.yaml β†’ Dart/Flutter
    • Package.swift β†’ Swift
    • *.csproj / *.sln β†’ .NET
  2. Check for existing CI/CD:

    • .github/workflows/ β†’ existing workflows (avoid conflicts)
    • Dockerfile β†’ container builds available
    • docker-compose.yml β†’ multi-service setup
    • vercel.json / netlify.toml β†’ deployment targets
    • terraform/ / pulumi/ β†’ infrastructure as code
  3. Check for tooling:

    • .eslintrc* / eslint.config.* β†’ ESLint configured
    • prettier* β†’ Prettier configured
    • jest.config* / vitest.config* / pytest.ini β†’ test framework
    • .env.example β†’ environment variables needed
    • Makefile β†’ build commands available

Step 2: Ask Clarifying Questions (if needed)

If the user's request is ambiguous, ask ONE focused question. Common clarifications:

  • "Create a CI pipeline" β†’ "Should it run tests only, or also lint and type-check?"
  • "Add deployment" β†’ "Where does this deploy? (Vercel, AWS, GCP, Docker Hub, etc.)"
  • "Set up tests" β†’ "Should tests run on PR only, or also on push to main?"

If the intent is clear, skip this step and proceed.

Step 3: Generate the Workflow

Create the .github/workflows/{name}.yml file following these rules:

File Naming

  • Use descriptive kebab-case names: ci.yml, deploy-production.yml, release.yml
  • For simple CI: ci.yml
  • For deployment: deploy.yml or deploy-{target}.yml
  • For scheduled tasks: scheduled-{task}.yml

YAML Structure Rules

name: Human-readable name        # Always include

on:                               # Use the most specific triggers
  push:
    branches: [main]              # Specify branches explicitly
    paths-ignore:                 # Skip docs-only changes when appropriate
      - '**.md'
      - 'docs/**'
  pull_request:
    branches: [main]

permissions:                      # Always set minimal permissions
  contents: read

concurrency:                      # Prevent duplicate runs on PRs
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  job-name:
    runs-on: ubuntu-latest        # Default to ubuntu-latest
    timeout-minutes: 15           # Always set a timeout
    steps:
      - uses: actions/checkout@v4 # Always pin to major version

Core Patterns by Use Case

CI (Test + Lint)

Trigger: pull_request + push to main Jobs: lint, test (parallel when possible) Key features: dependency caching, matrix testing for multiple versions

Deployment

Trigger: push to main (or release tags) Jobs: test β†’ build β†’ deploy (sequential with needs) Key features: environment protection, secrets for credentials, status checks

Release / Publish

Trigger: push tags matching v* or workflow_dispatch Jobs: test β†’ build β†’ publish β†’ create GitHub Release Key features: changelog generation, artifact upload, npm/PyPI/Docker publish

Scheduled Tasks

Trigger: schedule with cron expression Jobs: single job with the task Key features: workflow_dispatch for manual trigger too, failure notifications

Security Scanning

Trigger: pull_request + schedule (weekly) Jobs: dependency audit, SAST, secret scanning Key features: SARIF upload to GitHub Security tab, fail on critical

Docker Build & Push

Trigger: push to main + tags Jobs: build β†’ push to registry Key features: multi-platform builds, layer caching, image tagging strategy

Essential Actions Reference

Setup Actions (always pin to major version)

Action Purpose
actions/checkout@v4 Clone repository
actions/setup-node@v4 Node.js with caching
actions/setup-python@v5 Python with caching
actions/setup-go@v5 Go with caching
`actions/set
FAQ

Will it avoid conflicting with my existing workflows?

Yes. The skill checks the existing workflow folder first to avoid clashes.

Which languages does it support?

It works with many languages, including JavaScript, Python, Go, Rust, Java, Ruby and .NET.

Does it ask questions before writing the file?

Yes. It asks clarifying questions when the project does not make the goal clear.

Details

Original description by the author

Use when the user wants to create, generate, or set up a GitHub Actions workflow. Handles CI/CD pipelines, testing, deployment, linting, security scanning, release automation, Docker builds, scheduled tasks, and any custom workflow for any language or framework.

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8763
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills